Friday, November 3, 2017

How to Install Apache2, PHP7, Mysql-Server, PhpMyAdmin on Ubuntu 16.04

How to Install Apache2, PHP7, Mysql-Server, PhpMyAdmin on Ubuntu 16.04

Step One - Install Apache2
  • Open The Terminal 
  • Type 1st command   =   "  sudo apt-get update  "
  • 2nd command  =   "  sudo apt-get install apache2  "
  • Finish the installation open browser and check " https://localhost " is working.



Step Two - Install PHP7
  • First you need to add repository to your source file.
  • 1st command   =   "  sudo add-apt-repository ppa:ondrej/php  "    then press Enter
  • 2ns command  =   "  sudo apt-get update  "
  • 3rd command  =   "  sudo apt-get install php7.0 php7.0-mysql   "

Step Third -  Install Mysql-Server
  • Direct run to following command 
  • sudo apt-get install mysql-server  "
  • Installation started, then your server will ask to you select the MYSQL root user password. Type the password and confirm the password. and press OK button. 

Step Fourth  - Install PhpMyAdmin
  • Run command  =  " sudo apt-get install phpmyadmin php-mcrypt php-mbstring php-gettext  "
  • Then select the server - choose aapche2.  Press OK
  • Now setup the database to use dbconfig-common. Press  Yes
  • Final step to type the PhpMyAdmin password and confirm.
  • Installation complected. 

Next Enable to PHP extensions mcrypt & mbstring to following command -
  • sudo phpenmod mcrypt
  • sudo phpenmod mbstring

Then restart the apache2 server to use following command -
  •  "  sudo /etc/init.d/apache2 restart   "

Now check PhpMyAdmin in browser -

https://localhost/phpmyadmin




Finish to Installation ..... :)
Any Problem Please comment me....