Your IP is: 3.80.177.176

How to install Apache PHP MySQL server on Ubuntu

Setting up the Apache web server with PHP and MySQL on Ubuntu is a fairly easy task

Here are the simple steps:

To install Apache

sudo apt-get install apache2

To install PHP

sudo apt-get install PHP5

To install Mysql

sudo apt-get install mysql-server

Restart the Apache server and PHP gets enabled on Apache

sudo /etc/init.d/apache2 restart

To add the LDAP module on PHP, install it using the apt-get command

sudo apt-get install php5-ldap

Restart Apache again and the LDAP module is enabled

 

To install the PHPMyAdmin tool to manage the MySQL database use:

sudo apt-get install phpmyadmin

 

Once installed edit the apache2.conf file

sudo vi /etc/apache2/apache2.conf

 

enter this line at the very end

Include /etc/phpmyadmin/apache.conf

 

Restart Apache again