Skip to content

Instantly share code, notes, and snippets.

@Kaapiii
Last active January 1, 2016 12:49
Show Gist options
  • Save Kaapiii/8147038 to your computer and use it in GitHub Desktop.
Save Kaapiii/8147038 to your computer and use it in GitHub Desktop.
Ubuntu install uptodate Lamp
// install python
// so-> sudo add-apt-repository ppa:ondrej/php5 gets regcognized
sudo apt-get install python-software-properties
// shut down server droplet
sudo shutdown -h now
// ------------------------------------------
// install newest php and apache version from
// ------------------------------------------
// add repo binaries
sudo apt-get install python-software-properties
// add ppa repo
sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update
sudo apt-get upgrade
// Trouble shooting
// if php files ar no recognized as executable files install (http://stackoverflow.com/questions/6245895/apache2-on-ubuntu-php-files-downloading)
sudo apt-get install libapache2-mod-php5
// ------------------------------------------
// Install Git
// ------------------------------------------
sudo apt-get install git-core
// ------------------------------------------
// install Phalcon relevant Php libraries
// ------------------------------------------
// for more visit: http://phalconphp.com/en/download
mbstring
sudo apt-get install php5-mbstring
mcrypt
sudo apt-get install php5-mcrypt
openssl
sudo apt-get install php5-openssl
PDO
sudo apt-get install php5-pdo
PDO/Mysql
sudo apt-get install php5-mysql
// -------------------------
//
// -------------------------
// Path to php ini
// alter with nano editor
/etc/php5/apache2/php.ini
// restart apache
sudo /etc/init.d/apache2 start
// -------------------------
//
// --------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment