Setup instructions for simulations
sudo apt-get install apache2
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
Root username: root
Root password: knolskape123
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
Enable mod_rewrite
sudo a2enmod rewrite
Modify .config file of the site, include below in <VirtualHost>
<Directory "/var/www/html">
AllowOverride All
</Directory>
Restart Apache
sudo service apache2 restart
sudo apt-get install phpmyadmin apache2-utils
- Select Apache2 for the server
- Choose NO when asked about whether to Configure the database for phpmyadmin with dbconfig-common
Restart Apache
sudo service apache2 restart
- Download WKHTMLToPDF from http://wkhtmltopdf.org/downloads.html, version - 0.12.3
- Copy it to the server
- Unzip the bundle
cd wkhtmltox/bin
sudo cp wkhtmltopdf /usr/bin/wkhtmltopdf
sudo cp wkhtmltoimage /usr/bin/wkhtmltoimage
- Execute
wkhtmltopdf -v
to test if wkhtmltopdf is working