×ÖÌå°²×°£¬°²×°

°²×°

ÈÕÆÚ£º2006-04-18   ¼ö£º
¡¡¡¡Ò»¡¢Èí¼þ»ñÈ¡ ¡¡¡¡apache_1.3.6.tar.gzphp-3.0.8.tar.gzmysql-3.22.21-pc-linux-gnu-i686. tar.gzphpMyAdmin_2.0.1.tar.gz ´Óhttp://www.htmlwizard.net/phpMyAdmin/È¡ µÃ×¢Ò⣺ÒÔÉϾùΪԴ´úÂë¶ø·ÇRPM°ü ¡¡¡¡¶þ¡¢Èí¼þ°²×° ¡¡¡¡ÒÔrootµÇ¼£¬½«ÒÔÉÏÎļþ¾ù¿½±´ÖÁ/rootÏÂ1.°²×°MySQL ¡¡¡¡#tar -zvxf mysql-3.22.21-pc-linux-gnu-i686.tar.gz ²úÉúmysql-3.22. 21-pc-linux-gnu-i686Ŀ¼#mv mysql-3.22.21-pc-linux-gnu-i686 /usr/local/mysql ÒƵ½/usr/local/mysql#cd /usr/local/mysql#./configure --prefix=/usr/local/mysql#cdMySQL°²×°Íê±Ï£¨ÎÒÏÂÔصÄÊÇbin°ü£© ¡¡¡¡2.°²×°Apache¼°php3 ¡¡¡¡#tar xvzf apache_1.3.6.tar.gz ²úÉúapache_1.3.6Ŀ¼#tar xvzf php-3. 0.8.tar.gz ²úÉúphp-3.0.8Ŀ¼#cd apache_1.3.6#./configure --prefix=/usr/local/apache °ÑApacheµÄ°²×°Ä¿Â¼¶¨Îª/usr/local/apache#cd . ./php-3.0.8#./configure --with-mysql=/usr/local/mysql --with-apache=.. /apache_1.3.6 --enable-track-vars ¡¡¡¡ÅäÖÃÖ§³ÖMySQL¡¢×÷ΪApache¹¦ÄÜÄ£¿é¡¢¸ú×Ù±äÁ¿ÓÐЧ#make; make installPHP°²×°Íê±Ï#cd ../apache_1.3.6#./configure --prefix=/usr/local/apache --activate-module=src/modules/php3/libphp3. a#make; make installAPACHE°²×°Íê±Ï#cd ../php-3.0.8#cp php3.ini-dist /usr/local/lib/php3.ini °Ñphp.iniÎļþ¿½µ½/usr/local/lib/Ŀ¼ÏÂ.#cd /usr/local/apache/conf#vi httpd.confÕÒµ½AddType application/x-httpd-php3 .php3°ÑËüÇ°Í·µÄ#ºÅ¸øɾÁ˵±È»Ò²¿É¼ÓÒ»ÐÐAddType application/x-httpd-php3 .aspÕâÑùÓÃFrontPage±à¼­»á·½±ãÒ»µã3.°²×° phpMyAdminL ¡¡¡¡#cd#tar -zvxf phpMyAdmin_2.0.1.tar.gz ²úÉúphpMyAdmin-2.0.1Ŀ¼#mv phpMyAdmin_2.0.1 /usr/local/apache/htdocs/phpMyAdmin ÒƵ½ /usr/local/mysql#cd /usr/local/apache/htdocs/phpMyAdmin#chmod a r * ÖÃΪ ¿É¶Á ¡¡¡¡Èý¡¢Èí¼þÔËÐÐ ¡¡¡¡Æô¶¯MySQL#cd /usr/local/mysql/#bin/safe_mysqld &²âÊÔ£º ¡¡¡¡#bin/mysql -u root ĬÈÏûÓÐÉè¿ÚÁîmysql>use mysql ´ò¿ªmysqlÊý¾Ý¿â mysql>select * from user; ´Ó±íuserÖжÁÊý¾Ý£¬±ðÍü¼Ó£»ºÅmysql>exitÕâÑù¾ÍËã ¿ÉÒÔÁË£¬ÏȲ»¼±×żӿÚÁî ¡¡¡¡Æô¶¯Apache/usr/local/apache/bin/apachectl start²âÊÔ£º ¡¡¡¡#telnet localhost 80Trying 127.0.0.1...Connected to localhost.Escape character is '^]'.HEAD / HTTP /1.1 ÊäÈë²¢¼ÓÁ½´Î»Ø³µ ¡¡¡¡HTTP/1.1 200 OKDate: Wed, 23 Jun 1999 02:51:27 GMTServer: Apache/1. 3.6 (Unix) PHP/3.0.8Last-Modified: Wed, 20 May 1998 14:59:42 GMTETag: "2e341-656-3562efde"Accept-Ranges: bytesContent-Length: 1622Connection: closeContent-Type: text/htmlX-Pad: avoid browser bug ¡¡¡¡Connection closed by foreign host ¡¡¡¡ÔÙÓÃä¯ÀÀÆ÷²âÊÔһϰÉ#cd /usr/local/apache/htdocs#vi test.php3ÔÚÎļþ ÀïÇÃÈë: ¡¡¡¡²¢´æÅÌÍ˳öÔÙÓÃä¯ÀÀÆ÷¿´Ò»ÏÂÕâ¸öÎļþ,ÊDz»ÊÇÒ»´ó´®ÐÅÏ¢³öÀ´ÁË? ¡¡¡¡Ê¹ÓÃphpMyAdminÓÃä¯ÀÀÆ÷´ò¿ª/phpMyAdmin/index.php3 ×¢Òâ´óСд ¡¡¡¡ËÄ¡¢MySQL¼°phpMyAdminµÄʹÓà ¡¡¡¡1.MySQLµÄÓû§¼°¿ÚÁîÉèÖà ¡¡¡¡#cd /usr/local/mysql#bin/mysqladmin -u root password 'пÚÁî '#bin/mysql -u root -pEnter password: ÊäÈë¿ÚÁîmysql>use mysqlmysql>update user set select_priv='y'; ʹÈκÎÈ˾ù¿É¶ÁÊý¾Ý¿â mysql>flush privileges; ʹÉèÖÃÓÐЧmysql>exitÆäËüÉèÖÃÇë²Î¼ûÏà¹ØÎĵµ ¡¡¡¡2.phpMyAdminÉèÖà ¡¡¡¡ÉèÖÿÚÁîºó£¬phpMyAdminÒ²Òª×÷Ïà¹ØÉèÖ㺠¡¡¡¡#cd /usr/local/apache/htdocs/phpMyAdmin#vi config.inc.php3½«µÚ8ÐÐ¸Ä Îª$cfgServers[1]['adv_auth'] = true; //ÕâÑù»áÎÊÓû§ÃûºÍ¿ÚÁµÚ47ÐиÄΪ $cfgMysqladmin = "/usr/local/mysql/bin/mysqladmin"; //ÓÃÓÚÖØÐÂÆô¶¯MySQL ½«µÚ59ÐиÄΪrequire("chinese_gb.inc.php3"); //¼òÌåÖÐÎÄÏÔʾ´æÅÌÍ˳öÓÃä¯ÀÀ Æ÷´ò¿ª/phpMyAdmin/index.php3 ×¢Òâ´óСд ¡¡¡¡ÕâϺÃÁË£¬¶¼ÊÇÇ×ÇеÄÖÐÎÄÌáʾ.... [Ŀ¼] -------------------------------------------------------------------------------- apache php3 mysql ================================================================================ *°²×°apache-devel rpm°ü. *°²×°MySQLÏà¹ØµÄ°ü. rpm -ivh MySQL-3.22.25-1.i386.rpm rpm -ivh MySQL-client-3.22.25-1.i386.rpm rpm -ivh MySQL-devel-3.22.25-1.i386.rpm *ÏÂÔØphp3Ô´Îļþphp-3.0.tar.gz *½â¿ªÔ´Îļþ tar xzvf php-3.0.tar.gz *½øÈëphp-3.0Ô´ÎļþĿ¼ ./configure --with-mysql=/usr --with-apxs=/usr/sbin/apxs --with-config-file -path=/etc/httpd (»¹ÓÐÆäËûÑ¡Ïî,¿ÉÒÔÔËÐÐ ./configure --help ¿´¿´) *½¨Ò»¸ömodulesĿ¼ mkdir modules *½øÈëregexĿ¼ ÔËÐÐ make r (ÕâÒ»²½¿ÉÄܲ»±ØÒª) ÔËÐÐ make lib *ÍË»ØÉÏÒ»¼¶Ä¿Â¼ ÔËÐÐ make install * cp modules/libphp3.so /etc/httpd/modules/ * cp php3.ini-dist /etc/httpd/php3.ini * ÐÞ¸Ä/etc/httpd/conf/httpd.conf ¼ÓÈë LoadModule php3_module modules/libphp3.so AddModule mod_php3.c ÐÞ¸Ä/etc/httpd/conf/srm.conf ¼ÓÈë AddType application/x-http-php3 .php3 *ÖØÆðapache /etc/rc.d/init.d/httpd restart *²âÊÔ ²é¿´mysqldÊÇ·ñÒѾ­ÔËÐÐ.Èç¹ûûÓÐ,ÏÈÔËÐÐmysqld ½«php3Ô´ÎļþÏÂtestsĿ¼ÏµÄmysqlÎļþ¿½±´µ½ /home/httpd/htmlĿ¼Ï lynx localhost/mysql.php3 Èç¹ûÓÐÎÊÌâ,¿ÉÒÔ½«mysql.php3ÖеÄ127.0.0.1¸ÄΪlocalhost
±êÇ©£º