Apache 2.2.10 PHP 5.3.6 UBUNTU 11.10 and Codeigniter 2.1.0 |
[eluser]Unknown[/eluser]
I've dealt with codeigniter for over 3 years now. I have code working in 1.7 , 2.0 and 2.1. Recently I decided to upgrade my server to ubuntu 11.10. Upgrade was made on a clean hdd, so it is a completely new machine. I started transferring my old code (1.7 and 2.0) and noticed that i get 404 not found errors when I try to access URLs that are different than the default. So lets say, my site resided on example.com. Going to Code: http://example.com but trying to access Code: http://example.com/second_controller Code: RewriteRule .* http://codeigniter.com/ [L,R] just to see if it gets redirected. And it works. I hacked around the code for a while thinking that the issues are there ( trying to find a problem in the older codeigniter versions). Then I decided that I really can't be sure with one of my sites and I need to download a fresh codeigniter. I downloaded the latest version 2.1.0. I put it on the server, made a quick setup in the config (set the base url). Created a quick controller second_controller(a copy of the default controller).And tried it, fresh from the oven without even messing with .htaccess. I tried Code: http://example.com Code: http://example.com/index.php/second_controller http://debian_server_example.com/index.p...controller showed the second controller.?????. Just to test things more, went to a server with ubuntu 9.04 and tried it there. WORKED AGAIN. And to be on the safe side, went even further and put it on ubuntu 8.04 (which is pretty much ancient by now) . Worked fine there too. Played a bit on the forum and google. Found some people having similar issues, but nobody answered them. Some of the suggestions in the answers were to play with the Code: $config['uri_protocol'] = 'AUTO'; Code: | 'PATH_INFO' Uses the PATH_INFO |
Messages In This Thread |
Apache 2.2.10 PHP 5.3.6 UBUNTU 11.10 and Codeigniter 2.1.0 - by El Forum - 02-16-2012, 10:43 PM
Apache 2.2.10 PHP 5.3.6 UBUNTU 11.10 and Codeigniter 2.1.0 - by El Forum - 02-18-2012, 12:00 PM
Apache 2.2.10 PHP 5.3.6 UBUNTU 11.10 and Codeigniter 2.1.0 - by El Forum - 03-22-2012, 06:43 PM
Apache 2.2.10 PHP 5.3.6 UBUNTU 11.10 and Codeigniter 2.1.0 - by El Forum - 03-25-2012, 11:36 AM
Apache 2.2.10 PHP 5.3.6 UBUNTU 11.10 and Codeigniter 2.1.0 - by El Forum - 03-25-2012, 11:58 AM
|