Skip to main content

Posts

Showing posts with the label PHP

PHP Script Not running on the browser Ubuntu 16.04

Typing: sudo apt-get install apache2 php5 libapache2-mod-php5 will install everything you need and will start the apache server with support for PHP. To verify that the php module is loaded, type: a2query -m php5 if not enabled, then load with: sudo a2enmod php5 and restart apache: sudo service apache2 restart Update for php7.0, tested on Ubuntu 16.04 and 16.10 Thanks to the comments, I update the answer for php7. Install: sudo apt-get install apache2 php7.0 libapache2-mod-php7.0 Verify: a2query -m php7.0 Load: sudo a2enmod php7.0 Restart apache: sudo service apache2 restart