Ubuntu: Setup Apache2, PHP5 and MySQL

Packages to install to run PHP: sudo apt-get install apache2 sudo apt-get install php5 sudo apt-get install libapache2-mod-php5 sudo service apache2 restart Some optional / useful php libraries to install:

Ubuntu server: Setup website

Copy files to destined directory. Go to /etc/apache2/sites-availabe, edit the ’site’ file. The default is ‘default‘. If creating a new site file, after creating and editing the file, run sudo …