Welcome Guest, Not a member yet? Register   Sign In
CI Newby
#1

[eluser]Thomas Yorke[/eluser]
Hi everybody!
I'm trying to use Code Igniter but without success. I downloaded it, I changed the base url in config.php, loaded Apache's mod_rewrite but when i try to access localhost/ci1.7.1/welcome, i get the forbidden error.
I read the user guide but i haven't found the solution there. Someone can help me?
Thanks and sorry about this newby question!
#2

[eluser]brianw1975[/eluser]
which 404 error? Apache's 404 or a different less informative 404?
#3

[eluser]John_Betong[/eluser]
[quote author="Thomas Yorke" date="1252482097"]Hi everybody!
I'm trying to use Code Igniter but without success. I downloaded it, I changed the base url in config.php, loaded Apache's mod_rewrite but when i try to access localhost/ci1.7.1/welcome, i get the page not found error.
I read the user guide but i haven't found the solution there. Someone can help me?
Thanks and sorry about this newby question![/quote]
 
Maybe try this:
1. get the basic CodeIgiter installer to work without using .htaccess.
2. temporarily enable
config/config.sys -> $config['index_page'] = 'index.php';
config/config.sys -> $config['log_threshold'] = 4;
3. find and view the log file - it is very helpful.
 
 
 
#4

[eluser]jdfwarrior[/eluser]
[quote author="John_Betong" date="1252483363"][quote author="Thomas Yorke" date="1252482097"]Hi everybody!
I'm trying to use Code Igniter but without success. I downloaded it, I changed the base url in config.php, loaded Apache's mod_rewrite but when i try to access localhost/ci1.7.1/welcome, i get the page not found error.
I read the user guide but i haven't found the solution there. Someone can help me?
Thanks and sorry about this newby question![/quote]
 
Maybe try this:
1. get the basic CodeIgiter installer to work without using .htaccess.
2. temporarily enable
config/config.sys -> $config['index_page'] = 'index.php';
config/config.sys -> $config['log_threshold'] = 4;
3. find and view the log file - it is very helpful.
 
 
 [/quote]

Agree with Step 1 especially, so many people wanna dive right in and go straight to the more advanced stuff (more advanced for a new comer anyway), without getting a base install working first.

I would always recommend to get a base install, with no .htaccess or anything else, up and running first, then go from there, that way you can at least say, well, i did this, then it broke. You won't find yourself saying, here's the list of everything i've done, now let's start reverting it all one at a time and see where the error is..
#5

[eluser]Thomas Yorke[/eluser]
Code:
Forbidden
You don't have permission to access /ci1.7.1/index.php on this server.
#6

[eluser]John_Betong[/eluser]
[quote author="Thomas Yorke" date="1252515072"]
Code:
Forbidden
You don't have permission to access /ci1.7.1/index.php on this server.
[/quote]
&nbap;
Ok at least it is not a CodeIgniter problem.

Did you rename or delete your .htaccess file? I think maybe access to the path is forbidden due to the .htaccess file.

If the .htaccess file does not exist then is the same message appearing when you try to access another path?

 
 
 
#7

[eluser]Thomas Yorke[/eluser]
I downloaded the 1.7.1 ci official package and i don't have a .htaccess file...
Every other pages do the same. I tried http://localhost/ci1.7.1/system and http://localhost/ci1.7.1/user_guide.
Thank's all!
#8

[eluser]John_Betong[/eluser]
[quote author="Thomas Yorke" date="1252516548"]I downloaded the 1.7.1 ci official package and i don't have a .htaccess file...
Every other pages do the same. I tried http://localhost/ci1.7.1/system and http://localhost/ci1.7.1/user_guide.
Thank's all![/quote]
 
Can you:
1. access any other paths?
2. Are you running on a Windows system
3. If not Windows then try changing the access writes to 0777.
 

 

 
#9

[eluser]John_Betong[/eluser]
[quote author="Thomas Yorke" date="1252516548"]I downloaded the 1.7.1 ci official package and i don't have a .htaccess file...
Every other pages do the same. I tried http://localhost/ci1.7.1/system and http://localhost/ci1.7.1/user_guide.
Thank's all![/quote]
 
Can you:
1. access any other paths?
2. are you running on a Windows system
3. if not a Windows system then try changing the access writes to 0777.
 

 

 
#10

[eluser]Thomas Yorke[/eluser]
1 - When i access http://localhost/ci1.7.1/system/application/ i get "Directory access is forbidden."
2 - Linux
3 - Now i get Welcome to CodeIgniter! page (http://localhost/ci1.7.1/)
Thank you.




Theme © iAndrew 2016 - Forum software by © MyBB