1. 程式人生 > >Linux伺服器配置---phpmyadmin

Linux伺服器配置---phpmyadmin

phpMyAdmin 工具

1、檢測是否已安裝php、php-mysql、apache等工具

[[email protected] src]# rpm -qa |grep php

php-cli-5.3.3-26.el6.i686

php-gd-5.3.3-26.el6.i686

php-mysql-5.3.3-26.el6.i686

php-pdo-5.3.3-26.el6.i686

php-5.3.3-26.el6.i686

php-xml-5.3.3-26.el6.i686

php-common-5.3.3-26.el6.i686

[[email protected] src]# 

 

2、到phpMyAdmin官網下載“phpMyAdmin”,https://www.phpmyadmin.net/

 

3、將下載的軟體拷貝到“/var/www/html/”目錄下,重新命名“phpMyAdmin” 

[[email protected] down]#tar zxvf phpMyAdmin-4.8.2.tar.gz 

[[email protected] down]#cp r phpMyAdmin-4.8.2 /var/www/html/phpMyAdmin

 

4、修改配置檔案“config.sample.inc.php”,將第29行的“cookie”改為“http”

[[email protected] src]# cd /var/www/html/phpMyAdmin/

[[email protected] phpMyAdmin]# gedit config.sample.inc.php

/* Authentication type */

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

 

5、啟動Apache 和mysql

[[email protected] phpMyAdmin]# service httpd start

正在啟動 httpd

[[email protected] phpMyAdmin]# service mysqld start

正在啟動mysqld                                          [確定]

[[email protected] phpMyAdmin]# 

 

6、在瀏覽器輸入“127.0.0.1/phpMyAdmin”,就可以登入到phpMyAdmin