Skip to content

Instantly share code, notes, and snippets.

@oleksandr-diudiun
Last active January 11, 2016 07:21
Show Gist options
  • Save oleksandr-diudiun/085d409fa8e087c91551 to your computer and use it in GitHub Desktop.
Save oleksandr-diudiun/085d409fa8e087c91551 to your computer and use it in GitHub Desktop.
Amazon Ubuntu
$ sudo nano /etc/hostname # set your-server-name
$ sudo nano /etc/hosts # set your-server-name
$ sudo service hostname restart # or sudo reboot
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install apache2
$ sudo apt-get install apache2-utils
$ sudo a2enmod rewrite
$ sudo apt-get install nodejs
$ sudo apt-get install npm
$ sudo apt-get install nodejs-legacy
$ sudo npm cache clean -f
$ sudo npm install -g n
$ sudo n stable
$ sudo npm update npm -g
$ sudo apt-get install software-properties-common
$ sudo add-apt-repository ppa:ondrej/php5-5.6
# $ sudo add-apt-repository ppa:ondrej/php-7.0
$ sudo apt-get update
$ sudo apt-get install python-software-properties
$ sudo apt-get update
$ sudo apt-get install mysql-server libapache2-mod-auth-mysql
$ sudo apt-get install php5
# $ sudo apt-get install php7.0
$ php5 -v
$ sudo apt-get install imagemagick
$ sudo apt-get install php5-imagick
$ sudo apt-get install php5-pgsql
$ sudo apt-get install php5-mysql
$ sudo apt-get install php5-redis
$ sudo apt-get install php5-curl
$ service apache2 reload
$ sudo apt-get install postgresql-client
$ sudo apt-get install redis-tools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment