出現此問題是因爲編譯libphp5.so時不指定要加入的擴展模塊,比如需要某個擴展模塊比如mcrypt,解決方法如下:
1 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mcrypt (--with-mcrypt表示編譯的時候要加入mcrypt擴展模塊)
make clean
make && make install
2 apachectl restart (重啓apache)
出現此問題是因爲編譯libphp5.so時不指定要加入的擴展模塊,比如需要某個擴展模塊比如mcrypt,解決方法如下:
1 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mcrypt (--with-mcrypt表示編譯的時候要加入mcrypt擴展模塊)
make clean
make && make install
2 apachectl restart (重啓apache)