LAMP AND PHPMYADMIN SETUP IN UBUNTU

LAMP AND PHPMYADMIN SETUP IN UBUNTU

LAMP AND PHPMYADMIN SETUP IN UBUNTU

Install Apache/Mysql/Php

sudo apt-get update
sudo apt-get install apache2 mysql-client mysql-server php5

'It will prompt you to set the root password for mysql - please, please WRITE IT DOWN and spare yourself some grief, you will need it in later step.'

Additional Required Modules for php
sudo apt-get install graphviz aspell php5-pspell php5-curl php5-gd  php5-intl php5-mysql php5-xmlrpc php5-ldap clamav

Restart Apache so that the modules are loaded correctly
sudo service apache2 restart

Please type “http://localhost” on the browser to check if things are set up  correctly.You should see  “Apache2 Ubuntu Default Page”

To Check Apache2 Version from terminal,enter following command.
apache2 -v

Output:
Server version: Apache/2.4.7 (Ubuntu)
Server built:   Sep 18 2017 16:37:54

mysql version:
mysql -u root -p

Output:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 132
Server version: 5.5.58-0ubuntu0.14.04.1 (Ubuntu)

 Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.

 Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

 Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


Php Version:
php -v

Output:
PHP 5.5.9-1ubuntu4.22 (cli) (built: Aug  4 2017 19:40:28) 
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies


Phpmyadmin Setup:
sudo apt-get -y install phpmyadmin

select apache2 and enter your mysql password then set password for phpmyadmin and re-enter your phpmyadmin inorder to confirm.

From Terminal enter:
sudo gedit /etc/apache2/apache2.conf


Include the following 2 lines at the bottom:

#phpmyadmin configuration
Include /etc/phpmyadmin/apache.conf

restart apache server as 

sudo service apache2 restart
Go to browser and enter: 
localhost/phpmyadmin

You will see the phpmyadmin page.

 In Phpmyadmin you might find an error at bottom:
 
The mcrypt extension is missing. Please check your PHP configuration.


 

Solution:
 
sudo apt-get install php5-mcrypt

sudo php5enmod mcrypt 


Restart Apache so that the modules gets loaded correctly

sudo service apache2 restart

0 Response to "LAMP AND PHPMYADMIN SETUP IN UBUNTU"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel