Posted On April 1, 2019

Install phpMyAdmin in Centos 5.3

kimconnect 0 comments
blog.KimConnect.com >> Database , Linux >> Install phpMyAdmin in Centos 5.3
# Prerequisite: must install RPMForge Repo prior
yum install httpd php php-mysql php-gd php-mbstring php-mcrypt mysql mysql-server phpmyadmin
chkconfig httpd on
chkconfig mysqld on
service httpd start
service mysqld start
—-
vim /usr/share/phpmyadmin/config.inc.php
—-
$cfg[‘blowfish_secret’] = ‘[whatever]’; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
—-
—- configure port 50000 open on firewall —
vim /etc/httpd/conf/httpd.conf
—- Add virtual website —-
Add:
Listen 50000
<VirtualHost *:50000>
        # Basic setup
        ServerAdmin [email protected]
        ServerName localhost
        ServerAlias 192.168.1.80
        DocumentRoot /usr/share/phpmyadmin
    # HTML documents, with indexing.
        <Directory />
        Options +Includes
        </Directory>
</VirtualHost>
vim /etc/httpd/conf.d/phpmyadmin.conf
—- To allow overrides —-
AllowOverride All  //inside the brackets
Alias /phpmyadmin /usr/share/phpmyadmin
Alias /phpMyAdmin /usr/share/phpmyadmin
Alias /mysqladmin /usr/share/phpmyadmin
Create user root:
mysqladmin -u root password PASSWORD (mySQL ‘root’ is not the same as system root)

Leave a Reply

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

Related Post

Experimental selinux Settings

enable or disable selinux: vim /etc/sysconfig/selinux   setsebool -P httpd_read_user_content 1   grep nginx /var/log/audit/audit.log |…

How To Install Google Earth on Linux Mint, Debian, or Ubuntu

# Install Google Earth cd /tmp wget https://dl.google.com/dl/earth/client/current/google-earth-pro-stable_current_amd64.deb sudo dpkg -i google-earth-pro-stable_current_amd64.deb # Run the…

Bash Shell Quick If Then and Case Switch Statements

protocol=udp # or tcp # If-then implementation if [$protocol == udp] then prefix=@ else prefix=@@…
Other project: DragonCoin.com