Skip to content

Instantly share code, notes, and snippets.

@neps-in
Last active October 30, 2018 01:46
Show Gist options
  • Save neps-in/782112e6f5eb4cb26950e01211932e13 to your computer and use it in GitHub Desktop.
Save neps-in/782112e6f5eb4cb26950e01211932e13 to your computer and use it in GitHub Desktop.
Install LAMP Stack on Ubuntu 14.04 and few other productive tools
##############################################################
#
# install-lamp.sh (Server)
#
# Installs LAMP (PHP Version 5.6) Stack and other dev tools on ubuntu 14.04 Server
#
# Author: Napoleon Arouldas S.
#
# Lead Developer of http://grandappstudio.com/roll-out/
#
# Read Me @ https://neps.in
###############################################################
#!/bin/bash -x
echo "This script will install lamp stack on ubuntu 14.x"
#
sudo apt-get install software-properties-common
# for certbot letsencrypt ssl certificate
sudo add-apt-repository ppa:certbot/certbot
# Add php5.6
sudo add-apt-repository ppa:ondrej/php
# Update all the above additions
sudo apt-get update
sudo apt-get -y install mysql-server php5-mysql \
sublime-text git tmux \
libapache2-mod-php5 \
php5-mcrypt \
curl libcurl3 libcurl3-dev php5.6-curl \
php5.6 php5.6-mysql php5.6-xml php5.6-mbstring \
inotify-tools \
vim \
python-certbot-apache \
yui-compressor
# Securing mysql
sudo mysql_install_db
sudo mysql_secure_installation
# Install composer via curl
curl -sS https://getcomposer.org/installer | php
# Enable php 5.6 modules
sudo a2dismod php5
sudo a2enmod php5.6
sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment