CodeIgniter Forums
Basic server setup for CI - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Basic server setup for CI (/showthread.php?tid=16170)

Pages: 1 2 3 4


Basic server setup for CI - El Forum - 02-26-2009

[eluser]Computerzworld[/eluser]
Hello,
I have downloaded CI 1.7.1 and tried to setup it on server. It is always giving me page not found error in CI format. The same code works fine on localhost(windows server). What is the basic configuration that is required in order to setup CI on the server? Please help me. Thanks in advance.


Basic server setup for CI - El Forum - 02-26-2009

[eluser]dmorin[/eluser]
If the error is "in CI format" then the base install should be correct. Try enabling logging in the config file and see what that produces. Also, did you modify the default route in the routes config file or did you not include the default controller when you pushed this up to your server?


Basic server setup for CI - El Forum - 02-27-2009

[eluser]Computerzworld[/eluser]
i 've enabled logging in config file and its giving error like "404 Page Not Found" and i am not able to find which file it has not found. I have already modified default routes config & also included default controller welcome.php which comes inside CI default installation. Actually my CI setup on the server is not on root its in the sub-folder. Lets say its on http://www.example.com/CI/Site.Does it affects on the setup?


Basic server setup for CI - El Forum - 02-27-2009

[eluser]Unknown[/eluser]
try modify your ./system/application/config/config.php under Base Site URL section to:

Quote:$config['base_url'] = "http://www.example.com/CI/Site/";

or something like that.. hope this helps


Basic server setup for CI - El Forum - 02-27-2009

[eluser]Computerzworld[/eluser]
yes i have already changed its base_url.apart from that what other settings that i have to check?


Basic server setup for CI - El Forum - 02-27-2009

[eluser]Aniket[/eluser]
check for file permission...


Basic server setup for CI - El Forum - 02-27-2009

[eluser]Computerzworld[/eluser]
which file's permssion i have to set? actually i have applied permission 755 on the whole folder.


Basic server setup for CI - El Forum - 02-27-2009

[eluser]Aniket[/eluser]
try modifying the file permission of the complete folder to 777. I should work. And i guess your server is Apache isn't it ?


Basic server setup for CI - El Forum - 02-27-2009

[eluser]Computerzworld[/eluser]
yes it is apache... let me check whether 777 permission works or not...


Basic server setup for CI - El Forum - 02-27-2009

[eluser]Computerzworld[/eluser]
i have set permission to 777 but it didn't worked...

My config base_url is like this,

$config[‘base_url’] = “http://www.example.com/CI/Site/”;

I am getting error in the log file as,

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

404 Page Not Found --> CI

What should be the problem behind this?