Skip to content

Instantly share code, notes, and snippets.

@merajsiddiqui
Created May 27, 2016 14:47
Show Gist options
  • Save merajsiddiqui/c362c3d164bf30d9bef2fb43c92ad509 to your computer and use it in GitHub Desktop.
Save merajsiddiqui/c362c3d164bf30d9bef2fb43c92ad509 to your computer and use it in GitHub Desktop.
sudo su
#uninstalling previous data..
apt-get remove apache2 apache2-mpm-prefork apache2-utils apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libdbd-mysql-perl libdbi-perl libnet-daemon-perl libplrpc-perl libpq5 mysql-client-5.5 mysql-common mysql-server mysql-server-5.5 php5-common php5-mysql
apt-get purge mysql-client-core-5.5 mysql-server-core-5.5
#installing all modules
apt-get update && apt-get upgrade
apt-get install apache2
apt-get install php5 libapache2-mod-php5 php5-mcrypt
apt-get install mysql-server
apt-get install php5 libapache2-mod-php5
apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
apt-get install phpmyadmin
ln -s /usr/share/phpmyadmin
#specially mysql package
apt-get -y install apache2 mysql-server php5-mysql php5 libapache2-mod-php5 php5-mcrypt
apt-get update && apt-get upgrade -y
#modifying some basics
echo "ServerName localhost" | tee /etc/apache2/conf-available/fqdn.conf && a2enconf fqdn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment