ÔÚCENT OSÉϱàÒë°²×°APACHE+PHP+MYSQL
Ô´ÂëĿ¼£º/usr/local/src/
Ó¦ÓÃĿ¼£º/usr/local/app/
Ò»¡¢MYSQL°²×°¡£
1.ÏÂÔØMSYQLÔ´Â룺
http://www.mysql.com/downloads/mysql/
×î½ü°æ±¾ÊÇ mysql-5.1.47.tar.gz
2.ÉÏ´«µ½·þÎñÆ÷Ŀ¼/usr/local/src/
cd /usr/local/src/
tar zxvf mysql-5.1.47.tar.gz
cd mysql-5.1.47
./configure --prefix=/usr/local/app/mysql --with-extra-charsets=all --with-unix-socket-path=/tmp/mysql.sock
make
make install
°²×°Íê±Ï¡£
3. ³õʼ»¯MYSQL
cp /usr/local/app/mysql/share/mysql/my-medium.cnf /etc/my.cnf
/usr/local/app/mysql/bin/mysql_install_db
cp /usr/local/app/mysql/share/mysql/mysql.server /etc/init.d/mysqld
4.´´½¨MYSQLÓû§
groupadd mysql
useradd mysql -d /usr/local/app/mysql/var -g mysql
5.Æô¶¯mysql
/etc/init.d/mysqld start
¶þ.°²×°APACHE
1.ÏÂÔØHTTPD
http://labs.renren.com/apache-mirror/httpd/
ÏÂÔØ×îÐ嵀 httpd-2.2.15.tar.gz
2.ÉÏ´«µ½·þÎñÆ÷ /usr/lcoal/src/
cd /usr/lcoal/src/
tar zxvf httpd-2.2.15.tar.gz
cd /usr/lcoal/src/httpd-2.2.15
./configure --prefix=/usr/local/apache --enable-so --enable-mods-shared=most
make
make install
Èý¡¢°²×°PHP
1.ÏÂÔØPHP
http://www.php.net/downloads.php
ÏÂÔØ×îа汾 php-5.3.2.tar.gz
2.ÉÏ´«µ½·þÎñÆ÷ /usr/lcoal/src/
tar zvfx php-5.3.2.tar.gz
cd php-5.3.2
./configure --with-apxs2=/usr/local/app/apache/bin/apxs --with-zlib-dir --with-libxml-dir --with-jpeg-dir --with-png-dir --with-gd --with-mysql=/usr/local/app/mysql --with-pdo-mysql=/usr/local/app/mysql --with-mysqli=/usr/local/app/mysql/bin/mysql_config
make
make install
3.ÅäÖÃAPACHEÖ§³ÖPHP5
ÐÞ¸Ähttpd.conf
vi /usr/lcoal/app/apache/conf/httpd.conf
httpd.conf ÖÐÌí¼Ó
LoadModule php5_module modules/libphp5.so
httpd.conf ÖÐÌí¼Ó
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
ÖØÆôapache
/usr/local/app/apache/bin/apachectrl start
Ïà¹ØÎĵµ£º
×î½ü×öÁ˼¸¸öСÐ͵ÄÏîÄ¿£¬±È½Ï¼òµ¥£¬Ö»ÊÇÐèҪϸÐÄ£¬¶¼¿ÉÒÔÍê³É£¬Ö÷ÒªÊǶÔMVCģʽµÄÊìÁ·Ó¦Ó㬶ÔWEBÀ࿪·¢»¹ÊǺÜÓаïÖúµÄ¡£
¸Õ¿ªÊ¼µÄµÚÒ»¸öСÏîÄ¿£¬ÓÃÀ´Á·ÊÖ£¬È»ºóÎÒÈ«²¿ÊÇÁ÷³Ì»¯µÄ±à³Ì¡£´úÂëÒ²¾Í400ÐÐ×óÓÒ¡£½á¹ûÎҵĵ¼Ê¦£¬¾õµÃ´úÂë½á¹¹²»ÇåÎú£¬²»ÈÝÒ×
ά»¤£¬ÐèÒªÐ޸ġ£ÐèÒªÎÒ²ÉÓÃOOÀàµÄ±à³Ì·½Ê½½øÐиÄд¡£ÎÒÒÔǰдPHP£¬¼¸ ......
ÔÎÄת×Ô £ºhttp://home.phpchina.com/space.php?uid=49655&do=blog&id=182488
Ò»£® ±Ø±¸ÖªÊ¶
1.wsdl(web·þÎñ±ê¼ÇÓïÑÔ)
WSDL£¨ÍøÂç·þÎñÃèÊöÓïÑÔ£¬Web Services Description Language£©ÊÇÒ»ÃÅ»ùÓÚ XML
µÄÓïÑÔ£¬ÓÃÓÚÃèÊö Web Services ÒÔ¼°ÈçºÎ¶ÔËüÃǽøÐзÃÎÊ¡£
......
×Ö·û´®µÄ²Ù×÷ÔÚPHP±à³ÌÖÐÕ¼ÓÐÖØÒªµÄµØ룬¼¸ºõËùÓÐPHP½Å±¾µÄÊäÈëºÍÊä³ö¶¼Óõ½×Ö·û´®¡£ÓÈÆäÔÚPHPÏîÄ¿¿ª·¢¹ý³ÌÖУ¬ÎªÁËʵÏÖijÏÄÜ£¬¾©³ÇÐèÒª¶ÔijЩ×Ö·û´®½øÐÐÌØÊâ´¦Àí£¬Èç»ñÈ¡×Ö·û´®µÄ³¤¶È¡¢½ØÈ¡×Ö·û´®¡¢Ìæ»»×Ö·û´®µÈ¡£ËùÒÔÕâÒ²ÊÇÎÒÃǽñÌì¿Î³ÌµÄÖ÷ÒªÄÚÈÝ£¬Ï£ÍûѧԱ¿ÉÒÔÈÏÕæѧϰ£¬ÇÚ¼ÓÁ·Ï°¡£
8.3.1 È¥³ý×Ö·û´®Ê×λ¿Õ¸ñºÍÌØÊ ......
wangjimima.php
<form id="form1" name="form1" method="post" action="mailto.php" onSubmit="return CheckForm()">
<input name="username" type="text" class="in" id="username" size="30" onmouseover="fEvent('mouseover',this)" onfocus="fEvent('focus',this)" onblur="fEvent('blur',this)" onmouseout ......
<?php
header("Content-type:text/html;charset=gb2312"); //¿´ÄãÓõÄÊÇʲô±àÂ룬Ҫ±£³ÖÒ»Ö¡£
$files="config.php"; //ҪдÈëµÄÅäÖÃÎļþ¡£
if(!is_writable($files)){ //ÅжÏÊÇ·ñÓпÉдµÄȨÏÞ£¬linux²Ù×÷ϵͳҪעÒâÕâÒ»µã£¬windows²»±Ø×¢Òâ¡£
echo "<font color=red>Îļþ²»¿Éд</font>";
......