Welcome Guest, Not a member yet? Register   Sign In
Basic server setup for CI
#1

[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.
#2

[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?
#3

[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?
#4

[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
#5

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

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

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

[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 ?
#9

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

[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?




Theme © iAndrew 2016 - Forum software by © MyBB