Skip to content

Instantly share code, notes, and snippets.

@vikasavnish
Last active September 20, 2016 19:38
Show Gist options
  • Save vikasavnish/4dee1a6f7c1cc62ce79c24c9d1684b1b to your computer and use it in GitHub Desktop.
Save vikasavnish/4dee1a6f7c1cc62ce79c24c9d1684b1b to your computer and use it in GitHub Desktop.
sudo apt-get update
sudo apt-get install apache2
sudo apache2ctl configtest
sudo ufw app list
sudo ufw app info "Apache Full"
sudo ufw allow in "Apache Full"
ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'
sudo apt-get install curl
sudo apt-get install mysql-server
#sudo mysql_secure_installation
sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql
sudo nano /etc/apache2/mods-enabled/dir.conf
sudo systemctl restart apache2
apt-cache search php- | less
sudo apt-get install php-cli
sudo apt-get install phpmyadmin apache2-utils
sudo nano /etc/apache2/apache2.conf
sudo service apache2 restart
sudo nano /etc/phpmyadmin/apache.conf
sudo nano /usr/share/phpmyadmin/.htaccess
sudo apt-get install postgresql postgresql-contrib
sudo apt-get install build-essential tcl
cd /tmp
curl -O http://download.redis.io/redis-stable.tar.gz
tar xzvf redis-stable.tar.gz
cd redis-stable
make
make test
sudo make install
sudo mkdir /etc/redis
sudo cp /tmp/redis-stable/redis.conf /etc/redis
sudo nano /etc/redis/redis.conf
sudo apt-get install python-pip python3-pip
sudo apt-get install httppie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment