How to install phpmyadmin on Centos
페이지 정보
작성자
본문
How to install phpmyadmin on Centos
phpMyAdmin is an open source tool written in PHP intended to handle the administration of MySQL over the World Wide Web. It can perform various tasks such as creating, modifying or deleting databases, tables, fields or rows; executing SQL statements; or managing users and permissions. (Info from http://www.phpmyadmin.net)
How to install phpmyadmin? Before you install phpmyadmin, you need to install your LAMP 1st. Once you install, just follow below steps:-
- $ su -
- # cd /var/www/html
- # wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.3.0-rc1/phpMyAdmin-3.3.0-rc1-all-languages.zip?use_mirror=nchc
- # unzip phpMyAdmin-3.3.0-rc1-all-languages.zip
- # mv phpMyAdmin-3* phpmyadmin
- # cd phpmyadmin
- # cp config.sample.inc.php config.inc.php
- # vi config.inc.php
:
$cfg['Servers'][$i]['auth_type'] = ‘http‘; # default is cookies - Restart Apache
# service httpd restart
Run your phpmyadmin by following link:
http://your.domain.com/phpmyadmin/ or http://ipaddress/phpmyadmin/
phpmyadmin fail to start?
When you type above link, your phpmyadmin fail to start and show following error message:
PHP 5.2+ is required
To solve this issue, you need to upgrade your PHP 5.1 to PHP 5.2. But, on CentOS is no simple ‘yum’ upgrades to update your PHP 5.1.6 to PHP 5.2.6. you need to add Repository to your yum
Just follow below steps:
nano -w /etc/yum.repos.d/utterramblings.repo
... and then paste the following into the editor:
[utterramblings] name=Jason's Utter Ramblings Repo baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/ enabled=1 gpgcheck=1 gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
After that, just save it.
Now you should able to upgrade your PHP.
yum update php

관련링크
댓글목록
차동박님의 댓글

vi /etc/yum.repos.d/utterramblings.repo
... and then paste the following into the editor:
[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka