2010年12月1日 星期三

CentOS5_PHP、MySQL及phpMyAdmin的安裝與管理

rpm -qa |grep php
yum -y install php php-imap php-ldap
service httpd restart

tail /var/log/httpd/error_log
[Wed Nov 24 14:24:28 2010] [notice] SELinux policy enabled; httpd running as context root:system_r:httpd_t
[Wed Nov 24 14:24:28 2010] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Nov 24 14:24:28 2010] [notice] Digest: generating secret for digest authentication ...
[Wed Nov 24 14:24:28 2010] [notice] Digest: done
[Wed Nov 24 14:24:28 2010] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Wed Nov 24 14:24:28 2010] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations

echo "" > /var/www/html/test.php

http://mail1.chkops.kh.edu.tw/test.php

vim /etc/php.ini

MySQL的安裝
yum -y install mysql-server php-mysql
service mysqld start
mysqladmin password 新密碼
mysqladmin -p refresh

phpMyAdmin的安裝與使用
yum -y install php-gd phpmyadmin
vim /usr/share/phpmyadmin/config.inc.php
$cfg['Servers'][$i]['auth_type'] = 'http';

mysql -u root -p < /usr/share/phpmyadmin/scripts/create_tables_mysql_4_1_2+.sql

service httpd restart

vim /etc/httpd/conf.d/phpmyadmin.conf

Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from 163.32.202.0/24


service httpd restart

沒有留言: