apt-get update
(This is safer than apt-get upgrade or apt-get dist-upgrade, because it safely upgrades your server and resolves dependencies)
apt-get install apache2 php5 libapache2-mod-php5 php5-gd chmod -R 777 /var/www/html
Check if apache is working
/etc/init.d/apache2 restart nano /var/www/html/info.php
Copy & paste the folowing php code in the nano editor
<?php phpinfo(); ?>
Go and check http://localhost/info.php in your browser to see configuration of installed php version.
apt-get install mysql-server mysql-client php5-mysql apt-get install phpmyadmin
When prompted for a password enter hello (You can also set your own password).
mysqladmin -u root -p create d8
Enter hello (mysql password) when you are prompted for password. If you get a “Database exists” error, please issue “mysqladmin -u root -p drop d8” to delete the existing database and then issue the create command.
a2enmod rewrite
nano /etc/apache2/apache2.conf
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>
service apache2 restart
Similarly create pages about Prepare your computer, Software carpentry & CMS but ensure Workshop under Parent item for the new pages