Install LAMP Stack in minimum commands

LAMP Stack means :Linux, Apache, MySQL and PHP.

Run the following commands one by one in the terminal to install the whole LAMP Stack:

sudo apt-get update

sudo apt-get install lamp-server^

echo “ServerName localhost” | sudo tee /etc/apache2/conf-available/fqdn.conf && sudo a2enconf fqdn

php -r ‘echo “\n\nYour PHP installation is working fine.\n\n\n”;’

sudo apt-get install phpmyadmin

sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf

sudo a2enconf phpmyadmin

sudo /etc/init.d/apache2 reload

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: