Home The requested URL /contacts was not found on this server - trying to set up cakePHP on ubuntu and getting this error
Reply: 1

The requested URL /contacts was not found on this server - trying to set up cakePHP on ubuntu and getting this error

Dmitry Kruchko
1#
Dmitry Kruchko Published in 2018-02-11 13:24:03Z

My project works fine on Openserver in Windows. But now I am trying to transfer it to Ubuntu. So the home page is available (but all external scrips, css, js and images returns 404 error). Also, every internal page is not available (The requested URL /blablabla was not found on this server). What am I doing wrong? Mod_rewrite is enabled, apache logs have no errors.

ndm
2#
ndm Reply to 2018-02-11 14:21:21Z

I figured out. Just need replace

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

to this:

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

In apache.conf

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.431615 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO