Are you getting an error for Not Found The requested URL was not found on this server? I ran into this after a common Ubuntu 14.x update. It broke one of my production sites.

requested URL was not found on this server

Not Found The requested URL was not found on this server.

After some research and trial and error, I found this post at Zen of Coding. The routing of a browser request to a specific directory has a lot to with your Apache site configuration as well as your htaccess file. But, I hadn’t modified mine a long time. The Ubuntu update just broke the site.

It turned out that with the latest code, you needed a distinct Allow Override All in your Apache .conf file. For example, it should look something like this:

<VirtualHost *:80>
ServerName meetingplanner.io
DocumentRoot "/var/www/mp/frontend/web"
<Directory "/var/www/mp/frontend/web">
AllowOverride All
</Directory>
</VirtualHost>

It worked fine before without “AllowOverride All” but not now.

Hope that helps you fix your error. Be sure to check out my two programming series at Envato Tuts+, How to Program With Yii2 and
Building Your Startup With PHP.

Posted by Jeff Reifman

Jeff is a technology consultant based in the Pacific Northwest. Try scheduling a meeting with his new startup Meeting Planner (https://meetingplanner.io), simpler, faster scheduling for work or play and read his series about building it). Follow @reifman on Twitter.