PhpMyAdmin Installation Manual

Source: Internet
Author: User
Tags fpm install php phpmyadmin


First install php, need PHP version is greater than or equal to 5.6

Epel and Remi sources for CentOS 6.5.

# RPM-UVH http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm# rpm-uvh/http rpms.famillecollet.com/enterprise/remi-release-6.rpm


The following is the source for CentOS 7.0.

# yum Install epel-release# RPM-IVH http://rpms.famillecollet.com/enterprise/remi-release-7.rpm


Use the Yum List command to view the installable packages (packege).

# Yum List--enablerepo=remi--enablerepo=remi-php56 | grep php


Installing PHP5.6


The Yum source is configured, and the next step is to install PHP5.6.


# yum install--enablerepo=remi--enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php -phpunit-phpunit Php-pecl-xdebug Php-pecl-xhprof


Use the PHP command to view the Version.

[email protected] 15:13:48 ~]# php-v#/etc/init.d/php-fpm restartstopping php-fpm: [OK] Starting php-fpm: [OK]


Install Nginx:

Yum Install Nginx


Modify Nginx configuration file

# cat/etc/nginx/conf.d/admin.conf Server{listen 80;    server_name _;    Index index.html index.php;    root/data;        Location ~. *\.php$ {include fastcgi_params;        Fastcgi_pass 127.0.0.1:9000;        Fastcgi_index index.php; Fastcgi_param script_filename $document _root$fastcgi_script_name;}}

Note: $document _root This nginx variable takes the root Value.



To install the MySQL service:

After the direct RPM is installed, start the MySQL service and log in to MySQL authorization:

Mysql> Grant all privileges on * * to ' root ' @ '% ' identified by ' password '; Query OK, 0 rows affected (0.01 SEC) mysql> flush privileges; Query OK, 0 rows affected (0.00 SEC)


Download the phpMyAdmin software configuration phpmyadmin configuration File.


first, you will have downloaded the

Phpmyadmin-4.7.0-all-languages.tar.gz


Unzip the phpMyAdmin Zip package and rename it Again.

Tar zxf phpmyadmin-4.7.0-all-languages.tar.gzmv phpmyadmin-4.7.0-all-languages phpMyAdmin

Note: move the phpMyAdmin to the Nginx root directory.



To modify the Phpmysqladmin configuration file:

vim/data/phpmyadmin/libraries/config.default.php


#修改为自己浏览器登录访问的url.

$cfg [' Pmaabsoluteuri '] = ' http://172.16.2.24/phpMyAdmin/';

#cookie的加密密码, to prevent simulated cookie cracking, define Yourself.

$cfg [' Blowfish_secret '] = ' [email protected] ';


IP for #Mysql server

$cfg [' Servers '] [$i] [' Host '] = ' 172.16.2.24 ';


#Mysql的端口.

$cfg [' Servers '] [$i] [' Port '] = ' 3306 ';


#基于cookie认证的方式, the default is Cookie.

$cfg [' Servers '] [$i] [' auth_type '] = ' Cookie ';


#用户随便给, log in to phpMyAdmin with MySQL authorized account and password

$cfg [' Servers '] [$i] [' User '] = ' root ';


#密码随便给, log in to phpMyAdmin with MySQL authorized account and password

$cfg [' Servers '] [$i] [' Password '] = ' 123456 ';


#允许root登录, enabled by Default.

$cfg [' Servers '] [$i] [' allowroot '] = true;


#关闭无密码登录, The default is off.

$cfg [' Servers '] [$i] [' allownopassword '] = false;


#修改PhpMysqlAdmin登录默认的语言.

$cfg [' Defaultlang '] = ' zh ';


To restart the PHP program:

#/etc/init.d/php-fpm restartstopping php-fpm: [OK]starting php-fpm: [OK]



Access Browser: http://172.16.2.24/phpMyAdmin/

650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M01/95/F4/wKiom1kbrbyQqCISAADqW6Z3o1I452.png "title=" Php1.png "alt=" wkiom1kbrbyqqcisaadqw6z3o1i452.png "/>

User/password: Mysql authorized user and password


Online a lot of information that need CP a copy of config.sample.inc.php for config.inc.php, modify the inside some parameters, do not need at All.


This article is from the "ant" blog, please be sure to keep this source http://215687833.blog.51cto.com/6724358/1926515

PhpMyAdmin Installation Manual

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.