Thursday, August 4, 2016

Install and Secure Apache, My SQL, PHP & phpMyAdmin on a CentOS 6




To Install Apache, My SQL, PHP & phpMyAdmin follow below process, 


    a) Run below command to install Apache, My SQL, PHP and phpMyAdmin
   
        yum install httpd mysql-server php php-mysql
   
    b) Run below command to start Apache & MySQL service,
   
        service httpd start
        service mysqld start
   
    c) Run below command to add Apache & MySQL service in startup,
   
        chkconfig httpd on
        chkconfig mysqld on

    d) Run below command to set database password, and other settings,
   
        mysql_secure_installation
       
     e) Run below command to install phpMyAdmin
      
        yum install epel-release
        yum install phpmyadmin

     f) Open below file, update required detais and restart apache service,
   
    /etc/httpd/conf.d/phpMyAdmin.conf

    Require ip your_workstation_IP_address
    . . .
    Allow from your_workstation_IP_address
    . . .
    Require ip your_workstation_IP_address
    . . .
    Allow from your_workstation_IP_address
    . . .

    service httpd restart

       
    g) Open below url to test apache and phpMyAdmin
   
        Apache
        http://<IP_address>
       
        phpMyAdmin
        http://<IP_address>/phpmyadmin

ENJOY! and Stay connected.
       

0 comments :

Post a Comment