Skip to content

Instantly share code, notes, and snippets.

@zbee
Last active August 29, 2015 14:14
Show Gist options
  • Save zbee/18ad977aa7eb66fd9079 to your computer and use it in GitHub Desktop.
Save zbee/18ad977aa7eb66fd9079 to your computer and use it in GitHub Desktop.
Get Ubuntu 14.04 running your php website
#Get ready
sudo apt-get update
sudo apt-get upgrade
#Install apache
sudo apt-get install apache2
#Install mysql
sudo apt-get install mysql-server php5-mysql
#Set up mysql
sudo mysql_install_db
sudo mysql_secure_installation
#Install php
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt php5-mongo php5-curl php5-json php5-cli
#Set up php/apache (move `index.php` to the left of `index.html`)
sudo nano /etc/apache2/mods-enabled/dir.conf
sudo service apache2 restart
#Set up php timezone default (uncomment `date.timezone` and set it to your timezone: `date.timezcone = "America/Denver"`)
sudo nano /etc/php5/apache2/php.ini
#Install PHPMyAdmin
sudo apt-get install phpmyadmin apache2-utils
#Set up PHPMyAdmin (add `Include /etc/phpmyadmin/apache.conf`)
sudo nano /etc/apache2/apache2.conf
sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment