如题所述
å®è£
æ¥éª¤ï¼
1ãå è¿å ¥php解å缩åçæºç å ä¸ï¼æ¾å°è¦å®è£ çæ©å±æ¨¡åçç®å½ã
[root@redhat5 sockets]# cd /home/soft/php-5.2.12/ext/sockets
å¨socketsç®å½ä¸é¢ä»¥ç»å¯¹è·¯å¾è¿è¡phpizeç¨åºï¼è¿æ¶ä¼èªå¨çæsocketsçconfigureç¨åºï¼å¨socketsç®å½ä¸é¢å¯ä»¥çå°ã
[root@redhat5 sockets]# /home/webserver/php5.2.12/bin/phpize
2ãè¿è¡ç¼è¯å®è£
[root@redhat5 sockets]# ./configure --with-php-config=/home/webserver/php5.2.12/bin/php-config
[root@redhat5 sockets]#make
[root@redhat5 sockets]#make install
æ§è¡å®make installå±å¹ä¸ä¼æ示sockets.soåæ¾çè·¯å¾,ç¶åæå®å¤å¶å°phpçextensionsç®å½ä¸ï¼ä¾å¦æçè·¯å¾ä¸º /home/webserver/php5.2.12/lib/php/extensions
3ãä¿®æ¹php.iniæ件
æ¾å°extension_dir = "./" è¿è¡ï¼ä¿®æ¹ä¸ºï¼
extension_dir = "/home/webserver/php5.2.12/lib/php/extensions/"
ç¶ååæ°å¢å ä¸è¡ï¼
extension=sockets.so
4ãéå¯apacheå³å¯çæã
å ¶å®æ¨¡åçå®è£ æ¹æ³åè¿ä¸ªä¸æ¨¡ä¸æ ·ï¼ä¸ç®¡æ¯phpèªå¸¦çæ©å±æ¨¡åè¿æ¯ç¬¬ä¸æ¹æ©å±æ¨¡åé½ç §è¿ç§æ¹æ³å®è£ å³å¯ã
1ãå è¿å ¥php解å缩åçæºç å ä¸ï¼æ¾å°è¦å®è£ çæ©å±æ¨¡åçç®å½ã
[root@redhat5 sockets]# cd /home/soft/php-5.2.12/ext/sockets
å¨socketsç®å½ä¸é¢ä»¥ç»å¯¹è·¯å¾è¿è¡phpizeç¨åºï¼è¿æ¶ä¼èªå¨çæsocketsçconfigureç¨åºï¼å¨socketsç®å½ä¸é¢å¯ä»¥çå°ã
[root@redhat5 sockets]# /home/webserver/php5.2.12/bin/phpize
2ãè¿è¡ç¼è¯å®è£
[root@redhat5 sockets]# ./configure --with-php-config=/home/webserver/php5.2.12/bin/php-config
[root@redhat5 sockets]#make
[root@redhat5 sockets]#make install
æ§è¡å®make installå±å¹ä¸ä¼æ示sockets.soåæ¾çè·¯å¾,ç¶åæå®å¤å¶å°phpçextensionsç®å½ä¸ï¼ä¾å¦æçè·¯å¾ä¸º /home/webserver/php5.2.12/lib/php/extensions
3ãä¿®æ¹php.iniæ件
æ¾å°extension_dir = "./" è¿è¡ï¼ä¿®æ¹ä¸ºï¼
extension_dir = "/home/webserver/php5.2.12/lib/php/extensions/"
ç¶ååæ°å¢å ä¸è¡ï¼
extension=sockets.so
4ãéå¯apacheå³å¯çæã
å ¶å®æ¨¡åçå®è£ æ¹æ³åè¿ä¸ªä¸æ¨¡ä¸æ ·ï¼ä¸ç®¡æ¯phpèªå¸¦çæ©å±æ¨¡åè¿æ¯ç¬¬ä¸æ¹æ©å±æ¨¡åé½ç §è¿ç§æ¹æ³å®è£ å³å¯ã
温馨提示:答案为网友推荐,仅供参考