Ben Ben - 6 months ago 38
PHP Question

Apache won't serve pages on my Raspberry Pi

I've installed PHP 5.6 on my Raspberry Pi (from the Jessie repo), as well as Apache2. When I access (the Pi's IP-address) it's not serving the

file in

Just an hour ago I was running PHP 5.4 from the Wheezy repo, this was working fine. I've checked if apache was running (using
) and I see there are apache2-processes. To be extra sure I've used
service apache2 stop
and then
service apache2 start
to guarantee the webserver is running.

The current output on

Not Found

The requested URL / was not found on this server.

Apache/2.4.10 (Raspbian) Server at Port 80

Any suggestions how to get the Pi to serve PHP/webfiles correct again?

Ben Ben
Answer Source

This was an easy 'fix'. The new PHP's root folder is ~/var/www/html/. All is working fine. Good luck future solution seekers ;)

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