How to install php,phpmyadmin and mysql on Ubuntu (Server) 14.04 LTS Step-by-Step

Step 1 – Update repositories.

root@mail:/# apt-get update
root@mail:/# apt-get upgrade

Step 2 – Install mysql with the following command.

root@mail:/# apt-get install mysql-server mysql-client

Step 3 – You have to enter password for the root user.

Step 4 – You have to repeat password for the root user.

Step 5 – Install php5 for mysql with the following command.

root@mail:/# apt-get install php5-mysql

Step 6 – Install php5myadmin with the following command.

root@mail:/# apt-get install phpmyadmin

Step 7 – Choose web server who you want to use. i strongly recommended apache2

Step 8 – Configuring phpmyadmin – Configure database for phpmyadmin with dbconfig-common? write YES

Step 9 – Configuring phpmyadmin – Password of the database’s administrative user:

Step 10 – Configuring phpmyadmin – MySQL application password for phpmyadmin:

Step 11 – Configuring phpmyadmin – Password confirmation:

Step 12 – You have to write the ip address of your server “/” and phpmyadmin. You will phpMyAdmin.

Step 13 – You have to write password for the root user and login into phpmyadmin.

Step 14 – Fix “The mcrypt extension is missing. Please check your PHP configuration.” with the following command:

root@mail:/# apt-get install mcrypt php5-mcrypt

Step 15 – Enable mcrypt with the following command:

root@mail:/# php5enmod mcrypt

Step 16 – For the changes to take effect you have to restart apache2 service with the following command:

root@mail:/# service apache2 restart

Step 17 – The problem was fixed.

Step 18 – Install php5-SSH2.

root@mail:/# apt-get install libssh2-1-dev libssh2-php
root@mail:/# sudo php5endmod ssh2

Step 18 – Install CURL.

root@mail:/# apt-get install curl libcurl3 libcurl3-dev php5-curl

Step 19 – Restart apache service.

root@mail:/# service apache2 restart

12 ThemeHow to install Zimbra 8.6 on Ubuntu (Server) 14.04 LTS Step-by-Step

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*
Website