Skip to content

Instantly share code, notes, and snippets.

@denwwer
Last active December 23, 2015 23:49
Show Gist options
  • Save denwwer/6712284 to your computer and use it in GitHub Desktop.
Save denwwer/6712284 to your computer and use it in GitHub Desktop.
Create env for wordpress (php 5) on Ubuntu
sudo apt-get install apache2 php5 php5-mysql libapache2-mod-php5
# copy wordpress to /var/www
# OPTINAL: change apache user
# sudo gedit /etc/apache2/envvars
# change next:
# export APACHE_RUN_USER=your_user
# export APACHE_RUN_GROUP=your_gpoup
sudo gedit /etc/php5/apache2/php.ini
# add extension=php5-mysql.so below "Dynamic Extensions"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment