404 Errors on Apache2 & Ubuntu
Posted 11 April 2012 - 12:48 PM
Super newbie here! I found a couple of apps I wanted to try out, both using Yii. I uploaded them to an external webserver, configured, and they ran quite nicely! Then I built an Ubuntu box, spent a day installing Apache2, MySQL, and scores of other things. I have maybe done this twice before, but never to support Yii and never than more as hobby interest.
I run the Yii framework requirements page and it comes back all green and happy!
I install the first app in the webroot, just to test it. All goes well, able to run their install script... but then it points the first of many "managed urls" example: /index.php/site/login
And I get a 404 not found.
I then tested the demos in the Yii framework folder and they work fine except hangman and blog, which both produce a 404 when a managed url is the link (such as the letter links in the Hangman app).
All my permissions were set to 755.... I even tried 777! I know I am missing something very basic, just too newb to see it. Help me, Obi Wans!
Posted 11 April 2012 - 01:16 PM
So instead of:
if should be:
I had to change that, otherwise the rewrite rules will have no effect even when mod_rewrite is enabled.
I lost an hour yesterday because I forgot to configure it!
Posted 11 April 2012 - 01:28 PM
AllowOveride All was how it was set. So, no change there.
Still having these issues. It just seems to me like it's not processing the "url management". It has to be something similar to what you mentioned but in a different place.
I have installed 2 other apps on this same webserver (OpenDocMan and Collabtiv) and they work just fine.
But I love the Yii, man..... I need the Yii....
Posted 13 September 2012 - 04:07 PM
Posted 23 September 2012 - 12:50 PM
I installed mod_rewrite
and chenged the 'AllowOverride None' to 'all' as well (in all places related to 'www' folder)
but it still shows me the 'Not Found' message
Does anyone know what could be the problem?
Posted 30 November 2012 - 01:06 AM
1. You have to make sure that you have turned the rewrite module on in apache
You can follow the steps on this post to enable it
2. Create .htaccess in /var/www or edit it if you already have one
3. Add the following line in the post
ErrorDocument 404 /the-filename-of-your-customized-404-page
In my case, it is
ErrorDocument 404 /404.php
Please continue if you want to use the 404 page provided by your wordpress theme