Posts Tagged libapache2-mod-php5filter
Codeigniter Controllers Give Server 404
Posted by Randy in Linux Stuff, Operating Systems, Programming, Web Development on January 11, 2012
I often take shortcuts when setting up my development servers. I recently installed Linux Mint 12 x64 on my main box and wanted to setup a web developing environment on it. To cut corners during package installation, I'll typically install phpmyadmin which grabs most of the dependencies I need to have a full LAMP dev stack, such as Apache2 and Mysql-server.
That's how I initially set up my stack in Linux Mint. I also enabled user directories in Apache so I could develop within the public_html directory inside my home directory. All was working well until I copied a CodeIgniter project over and tried it out. I couldn't access my controller functions from index.php. It worked well for the default controller because it was accessing it from index.php, but when I changed the URL to point to a controller like index.php/admin, it didn't know what to do with it and I would receiver a server 404 error.
After digging around for a solution, I realized that when I installed my LAMP stack, apt had installed libapache2-mod-php5filter instead of libapache2-mod-php5. I'm not very familiar with this module or what benefits come from using it, but the quick fix was to:
sudo apt-get install libapache2-mod-php5 |
sudo apt-get install libapache2-mod-php5
This removed the php5filter module and installed the plain php5 module. After that, I no longer have an issue with the controllers giving 404 errors.
codeigniter, codeignitor, libapache2-mod-php5, libapache2-mod-php5filter, PHP, server 404 codeigniter
-
-
- Apple (8)
- Applications (36)
- Boring Stuff (7)
- Cool Videos (2)
- DIY (1)
- Free Stuff (4)
- Funny Pics (3)
- Games (4)
- Good Deals (6)
- Hardware (18)
- Health (1)
- Home Theater (2)
- Internet (28)
- Internet Money (8)
- Movies (5)
- Music (4)
- Networking (12)
- Operating Systems (49)
- Pipe Smoking (1)
- Programming (59)
- Reviews (5)
- Science (2)
- Security (2)
- SEO (4)
- Server Stuff (1)
- Stocks (3)
- technology (40)
- Tips (12)
- TV (3)
- Uncategorized (13)
-
Blogroll
Favorite Sites
-
Archives
- June 2017 (1)
- July 2016 (1)
- May 2016 (1)
- November 2015 (3)
- October 2015 (3)
- March 2015 (1)
- January 2014 (1)
- August 2013 (3)
- July 2013 (3)
- June 2013 (2)
- April 2013 (2)
- January 2013 (1)
- November 2012 (1)
- September 2012 (2)
- May 2012 (2)
- April 2012 (6)
- March 2012 (11)
- February 2012 (4)
- January 2012 (26)
- December 2011 (6)
- November 2011 (3)
- September 2011 (1)
- May 2011 (1)
- November 2010 (2)
- October 2010 (1)
- July 2010 (4)
- June 2010 (5)
- May 2010 (1)
- April 2010 (2)
- March 2010 (1)
- January 2010 (3)
- December 2009 (1)
- October 2009 (3)
- September 2009 (2)
- August 2009 (2)
- July 2009 (5)
- June 2009 (5)
- May 2009 (10)
- April 2009 (12)
- March 2009 (22)
-
Meta