CentOS下安裝使用phpMyAdmin. Set up phpMyAdmin on CentOS,centosphpmyadmin
需要組件:ApachePHPMysqlphpMyAdminApache0. yum install httpd1. 確認版本$ httpd -v2. 啟動apache$ sudo service httpd start (http://xxx.xxx.xxx.xxx shows apache info)3.設定自動啟動(optional)$ sudo chkconfig httpd on$ sudo chkconfig --listhttpd 0:off 1:off 2:on 3:on 4:on 5:on 6:offPHP0. yum install php php-devel php-mbstring php-mysql php-gd1. 確認版本$ php -v2. 設定php.ini$ sudo cd /etc$ sudo cp php.ini php.ini.old$ sudo vim php.ini (optional)post_max_size = 8Mupload_max_filesize = 2M↓post_max_size = 128Mupload_max_filesize = 128MMysql0. yum -y install mysql-server1. 確認版本$ mysql --version2. Mysql 啟動$ sudo service mysqld start 或者$ sudo /etc/rc.d/init.d/mysqld start3. 設定密碼$ sudo mysql_secure_installation4. 設定自動啟動$ sudo chkconfig mysqld onphpMyAdmin0. 安裝$ sudo yum install phpmyadmin1. 配置phpMyAdmin.conf$ cd /etc/httpd/conf.d$ sudo cp phpMyAdmin.conf phpMyAdmin.conf.old$ sudo vim phpMyAdmin.conf Allow from 127.0.0.1 (near line 25)Allow from ::1↓#Allow from 127.0.0.1#Allow from ::1Allow from All$ sudo service httpd restarthttp://xxx.xxx.xxx.xxx/phpmyadmin
著作權聲明:本文為博主原創文章,未經博主允許不得轉載。