Can't get APC-3.0.8 to work
| From: | Simon Kissane | Date: | Thu, 25 Aug 2005 08:20:50 +0000 |
| Subject: | Can't get APC-3.0.8 to work | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-2778@lists.php.net to get a copy of this message | ||
Hi
When I try to run PHP w/ APC-3.0.8, I get this message:
/usr/local/php-5.0.4/lib/php/extensions/no-debug-non-zts-20041030/apc.so
doesn't appear to be a valid Zend extension
Also, I checked the apc.so. It has no extension_version_info or
zend_extension_entry symbols according to nm, while the xdebug.so &
eaccelerator.so (both of which I also compiled myself) do.
Anyone got any ideas?
Thanks in advance
Simon Kissane
Macquarie University
=================================================================
My config:
I am using Fedora Core 4, httpd-2.0.54 binaries supplied by Fedora, &
PHP 5.0.4 that I compiled myself. PHP Configure :
'./configure' '--with-openssl' '--with-zlib'
'--enable-bcmath' '--with-bz2'
'--enable-calendar' '--with-curl' '--enable-dba'
'--with-cdb'
'--with-inifile' '--with-flatfile' '
--enable-dio' '--enable-exif' '--with-fam' '--enable-ftp'
'--with-gd'
'--with-ttf' '--with-t1lib'
'--with-gettext' '--with-gmp' '--with-imap'
'--with-imap-ssl'
'--with-ldap' '--with-ldap-sasl' '--
enable-mbstring' '--with-mcrypt' '--with-mhash' '--with-mssql'
'--with-mysql=/usr' '--with-mysqli=
/usr/bin/mysql_config' '--enable-pcntl' '--enable-shmop'
'--with-snmp'
'--enable-soap' '--enable-s
ockets' '--enable-sqlite-utf8' '--enable-sysvshm'
'--enable-sysvsem'
'--enable-sysvmsg' '--with-ti
dy' '--with-xsl' '--prefix=/usr/local/php-5.0.4/' '--disable-cgi'
'--enable-cli' '--with-apxs2=/da
ta/devcentral/www/httpd1/bin/apxs' '--enable-memory-limit'
I setup APC as follows:
/usr/local/php-5.0.4/bin/phpize
./configure --enable-apc --enable-apc-mmap --with-apxs=/usr/sbin/apxs
--with-php-config=/usr/local/php-5.0.4/bin/php-config
make
su
make install
PHP.ini:
#zend_extension=/usr/local/php-5.0.4/lib/php/extensions/no-debug-non-zts-20041030/xdebug.so
#zend_extension=/usr/local/php-5.0.4//lib/php/extensions/no-debug-non-zts-20041030/eaccelerator.so
zend_extension=/usr/local/php-5.0.4/lib/php/extensions/no-debug-non-zts-20041030/apc.so
browscap=/home/skissane/www/Handbook-20050801/lib/browscap/browscap.ini
extension=php_odbtp.so
odbtp.interface_file = /usr/local/php-5.0.4/lib/odbtp.ini
odbtp.datetime_format = ymdhmsf
odbtp.detach_default_queries = yes
memory_limit = 100M
max_execution_time = -1