¿ìËÙÒµÎñͨµÀ

redhatÏ´LAMP¼Ü¹¹

×÷Õß ØýÃû¼¼Êõ À´Ô´ Linuxϵͳ ä¯ÀÀ ·¢²¼Ê±¼ä 2012-03-26
ysql

--with-extra-charsets=all
//ÔÚ°²×°mysqlʱ°²×°ËùÓÐ×Ö·û¼¯


#make
#make install

²½ÖèÈý£º
#/usr/local/mysql/bin/mysql_install_db --user=mysql

//³õʼ»¯Êý¾Ý¿â

//¸Ä±äÊý¾ÝĿ¼µÄËùÓÐȨ
#chown -R root.mysql /usr/local/mysql/
#chown -R mysql /usr/local/mysql/var

//µ÷Õûlib¿â·¾¶
#echo "/usr/local/mysql/lib/mysql" >> /etc/ld.so.conf

#ldconfig Ë¢ÐÂ

ʹÓýű¾°²È«Æô¶¯·þÎñ
#/usr/local/mysql/bin/mysqld_safe --user=mysql &

²é¿´¶Ë¿Ú
#netstat -ntpl | grep 3306

//½«mysqlÌí¼ÓΪϵͳ·þÎñ
#cp support-files/mysql.server /etc/init.d/mysqld
#chmod X /etc/init.d/mysqld
#chkconfig --add mysqld
#chkconfig mysqld on


ÉèÖÃmysql³ÌÐòµÄÖ´Ðз¾¶
#export PATH=$PATH:/usr/local/mysql/bin
#echo "PATH=$PATH:/usr/local/mysql/bin" >> /etc/profile

ÉèÖÃMYSQLÃÜÂë
#mysqladmin -u root password "123456"
#mysql -u root -p

===============°²×°×îа汾µÄPHPÄ£¿é=============

[root@localhost php-5.2.6]

# ./configure \
//Ö´Ðе±Ç°Ä¿Â¼Ï**í¼þ×Ô´øµÄÅäÖÃÃüÁî
> --prefix=/usr/local/php \
//ÉèÖÃPHP5 µÄ°²×°Â·¾¶
> --with-config-file-path=/usr/local/php/etc \
//Ö¸¶¨PHP5ÅäÖÃÎļþ´æÈëµÄ·¾¶
> --with-apxs2=/usr/local/apache2/bin/apxs \

//¸æËßPHP²éÕÒApache 2µÄµØ·½
> --with-mysql=/usr/local/mysql/ \
//Ö¸¶¨MySQLµÄ°²×°Ä¿Â¼ ÓµÓе۹úÒ»ÇУ¬½ÔÓпÉÄÜ¡£»¶Ó­·ÃÎÊphome.net
> --with-libxml-dir=/usr/local/libxml2/ \
//¸æËßPHP·ÅÖÃlibxml2¿âµÄµØ·½
> --with-png-dir=/usr/local/libpng/ \
//¸æËßPHP·ÅÖÃlibpng¿âµÄµØ·½
> --with-jpeg-dir=/usr/local/jpeg6/ \
//¸æËßPHP·ÅÖÃjpeg¿âµÄµØ·½
> --with-freetype-dir=/usr/local/freetype/ \
//¸æËßPHP·ÅÖÃfreetype¿âµÄµØ·½
> --with-gd=/usr/local/gd2/ \
//¸æËßPHP·ÅÖÃgd¿âµÄµØ·½
> --with-zlib-dir=/usr/local/zlib/ \
//¸æËßPHP·ÅÖÃzlib¿âµÄµØ·½
> --with-mcrypt=/usr/local/libmcrypt/ \
//¸æËßPHP·ÅÖÃlibmcrypt¿âµÄµØ·½
> --with-mysqli=/usr/local/mysql/bin/mysql_config \
//±äÁ¿¼¤»îÐÂÔö¼ÓµÄMySQLi¹¦ÄÜ
> --enable-soap \
//±äÁ¿¼¤»îSOAPºÍWeb servicesÖ§³Ö
> --enable-mbstring=all \
//ʹ¶à×Ö½Ú×Ö·û´®Ö§³Ö
> --enable-sockets
//±äÁ¿¼¤»îsocketͨÐÅÌØÐÔ

#make
#make install


cp php.ini-dist /usr/local/php/etc/php.ini

//´´½¨ÅäÖÃÎļþ ½«Ô´Âë°üĿ¼ÏµÄ"php.ini- dist"Îļþ¸´ÖƵ½Ö¸¶¨µÄÄ¿

¼

=====================ÕûºÏApacheÓëPHP======================

ÉèÖÃhttpd.confÎļþ ²âÊÔPHPÓëApacheµÄЭͬ¹¤×÷
#vim /usr/local/apache2/conf/httpd.conf

54ÐÐÈ·ÈÏÓÐÄ£¿é LoadModule php5_module modules/libphp5.so
311ÐÐÌí¼Ó AddType application/x-httpd-php .php
163ÐÐÌí¼Óindex.php

²âÊÔPHPÓëApache2µÄЭͬ¹¤×÷
#vim /usr/local/apache2/htdocs/test.php
<?php
phpinfo();
?>

²âÊÔÓëMYSQL·þÎñÆ÷µÄ

ÁèÖڿƼ¼×¨ÒµÌṩ·þÎñÆ÷×âÓᢷþÎñÆ÷Íйܡ¢ÆóÒµÓʾ֡¢ÐéÄâÖ÷»úµÈ·þÎñ£¬¹«Ë¾ÍøÕ¾£ºhttp://www.lingzhong.cn ΪÁ˸ø¹ã´ó¿Í»§Á˽â¸ü¶àµÄ¼¼ÊõÐÅÏ¢£¬±¾¼¼ÊõÎÄÕÂÊÕ¼¯À´Ô´ÓÚÍøÂç,ÁèÖڿƼ¼×ðÖØÎÄÕÂ×÷ÕߵİæȨ£¬Èç¹ûÓÐÉæ¼°ÄãµÄ°æȨÓбØҪɾ³ýÄãµÄÎÄÕ£¬ÇëºÍÎÒÃÇÁªÏµ¡£ÒÔÉÏÐÅÏ¢ÓëÎÄÕÂÕýÎÄÊDz»¿É·Ö¸îµÄÒ»²¿·Ö,Èç¹ûÄúҪתÔر¾ÎÄÕÂ,Çë±£ÁôÒÔÉÏÐÅÏ¢£¬Ð»Ð»!

·ÖÏíµ½£º ¸ü¶à

Copyright ©1999-2011 ÏÃÃÅÁèÖڿƼ¼ÓÐÏÞ¹«Ë¾ ÏÃÃÅÓÅͨ»¥Áª¿Æ¼¼¿ª·¢ÓÐÏÞ¹«Ë¾ All rights reserved

µØÖ·(ADD)£ºÏÃÃÅÈí¼þÔ°¶þÆÚÍûº£Â·63ºÅ701E£¨¶«ÄÏÈÚͨÅÔ£© Óʱà(ZIP)£º361008

µç»°£º0592-5908028 ´«Õ棺0592-5908039 ×ÉѯÐÅÏ䣺web@lingzhong.cn ×ÉѯOICQ£º173723134

¡¶ÖлªÈËÃñ¹²ºÍ¹úÔöÖµµçÐÅÒµÎñ¾­ÓªÐí¿ÉÖ¤¡·ÃöB2-20100024  ICP±¸°¸:ÃöICP±¸05037997ºÅ