CentOS Stop Configuration Php,phpmyadmin

Source: Internet
Author: User
Tags configuration php vps
CentOS under Configuration Php,phpmyadmin

Original articles, reproduced please specify the source: http://www.aj2ee.com

It took some time today to configure the PHP environment on your VPS and configure the phpMyAdmin to manage the MySQL database.
Previously wrote several Linux under the Apache,jdk,tomcat,svn,vsftpd,yum configuration. Apache has integrated well with TOMCAT,SVN.
To use phpMyAdmin to manage the MySQL database, you have to configure the PHP environment, I still use yum to install PHP.
My CentOS yum PHP version has two, one is 5.2, the other 5.3, I installed the version of 5.3.

<textarea readonly="" name="code" class="html">[Root@myvps certs]# yum install php53 [Root@myvps certs]# yum install php53-gd [Root@myvps certs]# yum Install php53-m Ysql</textarea>

There was a problem when installing Php53-mysql (for PHP connection to MySQL database):
My MySQL installation is installed from two RPM packages downloaded from the MySQL website:

mysql-server-community-5.1.61-1.rhel5.i386.rpm

mysql-client-community-5.1.61-1.rhel5.i386.rpm

When installing Php53-mysql with Yum, the following error is always reported:

[Root@myvps certs]# yum install php53-mysql Loaded plugins:fastestmirror Loading mirror speeds from cached Hostfile * BA Se:centos.mirror.facebook.net * extras:mirrors.ecvps.com * updates:mirror.web-ster.com Setting up Install Process Res Olving Dependencies-Running Transaction Check---> Package php53-mysql.i386 0:5.3.3-7.el5_8 set to be updated-- > Processing dependency:libmysqlclient.so.15 (libmysqlclient_15) for Package:php53-mysql---Processing dependency:libmysqlclient.so.15 for Package:php53-mysql-Running transaction Check---> Package mysql.i386 0:5. 0.95-1.el5_7.1 set to be updated--processing conflict:mysql conflicts mysql--finished Dependency Resolution m Ysql-5.0.95-1.el5_7.1.i386 from updates have depsolving problems--MySQL conflicts with mysql-server-community Error : MySQL conflicts with mysql-server-community-could try using--skip-broken to work around the problem you could try Running:package-cleanup--problems package-cleanup--dupes Rpm-va--nofiles--nodigest The program package -cleanup is found in the Yum-utils package.

Error:mysql conflicts with mysql-server-community MySQL clashes with mysql-server-community.
I have also tried to skip with the--skip-broken parameter indicated above, but it is still invalid.
The solution was later found on an English-language website:
Preferred one RPM package to download for MySQL:mysql-shared-compat-5.1.63-1.rhel5.i386.rpm
Then follow the instructions below to install:

[Root@myvps certs]# rpm-ivh/home/resource/mysql-shared-compat-5.1.63-1.rhel5.i386.rpm Preparing ... ###### ##################################### [100%] 1:mysql-shared-compat ########################################### [ 100%] [Root@myvps certs]# rpm2cpio/home/resource/mysql-shared-compat-5.1.63-1.rhel5.i386.rpm | cpio-t | grep libmysqlclient 14550 blocks./usr/lib/libmysqlclient.so/usr/lib/libmysqlclient.so.10./usr/lib/ libmysqlclient.so.10.0.0./usr/lib/libmysqlclient.so.12./usr/lib/libmysqlclient.so.12.0.0./usr/lib/ libmysqlclient.so.14./usr/lib/libmysqlclient.so.14.0.0./usr/lib/libmysqlclient.so.15./usr/lib/ libmysqlclient.so.15.0.0./usr/lib/libmysqlclient_r.so./usr/lib/libmysqlclient_r.so.10./usr/lib/libmysqlclient_ r.so.10.0.0./usr/lib/libmysqlclient_r.so.12./usr/lib/libmysqlclient_r.so.12.0.0./usr/lib/libmysqlclient_ r.so.14./usr/lib/libmysqlclient_r.so.14.0.0./usr/lib/libmysqlclient_r.so.15./usr/lib/libmysqlclient_ r.so.15.0.0 [Root@myvps certs]# rpm2cpio/home/resource/mysql-shared-compat-5.1.63-1.rhel5.i386.rpm | Cpio-ivd./usr/lib/libmysqlclient_r.so.15./usr/lib/libmysqlclient_r.so.15 14550 Blocks [Root@MyVPS certs]# Rpm2cpio/ home/resource/mysql-shared-compat-5.1.63-1.rhel5.i386.rpm | Cpio-ivd./usr/lib/libmysqlclient_r.so.15.0.0./usr/lib/libmysqlclient_r.so.15.0.0 14550 blocks [Root@MyVPS certs]# rpm2cpio/home/resource/mysql-shared-compat-5.1.63-1.rhel5.i386.rpm | Cpio-ivd./usr/lib/libmysqlclientr.so.15.0.0 14550 Blocks [Root@myvps certs]# rpm2cpio/home/resource/ mysql-shared-compat-5.1.63-1.rhel5.i386.rpm | Cpio-ivd./usr/lib/libmysqlclientr.so.15 14550 blocks [Root@myvps certs]#
After you have done this, install Php53-mysql with Yum
[email protected] certs]# Yum install Php53-mysql
This will enable the installation to succeed.
Test if PHP is installed successfully: Save the following code as info.php into the Web site root directory

<textarea readonly="" name="code" class="php"><ptml> <pead><title>test</title></pead> <body> <?php phpinfo ();?> </body> </ptml></textarea>

input http://localhost/info.php shown below:


download phpMyAdmin from the internet below phpmyadmin-3.5.1-all-languages.tar.gz
Upload this compressed file to the VPS, unzip it, and put it in the root directory of the website:

<textarea readonly="" name="code" class="html">//Decompression program Tarball tar XVFZ phpmyadmin-3.5.1-all-languages.tar.gz//Mobile directory Phpmyadmin-3.5.1-all-languages to/home/www/root/ PhpMyAdmin folder MV Phpmyadmin-3.5.1-all-languages/home/www/root/phpmyadmin//Enter PhpMyAdmin directory cd/home/www/root/ phpMyAdmin//Copy sample configuration file to config.inc.php file CP config.sample.inc.php config.inc.php//Restart Apache service httpd restart</textarea>

after restarting the HTTPD service, enter the URL: Http://localhost/phpmyadmin shown below:



Review the configuration of the Apache,jdk,tomcat,svn,vsftpd,yum:

Jdk1.6+tomcat6
MySQL5.1
apache2.2+svn1.6
Apache2.2+2tomcat6
Vsftp2
YUM



  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.