我使用以下设置在centos 5.8上安装了php 5.5.1
'./ configure'' - prefix = / usr / local / php'' - with-libdir = lib64' '--with-config-file-path = / etc / php / php.d'' - disable-debug' '--with-pic'' - disable-rpath'' - without-pear'' - with-bz2' '--with-curl'' - enable-gd-native-ttf'' - with-gdbm'' - with-gettext' '--with-gmp'' - with-iconv'' - with-openssl'' - with-pspell' '--with-zlib'' - with-layout = GNU'' - enable-exif'' - enable-ftp' '--enable-sockets'' - enable-sysvsem'' - enable-sysvshm' '--enable-sysvmsg'' - enable-wddx'' - with-kerberos'' - enable-shmop' '--enable-calendar'' - with-mysqli'' - with-apxs2'' - with-mysql' '--with-gd'' - with-jpeg-dir = / usr'' - disable-dba' '--with-unixODBC'' - enable-mbstring'' - with-pdo-mysql' '--enable-zip'' - with-mcrypt'' - enable-soap'' - enable-opcache'
的php.ini :
zend_extension=opcache.so
opcache.memory_consumption=256
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
opcache.enable=On
extension=/usr/local/lib/php/extensions/no-debug-non-zts-20121212/intl.so
php在安装过程中没有显示任何错误,但 opcache 和 intl 未出现在phpinfo()的输出中(httpd重启)
这里有什么问题?请帮我解决。