Skip to content

Instantly share code, notes, and snippets.

@sreedharmb
Created July 4, 2016 05:10
Show Gist options
  • Save sreedharmb/7f45b1339acd00831890ff5c15931559 to your computer and use it in GitHub Desktop.
Save sreedharmb/7f45b1339acd00831890ff5c15931559 to your computer and use it in GitHub Desktop.

Setup instructions for simulations

Apache

sudo apt-get install apache2

MYSQL

sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql

Root username: root

Root password: knolskape123

PHP

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

PHPMyAdmin

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

WKHTMLToPDF

cd wkhtmltox/bin
sudo cp wkhtmltopdf  /usr/bin/wkhtmltopdf
sudo cp wkhtmltoimage  /usr/bin/wkhtmltoimage
  • Execute wkhtmltopdf -v to test if wkhtmltopdf is working
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment