Welcome Guest, Not a member yet? Register   Sign In
Newbie just installed
#1

[eluser]kashound[/eluser]
I just installed CodeIgniter into my localhost XAMPP environment. I added it to htdocs and renamed the folder test. I am now going through the tutorial and ran into this error:

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403

localhost
Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7

for this address: http://localhost/test/application/index....view/about

Now, I am guessing that I have to change the .htaccess file?? Not sure which one or what I am changing it too.

Thanks in advance for your help!

Nefer
#2

[eluser]Syllean[/eluser]
Is 'pages' the name of your controller? and 'about' the name of your 'method' (function)?

if so your url should be: http://localhost/test/index.php/pages/about
#3

[eluser]jairoh_[/eluser]
it should be
Code:
http://localhost/project_folder_name/controller_name/
sir
#4

[eluser]kashound[/eluser]
Yes pages is the name of the controller.

I unzipped the CI install files under htdocs in xampp and renamed it to test. I then followed the initial page setting up the controller and header/footer pages. I tried to view the page per the instructions and I get an access denied.

I tried both of the previous suggestions. The first one 'http://localhost/test/application/pages/about' gave me the same error. The second one http://localhost/test/pages/about gives me object not found. Did I mess up the installation or what am I doing incorrectly??

Thanks again!
#5

[eluser]kashound[/eluser]
Another issue is that when I try to view the index.php sitting in the root of the test project I get the following error:

http://localhost/test/index.php


Warning: require_once(C:/xampp/htdocs/test/application\core\CodeIgniter.php): failed to open stream: No such file or directory in C:\xampp\htdocs\test\index.php on line 202

Fatal error: require_once(): Failed opening required 'C:/xampp/htdocs/test/application\core\CodeIgniter.php' (include_path='.;C:\\xampp\\php\\PEAR') in C:\xampp\htdocs\test\index.php on line 202

I looked and the file does not exist. Did I download a bad copy of the install? I may just delete and try over.
#6

[eluser]kashound[/eluser]
I removed and re-installed the CI folders. After *carefully* walking through the tutorial code, I was able to get this working without an issue. Thanks again for your help!!
#7

[eluser]Syllean[/eluser]
This tutorial series might help you get started: Codeigniter From Scratch
#8

[eluser]Ckirk[/eluser]
Glad you got it sorted.
Welcome to your new addiction Smile
#9

[eluser]Unknown[/eluser]
Tutorials are good and all but you have to make sure you are using the same version and setup the person giving the tutorial is. If not you are more than likely going to experience an issue, and from a newbie standpoint errors can put a hold on the whole tutorial.




Theme © iAndrew 2016 - Forum software by © MyBB