1 php-mysql ²»ÊÇĬÈÏ°²×°µÄ£¬µ«ÊÇËüÔÚdisc2ÀïÃæ¡£Èç¹û²»°²×°Õâ¸ö£¬php¾Í²»ÄÜÁ¬½Ómysql
1.1 rfapacheòËÆ»áÔì³ÉphpÀ§ÄÑ£¨Íƶϣ¬Î´È·ÈÏ£©¡£
2 °²×°½áÊø disc1 2 ºó°²×°rpm -U php-mysql*,rpm È»ºó½âѹphpMyAdminµ½/var/www/html£¬´ËʱÆô¶¯
httpdºÍmysqld·þÎñ¡£ÔÚä¯ÀÀÆ÷ÀïÃæÊäÈë localhost/phpMyAdmin £¨¾ßÌåµØÖ·¿´Äã½âѹºóÄǸö
ÎļþÃû×Ö£© ¾Í¿ÉÒÔÓÃphpMyAdminÅäÖÃmysqlÁË¡£
3 Æô¶¯phpmysql 2.6.1ºóµÚÒ»²½ÊÇÉ趨rootÃÜÂ룬ÔÚ£ÛȨÏÞ£ÝÀïÃæÐ޸ģ¬Ð޸ĺó±ØÐëÐÞ¸ÄÎļþ¼ÐÀïÃæµÄÅäÖÃÎļþ config.inc.php ²ÅÄÜÖØÐÂʹÓÃphpmysql £¬¾ßÌåÊÇÐÞ¸Ä
[code]$cfg['Servers'][$i]['password'] = 'root new password';
$cfg['PmaAbsoluteUri'] ='http://localhost/phpMyAdmin/'[/code]
×¢ÊÍ£º1 °ÑÎı¾ root new password ¸Ä³ÉÄã×Ô¼ºµÄÃÜÂ룬localhostºÍÖ÷»ú¶¼Òª¸Ä¡£
2 http://localhost/phpMyAdmin ¸Ä³ÉÄã·½phpMyAdminµÄλÖá£
¶¼¸ÄÁËÒÔºó£¬phpMyAdminÏÂÃæµÄ´íÎóÌáʾ¾Í»áûÓÐÁË£¬Õâʱ¾Í¿ÉÒÔÕýȷʹÓÃphpmyadminÁË
4 ĬÈÏÒѾÓÐÁËÁ½¸öÊý¾Ý¿â mysql ºÍ test £¬½¨Á¢Óû§ÃûºÍÃÜÂëºóµ÷Óà ×Ô½¨Á¢µÄ Êý¾Ý¿âºÍÓÃ
»§ÃûÃÜÂë¾Í¿ÉÒÔ°²×°Äã»ùÓÚ Apache-PHP-Mysql µÄÍøÕ¾ÁË¡£¼ÇµÃÉèÖÃÍêÒªrestart httpdÒ»´Î¡£
5.ϵͳÓû§¸öÈËÖ÷Ò³ÎÊÌ⣬ÀýÈç homer
ÐÞ¸Ähttpd.conf ÐÞ¸ÄĬÈϵÄÈçÏÂÈçÏÂÁ½ÐÐ
[code] UserDir disable
#UserDir public_html[/code]
Ð޸ijÉ
[code] #UserDir disable
UserDir public_html[/code]
ÕâʱºòĬÈϵÄÓû§WWWÎļþ¼Ð¾ÍÊÇ http://localhost/~homer ¿ªÍ¨Á˶ÔÍâ·þÎñlocalhost¾Í»»³ÉÍâÍøµÄµØÖ·£¬±ÈÈç±ðÈË·ÃÎÊ http://theophy.ipp.ac.cn/~homer ¾Í¿ÉÒÔÁË¡£
Óû§ÐèÒªÈçϲÙ×÷£¬µÇ¼ºó
[code]mkdir public_html
chmod 711 /home/homer
chmod 755 /home/homer/public_html[/code]
ÉÏ´«¸öÈËÖ÷Ò³µÄʱºòÒªÔÚftpÉÏ´«ÎļþÊôÐÔÉèÖÃÃüÁî chomod 755 ÒÔ±ãʹÍøÕ¾¿ÉÒÔÍⲿ·ÃÎÊ¡£