PHP Apache ·þÎñ ¿ªÆô ÎÊÌâ
½ñÌìÔÚ¼ÒÀïÖØа²×°ÁËÒ»ÏÂPHP µ±ÈÃÒ²ÓÐApacheÁË¡£µ«ÊÇÎÒÓöµ½ÁËÒ»¸öÎÊÌ⣬¾ÍÊÇApache·þÎñÎÞ·¨¿ªÆô£¬ºó¹ûÔõÑùÎÒÏëºÜ¶àÈ˶¼ÊÇÖªµÀµÄ£¬µ±Ê±Ò²Ã»ÓжàÏ룬ÒÔΪÊÇ×Ô¼º°²×°µÄʱºò³öÏÖÁËʧÎó¾ÍÖØа²×°Ò»±é£¬¿ÉÊÇ»¹ÊÇÒ»ÑùÎÞ·¨´ò¿ª£¬È»ºóÎÒ¾ÍÔÚÏëÊÇʲôÎÊÌ⣬¶Ë¿ÚºÅ80.ÎҲ鿴ÁËһϣ¬·¢ÏÖûÓдíÎó°¡£¬Ë¼¿¼Á˺ܾ㬶ÔÍøÂçÒÔ¼°·À»ðǽҲ×öÁËÏàÓ¦µÄÐ޸ģ¬¿É»¹ÊDz»ÐУ¬ºóÀ´»³ÒÉÊDz»ÊÇ×Ô¼ºµÄϵͳÓÐÎÊÌâ°¡£¡¾ÍÔÚ˼¿¼ÊDz»ÊÇÒªÖØ×öϵͳµÄʱºò·¢ÏÖÁËÒ»¼þÊÂÇ飬ÎÒµçÄÔµÄѸÀ×ÊÇ´ò¿ªµÄ£¬ÏëÀ´¿ÉЦ£¬ÎÒÏëרҵµÄÈËÓ¦¸Ã¶¼ÖªµÀÒ»¼þÊÂÇ飬ÄǾÍÊÇѸÀ׵Ķ˿ںÅÒ»ÑùÒ²ÊÇ80£¬Ò²¾ÍÊÇ˵Èç¹ûÔÚ¿ªApache֮ǰѸÀ×¾ÍÒѾ¿ªµÄ»°£¬»á·¢Éú80³åÍ»£¬ºÇºÇ£¬µ±È»¾Í»á´ò²»¿ªApacheÁË£¬ËùÒÔÒ»¶¨Òª×¢ÒâÕâ¸öÎÊÌâ
Ïà¹ØÎĵµ£º
ÔÚPHP.netµÄÅ£È˻ظ´ÖÐÕÒµ½Ò»¸ö×Ô¶¯¸ù¾ÝͼƬÎļþÀàÐÍ´ò¿ªÍ¼Æ¬µÄPHPº¯Êý,ºÜ·½±ã.
/**
*
* Loads a file based on its filetype and returns false if it fails.
*/
function imagecreatefromfile($path, $user_functions = false)
{
$info = @getimagesize($path);
if(!$info)
{ ......
ÔÚPHPÀïµÃµ½Ç°ÌìºÍ×òÌìµÄÈÕÆڵĴúÂëÇ°ÌìÈ¥ÃæÊÔµÄʱºòÒ²ÊÇÕâÑù,²»¹ýÎÒµ±Ê±¼Ç²»ÆðÀ´ÁË.¾Í¼ÇµÃMYSQLÀïÃæµÄdate_sub(now(),'interval 1 day');date('Y/m/d h:i:s',mktime(date('h'), date('i'), date('s'), date('m') , date('d')+1, date('Y'))); -------------------------------------------------------------------------- ......
Ò»¡¢°²×°
1. Ê×ÏÈ°²×°SSH
sudo apt-get install ssh
2.°²×°MySQL(ËäÈ»ÏÖÔÚ×îаæΪ5.1£¬µ«ÊÇ»¹Ö»ÄÜ×°5.0°æ±¾)
sudo apt-get install mysql-server-5.0
3.°²×°Apache
sudo apt-get install apache2
4.°²×°PHP
sudo apt-get install php5 libapache2-mod-php5
5.ÖØÆôApache
sudo /etc/init.d/apache2 restart ......
жÔØMysql
[root@localhost ~]# rpm -qa | grep mysql
mysql-3.23.58-9
php-mysql-4.3.4-11
mod_auth_mysql-20030510-4.1
mysql-server-3.23.58-9
˵Ã÷£ºrpm –qa | grep mysql ÃüÁîÊÇΪÁË°ÑmysqlÏà¹ØµÄ°ü¶¼ÁгöÀ´£¬Ð¶Ôض¼´Ó×îÏÂÃæµÄÒ»¸ö°ü¿ªÊ¼£¬Ö±µ½Ð¶ÔصôµÚÒ»¸öΪֹ¡£Ö´ÐÐrpm -q php£¬Èç¹û·µ»Øphp°æ±¾£¬ ......
½ñÌìÓÖͻȻ·¢ÏÖÁËÒ»¸ö¼¼ÇÉ£¬¾ÍÊÇPHP¿ÉÒÔ´«Öµ¸øjs£¬ÈçºÎ×öÄØ£¿
ÔÀ´PHPµÄÔÀíÊÇÕâÑùµÄ£º
PHPµÄËùÓÐÓ¦ÓóÌÐò¶¼ÊÇͨ¹ýWEB·þÎñÆ÷(ÈçIIS»òApache)ºÍPHPÒýÇæ³ÌÐò½âÊÍÖ´ÐÐÍê³ÉµÄ£¬¹¤×÷¹ý³Ì£º
(1)µ±Óû§ÔÚä¯ÀÀÆ÷µØÖ·ÖÐÊäÈëÒª·ÃÎʵÄPHPÒ³ÃæÎļþÃû£¬È»ºó»Ø³µ¾Í»á´¥·¢Õâ¸öPHPÇëÇ󣬲¢½«ÇëÇó´«ËÍ»¯Ö§³ÖPHPµÄWEB·þÎñÆ÷¡£
(2)WEB·þÎñÆ ......