Linux:°²×°ApacheÓëPHP
Linux:°²×°ApacheÓëPHP
1¡¢Apache
ÔÚÈçÏÂÒ³ÃæÏÂÔØapacheµÄfor Linux µÄÔ´Âë°ühttp://www.apache.org/dist/httpd/; ´æÖÁ/home/xxĿ¼£¬xxÊÇ×Ô½¨Îļþ¼Ð£¬ÎÒ½¨ÁËÒ»¸öwjµÄÎļþ¼Ð¡£
ÃüÁîÁÐ±í£º
cd /home/wj
tar -zxvf httpd-2.0.54.tar.gz
mv httpd-2.0.54 apache
cd apache
./configure --prefix=/usr/local/apache2 --enable-module=so
make
make install
°²×°apacheÖÁ/usr/local/apache ²¢ÅäÖÃapacheÖ§³Ödso·½Ê½
2¡¢PHP
ÔÚÈçÏÂÒ³ÃæÏÂÔØphpµÄfor Linux µÄÔ´Âë°ühttp://www.php.net/downloads.php;´æÖÁ/home/wjĿ¼
ÃüÁîÁÐ±í£º
cd /home/wj
tar -zxvf php-5.0.4.tar.gz
mv php-5.0.4 php
cd php
./configure --prefix=/usr/local/php5
--with-apxs2=/usr/local/apache2/bin/apxs
--with-config-file-path=/usr/local/lib
--enable-track-vars
--with-xml
--with-MySQL
make
make install
ÆäÖÐapacheºÍmysqlÊǸù¾ÝÄã°²×°µÄĿ¼Ãû±ä£¬ÎÒµÄÊÇ =/usr/local/apache2/bin/apxs ºÍMySQL
cp php.ini-dist /usr/local/lib/php.ini
ÒÔdso·½Ê½°²×°phpÖÁ/usr/local/php ÉèÖÃÅäÖÃÎļþĿ¼Ϊ/usr/local/lib ¿ªÆômysql,xmlÖ§³Ö
3¡¢ÅäÖÃ
vi /usr/local/apache/conf/httpd.conf
¶Ôapache×öÈçÏÂÅäÖÃ
#½«ServerAdmin mailto:linux@linuxidc.comÒ»ÐиÄΪÄúµÄÓÊÏäµØÖ·
#DocumentRoot "/home/httpd/html/" ´Ë´¦ÎªhtmlÎļþÖ÷Ŀ¼
Options FollowSymLinks MultiViews Ϊ°²È«Æð¼û£¬È¥µô"Indexes"
DirectoryIndex default.php default.phtml default.php3 default.html default.htm
AddType application/x-httpd-php .php .phtml .php3 .inc #ÉèÖÃapacheµÄĬÈÏÎļþÃû´ÎÐò
AddType application/x-httpd-php-source .phps #ÉèÖÃphpÎļþºó׺
´æÅÌÍ˳ö
vi /usr/local/lib/php.ini
#register-golbals = On
´æÅÌÍ˳ö
4¡¢Æô¶¯·þÎñ
/usr/local/apache/bin/apachectl start
5¡¢²âÊÔ
È»ºóд¸öphp²âÊÔÒ³info.php:ÄÚÈÝÈçÏÂ
¡´?phpphpinfo();?>
Õý³£µÄ»°£¬Ó¦¸ÃÄÜ¿´µ½phpµÄÐÅÏ¢ÁË£¬¹§Ï²ÄãµÄApche+Mysql+PHP°²×°³É¹¦¡£
6¡¢apache×Ô¶¯Æô¶¯- -
ÏÂÃæÓÃ×ÔÆô¶¯apacheΪÀý;
×ÔÆô¶
Ïà¹ØÎĵµ£º
ÔÚÐéÄâ»úÉÏʵÑ飬ÿ´ÎÆô¶¯Ê±¶¼ÐèÒªºÜ³¤µÄʱ¼ä¡£ ÓÈÆäÊÇÔÚÆô¶¯sendmail ·þÎñµÄʱºò£¬ÒòΪʵÑéÖÐÒ²Óò»µ½Õâ¸ö¡£ ËùÒÔ¾ÍÏë°Ñsendmail Í£ÁË£¬½ÚÊ¡µã×ÊÔ´ºÍʱ¼ä¡£
1. ½áÊøsendmail ·þÎñ£º
# killall sendmail
2. ÔÚ×Ô ......
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
ÔÚ±¾ÎÄÖУ¬Ëùν“ÂË°Ó”£¨
Filtering
dam
£©ÊÇÖ¸ÍøÒ³ÄÚÈݵĹýÂ˼¼Êõ£¬ÄÇô£¬
Linux
Â˰Ӻδ¦Ñ°ÄØ£¿
½üÈÕ£¬½ÌÓý²¿·¢³ö֪ͨ£¬ ......
ÐÞ¸ÄipµØÖ·
¼´Ê±ÉúЧ:
# ifconfig eth0 192.168.0.20 netmask 255.255.255.0
Æô¶¯ÉúЧ:
ÐÞ¸Ä/etc/sysconfig/network-scripts/ifcfg-eth0
ÐÞ¸Ädefault gateway
¼´Ê±ÉúЧ:
# route add default gw 192.168.0.254
Æô¶¯ÉúЧ:
ÐÞ¸Ä/etc/sysconfig/network-scripts/ifcfg-eth0
ÐÞ¸Ädns
ÐÞ¸Ä/etc/resolv.conf
Ð޸ĺó¿É ......
´´½¨Ê±¼ä£º2010-01-26
×÷ÕߣºSteven Yang
E-mail£ºmqyoung@gmail.com
ºÜ¶à³¡ºÏÐèÒªÓõ½´®¿Úµ÷ÊÔ£¬±¾ÎĽéÉÜ´®¿ÚÅäÖùý³Ì£º
£¨ÑØÓùßÓÎÒÓõĻúÆ÷ubuntu 9.10³ÆΪ¿ª·¢ÏµÍ³[Developer]£¬ÐèÒªµ÷ÊÔµÄDebian³ÆΪĿ±êϵͳ[Target]£©
Ê×ÏÈÊÇÄÚºËÖ§³Ö£º
Ò»°ãÀ´Ëµ£¬Debian¡¢UbuntuµÈ·¢ÐаæµÄ¹Ù·½Äں˶¼Ö§³Ö£¬Èç¹û×Ô¼º±àÒëµÄÄÚ ......