ΪPHPÌí¼ÓmcryptÀ©Õ¹Ä£¿é
»ù±¾ÔÀíÊÇ£ºÊ×ÏÈʹmcryptÈí¼þÄܹ»ÔËÐУ¬È»ºó°²×°phpÀ©Õ¹Ä£¿é£¬²¢ÔÚphp.iniÅäÖá£
ÕâÀï×¢ÒâµÄÊÇmcryptÈí¼þÒÀÀµlibmcryptºÍmhashÁ½¸ö¿â£¬ËùÒÔ°²×°ÅäÖÃ˳Ðò´ÓÓÒÖÁ×ó
Ò»,ÏÂÔØ°²×°mcrypt
1.ÏÈÈ¥http://www.sourceforge.netÏÂÔØLibmcrypt,mhash,mcrypt°²×°°ü ,ÏÂÃæÊÇÎÒÕÒµ½µÄÁ´½Ó
Libmcrypt(libmcrypt-2.5.8.tar.gz )£º
mcrypt(mcrypt-2.6.8.tar.gz ):
mhash(mhash-0.9.9.9.tar.gz ):
2 .ÏÈ°²×°Libmcrypt
#tar -zxvf libmcrypt-2.5.8.tar.gz
#cd libmcrypt-2.5.8
#./configure
#make
#make install ˵Ã÷£ºlibmcriptĬÈÏ°²×°ÔÚ/usr/local
3.°²×°mhash
#tar -zxvf mhash-0.9.9.9.tar.gz
#cd mhash-0.9.9.9
#./configure
#make
#make install
4.°²×°mcrypt
#tar -zxvf mcrypt-2.6.8.tar.gz
#cd mcrypt-2.6.8
#LD_LIBRARY_PATH=/usr/local/lib ./configure
#make
#make install
˵Ã÷£ºÓÉÓÚÔÚÅäÖÃMcryptʱ£¬»áÕÒ²»µ½libmcryptµÄÁ´½Ó¿â£¬µ¼ÖÂÎÞ·¨±àÒ룬ÒòΪLibmcryptµÄÁ´½Ó¿âÔÚ/usr/local/Îļþ¼ÐÏ¡£ÒòЩÔÚÅäÖÃmcryptʱҪ¼ÓÈëLD_LIBRARY_PATH=/usr/localµ¼Èë¼ü½Ó¿â
¶þ, °²×°PHPÀ©Õ¹Ä£¿é
1. ¾²Ì¬±àÒë
ÔÚÈÎÒâPHPÎļþÖмÓÈ뺯Êý phpinfo()£¬¼´¿ÉÈ¡µÃÄ¿Ç°PHPµÄÅäÖÃ
ÔÚÕâЩÅäÖúóÃæÐÂÔöÐèÒª¼ÓÈëµÄÅäÖ㺒–with-mcrypt=/usr/local/include’
È»ºó½øÈëphpÔ´´úÂëĿ¼£¬Ö´ÐÐÕâÌõÍêÕûµÄconfigureÃüÁî
ÅäÖÃÍê³É£¬ÏÂÃæ½øÐÐÔ´Âë°üµÄÖÆ×÷ºÍ°²×°
make clean £¨Ò»¶¨ÐèÒª£©
make
make install
2. ¶¯Ì¬¼ÓÔØ
ʹÓÃphpµÄ³£¼ûÎÊÌâÊÇ£º±àÒëphpʱÍü¼ÇÌí¼ÓijÀ©Õ¹£¬ºóÀ´ÏëÌí¼ÓÀ©Õ¹£¬µ«ÊÇÒòΪ°²×°phpºóÓÖ×°ÁËһЩ¶«Î÷ÈçPEARµÈ£¬²»Ïëɾ³ýĿ¼ÖØ×°£¬ÓÚÊÇ¿ÉÒÔ²ÉÓÃphpize¡£·½·¨ÊÇ£º
ÒªÓÐÓëÏÖÓÐphpÍêÈ«ÏàͬµÄphpѹËõ°ü ¡£ÎÒÓõÄÊÇphp-5.2.6.tar.gz¡£Õ¹¿ªºó½øÈëÀïÃæµÄext/mcryptĿ¼ (ÀïÃæÊÇmcryptµÄphpÀ©Õ¹)£¬È»ºóÖ´ÐÐ/usr/local/php/bin/phpize¡£phpizeÊÇ°²×°phpʱ°²×°ºÃµÄÒ»¸ö¹¤¾ß£¬Èç¹ûÄãµÄ»úÆ÷ûÓа²×°phpize¹¤¾ß£¬ÄÇô¿ÉÄÜ»¹ÊÇÒªmake,make install php£¬½ö½öΪÁ˵õ½phpize.
Ö´ÐÐÍêºó£¬»á·¢ÏÖµ±Ç°Ä¿Â¼Ï¶àÁËһЩconfigureÎļþ£¬Èç¹ûû±¨´í£¬Ôò¸ù¾ÝÌáʾÔËÐÐ
.
Ïà¹ØÎĵµ£º
Ò»¡¢apache Ô´Âë°²×°
./configure --prefix=/usr/local/apache --enable-so
make
make install
×¢£º°²×°ºóÈç¹û¸Ä±äapacheÆðʼĿ¼(¹¤×÷Ŀ¼)£¬¿ÉÄÜ»á³öÏÖ403´íÎ󣬴ËʱÐÞ¸Ähttpd.confÖеÄUserºÍGroupΪÄã¸Ä±äºó
µÄÆðʼĿ¼ËùÊôµÄÓû§ºÍ×é¼´¿É£¡
ÈçrootÓû§° ......
תÌù×Ô: http://hi.baidu.com/isnono/blog/item/3c94ea11a54a0fc7a7ef3f94.html
¾³£ÔÚCSDNµÄPHPÂÛ̳ÉÏ¿´µ½ÓÐÅóÓÑÎÊ´¦ÀíÔÚÏßÓû§µÄÎÊÌâ,ÎÒд¹ýÀàËƵĴúÂë,¾ÍÄóöÀ´Ï׳óÁË,ÓеãÀ¬»ø,»ù±¾ÉÏʵÏÖÁ˹¦ÄÜ, ͬÊÇÒ²Äܹ»À©Õ¹£¬±ÈÈçͬʱֻÔÊÐíÒ»¸öÕʺÅÔÚÏߵȡ£
/*
³ÌÐòÓÃ;£º¼ì²âÔÚÏßÓû§
³ÌÐò×÷Õߣºheiyeluren
д×÷ʱ¼ä ......
Ó²¼þ£ºIntel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz 4GÄÚ´æ
1¡¢¹þÏ£ÐÍÊý¾Ý¿â
2¡¢¹ØϵÐÍÊý¾Ý¿â
±í½á¹¹
name sex age memo1 memo2 memo3 memo4 memo5 memo6 memo7 memo8 memo9 memo10 memo11 memo12 memo13
&n ......