I just moved my codeigniter app from one machine to another.
I’m getting the above error message.
here’s what I’ve checked so far:
config.php for code igniter has the following:
$config[‘base_url’] = ‘http://myserver/myapp/’;
when i navigate to
http://myserver/myapp/index.php
i don,‘t get any error messages, and nothing is displayed /rendered. I do a view source and there is no html on the page. (btw. I have specified “welcome” as my default controller in routes). when i navigate to:
http://myserver/myapp/index.php/welcome
it’s the same result.
I checked my apache2 access log this is what it contains:
127.0.0.1 - - [14/Aug/2012:13:27:37 -0400] "GET /myapp/index.php/welcome HTTP/1.1" 200 293 "-" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:14.0) Gecko/20100101 Firefox/14.0.1"
127.0.0.1 – – [14/Aug/2012:13:27:48 -0400] “GET /myapp/index.php/switches HTTP/1.1” 200 293 “-” “Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:14.0) Gecko/20100101 Firefox/14.0.1”
shouldn’t it have
“GET http://myserver/myapp/index.php/welcome”
instead of just
“myapp/welcome”?
also i tried looking up the apache error message # 293 but i haven’t come across anything that is helpful for troubleshooting.
The thing is other applications work. So i can do
“http://myserver/phpmyadmin”
and it works.
Also i created a test.php page in my “myapp” folder and it works too.
I’m not using .htaccess as far as i can tell. I have the following variables set in my config.php for codeigniter:
$config[‘index_page’] = ‘index.php’;
$config[‘uri_protocol’] = ‘AUTO’;
Error logging is turned on both in the php.ini file and also in the code igniter config file.
You have the “white screen of death”. work backwards – install a “clean” version of Codeigniter and see if that works – then slowly move forward from there.
Then what you do is ‘slowly’ transition your site across. i.e. start with your site config – move it to the ‘new’ site. then change your main controller, then your db etc etc – until the error shows itself.