Anish Sujanani Anish Sujanani - 1 year ago 62
PHP Question

Problems with deploying Kohana to a cloud machine - 404

I have uploaded all my project files onto my cloud machine in the drectory

When I visit the IP address of this machine through a browser, it shows me the expected page, which routes to
However, if I manually go to
, I get an apache server 404 error.
None of the other routes work either. eg.
results in a 404 as well.

The fact that the homepage loads means that the default configuration for
is working, but maybe URL rewriting is not being done right?
Can someone tell me whether the problem is with my
file or with my
file, along with a possible fix?
It's the first time I'm deplying an application onto a cloud machine, so I'm not really sure what the problem is.

Answer Source

So if anyone has the same issue, here's the fix: (This is considering that all project files are in /var/www/html/

Changes have to be made in /etc/apache2/apache2.conf


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


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

This answer helped me out: Kohana The requested URL /home was not found on this server

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download