Skip to content

Instantly share code, notes, and snippets.

@acbilimoria
Last active May 5, 2017 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acbilimoria/ad26aad6a0b9ee5553683b7d343f3cc1 to your computer and use it in GitHub Desktop.
Save acbilimoria/ad26aad6a0b9ee5553683b7d343f3cc1 to your computer and use it in GitHub Desktop.
sudo apt-get update
sudo apt-get install apache2 mysql-server php pep8 libapache2-mod-php php-mcrypt php-mysql php-curl php-gd php-mbstring php-mcrypt php-xml php-xmlrpc silversearcher-ag xclip htop python3 xvfb python3-pip libxml2 chromium-chromedriver firefox postgresql postgresql-contrib python-psycopg2 libpq-dev npm letsencrypt dos2unix vsftpd mailutils gconf2 gconf-service gconf-service-backend gconf2-common libgconf-2-4 sendmail python3-tk unzip git vim nodejs-legacy flake8 mtpfs libmtp-common mtp-tools libmtp-dev libmtp-runtime libmtp9 ruby ruby-dev libxml2-dev libxslt1-dev python-dev liblzma-dev zlib1g-dev qt5-default android-tools-adb udev mtp-tools kdeconnect postgresql postgresql-contrib php-cli ubuntu-make php-dev gcc make autoconf libc-dev pkg-config kcachegrind sqlite graphicsmagick pvm-dev phantomjs rake libicu-dev imagemagick libmysqlclient-dev composer -y
sudo vim /etc/apache2/apache2.conf
# add ServerName server_domain_or_IP
sudo ufw allow in "Apache Full"
sudo mysql_secure_installation
sudo vim /etc/apache2/mods-enabled/dir.conf
# move index.php to the first.
#<IfModule mod_dir.c>
# DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
#</IfModule>
sudo vim /etc/apache2/apache2.conf
# <Directory /var/www/html/>
# AllowOverride All
#</Directory>
sudo a2enmod rewrite
sudo systemctl restart apache2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment