MySQL

Install SSH-Server, Apache2, PHP5, MySQL Server and phpMyAdmin in Ubuntu

Submitted by str on Tue, 10/12/2010 - 14:01

Every time I setup a new Ubuntu LAMP (Linux Apache MySQL PHP) Server, I usually install this way:

SSH
sudo apt-get install ssh
Apache2
sudo apt-get install apache2
PHP5
sudo apt-get install php5 libapache2-mod-php5
MySQL Server
sudo apt-get install mysql-server
phpMyAdmin
sudo apt-get install phpmyadmin

This guide is updated and tested to the latest Ubuntu and Linux Mint.

Ubuntu 8.10 (Intrepid Ibex) Apache-PHP-MySQL Server

Submitted by str on Wed, 12/17/2008 - 22:58

Simple installation of Apache, PHP and MySQL in Ubuntu 8.10 (Intrepid Ibex).

Optionally, install SSH Client and Server (for remote access to this server)
sudo apt-get install ssh

Install Database Server
sudo apt-get install mysql-server

Install Apache2 web server
sudo apt-get install apache2

Install PHP5
sudo apt-get install php5 libapache2-mod-php5

Install PHP5-MySQL support
sudo apt-get install php5-mysql

Restart Apache
sudo /etc/init.d/apache2 restart

Ubuntu 8.04 LTS (Hardy Heron) Apache-PHP-MySQL Server

Submitted by str on Tue, 05/06/2008 - 17:52

Once again, here's my updated simple installation of Apache, PHP and MySQL in Ubuntu 8.04 LTS (Hardy Heron) Server.

Install SSH Client and Server (for my remote access)
sudo apt-get install ssh

Install Database Server
sudo apt-get install mysql-server-5.0

Install Apache HTTP Server
sudo apt-get install apache2

Install PHP5 and Apache PHP5 module
sudo apt-get install php5 libapache2-mod-php5

Restart Apache
sudo /etc/init.d/apache2 restart

Optionally, install phpMyAdmin
sudo apt-get install phpmyadmin

Dapper Drake Update: Ubuntu Apache-PHP-MySQL Server

Submitted by str on Tue, 07/25/2006 - 10:00

Many people found my original post regarding this as "the quick help" how to install Apache, PHP and MySQL in Ubuntu; now with Dapper Drake I'll make it more ultra-quick :)

Just type this one liner in your Ubuntu console and you will have all them up and running:

$ sudo apt-get install mysql-server apache2 php5 php5-mysql libapache2-mod-php5