Ubuntu newbie here! Really love this OS so far although I am bumping into a roadblock so apologies if the resolution to my issue is straightforward and a duplicate post.
My machine previously served PHP files successfully however after installing Composer/Laravel without any error messages, now get a HTTP ERROR 500 'This page isn't working' when attempting to serve the same files.
I have made sure my installation is current:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
Confirmed apache2 service is running via service apache2 status and that PHP is functioning via:
php -r 'echo "\n\nYour PHP installation is working fine.\n\n\n";'
However, when attempting to serve a PHP file via the browser, such as localhost/index.php, receive HTTP 500 error.
I have unsuccessfully attempted the resolution found here, as below:
sudo apt-get install libapache2-mod-php
sudo a2enmod php7.0
sudo a2dismod mpm_event
sudo a2enmod mpm_prefork
sudo service apache2 restart
sudo apt-get install php-fpm
sudo a2enconf php7.0-fpm
sudo apt-get install php-cgi
a2enconf php7.0-cgi
Many thanks for any help!