CentOS 5.3 php ×°zendOptimizer 3.3.0
ÎÊÌ⣺Failed loading /usr/local/Zend/lib/Optimizer-3.3.0/php-5.2.x/ZendOptimizer.so: /usr/local/Zend/lib/Optimizer-3.3.0/php-5.2.x/ZendOptimizer.so: cannot restore segment prot after reloc: Permission denied
Failed loading /usr/local/Zend/lib/Optimizer-3.3.0/php-5.2.x/ZendOptimizer.so: /usr/local/Zend/lib/Optimizer-3.3.0/php-5.2.x/ZendOptimizer.so: cannot restore segment prot after reloc: Permission denied
°´ÕÕ×ÖÃæÒâ˼¾ÍÒÔΪÊÇȨÏÞÁË£¬µ«ÊǼì²éÁËûÓÐʲô²îÒ죬ÓÖÒÔΪÊǺÍ֮ǰװµÄeaccelerator³åÍ»£¬ÓÚÊÇÓÖ²ÎÕÕÁËÕâƪÎÄÕÂ,δ¹û¡£Ë÷ÐÔÖ±½Ó½«eacceleratorÈ¥µôÁË£¬»¹ÊDz»ÐС£
ºóÀ´ÓÖ²éÁ˺ܶà×ÊÁÏ£¬½á¹û·¢ÏÖÊǺÍselinuxÓйأ¬È¥/etc/selinux/configÏÂÃæselinuxÈ¥µôdisableºóÎÊÌâ½â¾ö¡£
»òÊÇ selinux=disabled
#php -c /etc/ -v //¼ì²éÊÇ·ñ³É¹¦£¡
//////////////////////////////////(תÔØ)
¾ßÌå½â¾ö·½·¨:
¡¡¡¡1. ¶ÔÓÚ php.iniÎļþ·¾¶ÓÐÎÊÌâ( ÎÒµÄÔÚ phpinfo()ÏÔʾphp.ini·¾¶ÕýÈ·£¬ÎҾͲ»ÓÃÕâ¸ö·½·¨ )
¡¡¡¡½â¾ö·½·¨
¡¡¡¡php -i | grep php.ini ¾Í¿ÉÒÔÕÒµ½µ±Ç°phpʹÓõÄphp.iniÎļþ
¡¡¡¡±ÈÈç, ±àÒ밲װʱûÓÐÖ¸¶¨php.ini´æ·Å·¾¶, ÄÇôĬÈÏphp.ini»á·ÅÔÚ/usr/local/libÏÂÃæ
¡¡¡¡×îºÃÊÇÔÚ±àÒëPHPʱָ¶¨PHPÅäÖÃÎļþµÄ·¾¶ Èç: –with-config-file-path=/usr/local/etc
¡¡¡¡¶øÒ»°ãzendĬÈÏ°²×° php.iniÔÚ/etc/Ŀ¼ÏÂÃæ»ò/usr/local/Zend/etc ËùÒÔÐèÒªÔÚ°²×°µÄʱºòÊÖ¹¤Ö¸¶¨ÎÒÃÇphp.iniÎļþ´æ·ÅµÄλÖÃ
¡¡¡¡Èç¹û, ²»ÖªµÀÏÖÔÚµÄPHP µÄÅäÖÃÎļþ¾ßÌåλÖõĻ° ¿ÉÒԲ鿴һÏÂ:
¡¡¡¡php -i | grep php.ini
¡¡¡¡Èç¹ûphp optimizer°²×°ºÃ È´·¢ÏÖ²»ÄܼÓÔصĻ°¿ÉÒÔ ÊÖ¹¤Ö¸¶¨¶ÁÈ¡php.iniÎļþµÄλÖÃ
¡¡¡¡php -c /etc/ -v Èç¹û¿ÉÒÔ¿´µ½zend optÕýÈ·¼ÓÔØ
¡¡¡¡ÄÇô×ö¸öÁ¬½Ó¾ÍºÃ Á¬½Óµ½phpĬÈ϶ÁÈ¡µÄphp.ini·¾¶ÏÂÃæ
¡¡¡¡
±ÈÈç
¡¡¡¡ln -sf /etc/php.ini /usr/local/lib
¡¡¡¡[root@localhost /]# php -v
HP 5.2.5 (cli) (built: Jan 22 2006 12:59:19)
¡¡¡¡Copyright (c) 1997-2006 The PHP Group
¡¡¡¡Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
¡¡¡¡with Zend Extension Manager v1.0.9, Copyright (c)
Ïà¹ØÎĵµ£º
×¼±¸ÖªÊ¶£º
Ubuntu :
Ubuntu ÊÇlinuxµÄÒ»¸ö°æ±¾£¬ÓзÇÖÞ·¢²¼µÄ£¬ÏÖÔڱȽÏÁ÷ÐеÄÒ»¸ö°æ±¾¡£
²Î¿¼°Ù¶È˵Ã÷Ubuntu
nginx ¡¡£º
Nginx ("engine x") ÊÇÒ»¸ö¸ßÐÔÄÜµÄ HTTP ºÍ ·´Ïò´úÀí ·þÎñÆ÷£¬Ò²ÊÇÒ»¸ö IMAP/POP3/SMTP ´úÀí·þÎñÆ÷¡£ Nginx ÊÇÓÉ Igor Sysoev Ϊ¶íÂÞ˹·ÃÎÊÁ¿µÚ¶þµÄ Rambler.ru Õ¾µã¿ ......
֮ǰŪphpµÄʱºò£¬ÐèҪ¼ÖÆÆÁÄ»£¬¾ÍÊÇÓÃphp×Ô´øµÄemailº¯Êý·¢ÐÅ£¬ÒòΪûÓÐ×Ô¼ºÅª¹ýsmtpµÄ ·þÎñÆ÷£¬ÍøÉÏÌṩµÄsmtp·þÎñÆ÷¶¼ÊÇÐèҪʹÓÃÃÜÂëÈÏÖ¤ µÄ£¬Æ«Æ«phpÄÚÖõĺ¯Êý¾ÍûÓÐÌṩÉí·ÝÈÏÖ¤£¬Ò²¾Íµ¼ÖÂÁ˱ØÐëÐèÒªÔÚ×Ô¼ºµÄµçÄԴһ¸ö¿ÉÒÔ×ÔÖ÷·¢ÐŵÄmail·þÎñÆ÷£¡
È»ºó ......
sessionÎļþ±£´æÔÚ·þÎñÆ÷£¬¶Ôÿ¸ösession¶¼»áËæ»úÉú³ÉÒ»¸öΨһµÄsessionIdÀ´½øÐбêʶ£¬Ò»°ãÈç¹ûûÓÐÉèÖÃsessionµÄÉú´æÖÜÆÚ£¬Ôòsession»á±£´æÔÚÄÚ´æÖУ¬¹Ø±Õä¯ÀÀÆ÷£¬¸Ãsessionid»á×Ô¶¯×¢Ïú£¬ÖØÐÂÇëÇóʱÔò×Ô¶¯ÖØзÖÅä¡£
Èç¹û¿Í»§¶ËûÓнûÓÃcookie£¬ÔòÔÚʹÓÃsessionʱ£¬cookie»á°èÑÝ´æ´¢sessionIdºÍsessionÉú´æÖÜÆڵĽÇÉ«¡£¡ ......
<?
$music = $_POST['music'];
//È¡µÃËùÑ¡ÖеÄcheckboxµÄ¸öÊý
$coun=count($music);
if ( is_array( $music ) ) {
echo 'ÄúÑ¡ÔñµÄÊÇ : ';
foreach ( $music as $key => $var )
echo ' ['.$var.']';
......