Skip to content

Instantly share code, notes, and snippets.

@tanftw
Created October 10, 2015 05:58
Show Gist options
  • Save tanftw/74192841e8d040231a05 to your computer and use it in GitHub Desktop.
Save tanftw/74192841e8d040231a05 to your computer and use it in GitHub Desktop.
Ubuntu LAMP Server Startup
#Install LAMP Server
#--------------------------
sudo apt-get update
sudo apt-get install tasksel
sudo tasksel install lamp-server
#Install PHPMyAdmin
#----------------------------
sudo apt-get install phpmyadmin
# Open file below and add the following line to the end
/etc/apache2/apache2.conf
Include /etc/phpmyadmin/apache.conf
# Then restart
sudo /etc/init.d/apache2 restart
# Disable autoindex
#---------------------------
sudo a2dismod autoindex
# Enable MCrypt
sudo php5enmod mcrypt
# Enable Mod Rewrite
sudo a2enmod rewrite
# Install PHP CURL
sudo apt-get install php5-curl
# Enable mod headers and expires
sudo a2enmod headers
sudo a2enmod expires
# Install Webmin
#---------------------------
sudo vi /etc/apt/sources.list
# Add the following line
deb http://download.webmin.com/download/repository sarge contrib
wget -q http://www.webmin.com/jcameron-key.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install webmin
# Reconfigure Timezone Data
dpkg-reconfigure tzdata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment