php troubleshoot

 

 


[1]

 

問題

"php -v" 見到

PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/module.so'

解決

grep module.so /etc/php.d/*

mcrypt.ini:extension=module.so

ls /usr/lib/php/modules/ | grep mcrypt

mcrypt.so

vi /etc/php.d/mcrypt.ini

; Enable mcrypt extension module
extension=mcrypt.so

 

 


[2]

 

問題

function "gethostbyname" without reture IP

解決

fully stop apache, wait for all processes to finish, then start apache again.

 

 

 

Creative Commons license icon Creative Commons license icon