Page 1 of 1

Extensions not loading

Posted: Wed Apr 04, 2007 9:37 pm
by brighama
I'm starting to feel like an idiot here.

Specifically, I can't seem to get the memcache extension to load.
...if someone could just tell me where to look for a *@&^#! error message, I'd be so grateful!

* I put memcache.so in /usr/lib64/php/modules
* php.ini has 'extension=memcache.so'
* I rebuilt PHP with --enable-memcache
* phpinfo() confirms that it was indeed compiled with --enable-memcache
* phpinfo() does not contain any other reference to the memcache extension
* phpinfo() has the correct extension_dir ('/usr/lib64/php/modules')
* the apache errors_log contains no startup errors
* the php errors_log contains no startup errors (actually, nothing has ever been written to it...)

Here is the configure command that I'm using. (It was copied from the standard redhat RPM version. I am not familiar with most of the flags...)

Code: Select all

./configure \
    --build=x86_64-redhat-linux-gnu \
    --host=x86_64-redhat-linux-gnu \
    --target=x86_64-redhat-linux-gnu \
    --program-prefix= \
    --prefix=/usr \
    --exec-prefix=/usr \
    --bindir=/usr/bin \
    --sbindir=/usr/sbin \
    --sysconfdir=/etc \
    --datadir=/usr/share \
    --includedir=/usr/include \
    --libdir=/usr/lib64 \
    --libexecdir=/usr/libexec \
    --localstatedir=/var \
    --sharedstatedir=/usr/com \
    --mandir=/usr/share/man \
    --infodir=/usr/share/info \
    --cache-file=../config.cache \
    --with-libdir=lib64 \
    --with-config-file-path=/etc \
    --with-config-file-scan-dir=/etc/php.d \
    --disable-debug \
    --with-pic \
    --disable-rpath \
    --without-pear \
    --with-bz2 \
    --with-curl \
    --with-exec-dir=/usr/bin \
    --with-freetype-dir=/usr \
    --with-png-dir=/usr \
    --enable-gd-native-ttf\
    --without-gdbm \
    --with-gettext \
    --with-gmp \
    --with-iconv \
    --with-jpeg-dir=/usr \
    --with-openssl \
    --with-png \
    --with-expat-dir=/usr \
    --with-zlib \
    --with-layout=GNU \
    --enable-exif \
    --enable-ftp \
    --enable-magic-quotes \
    --enable-sockets \
    --enable-sysvsem \
    --enable-sysvshm \
    --enable-sysvmsg \
    --enable-track-vars \
    --enable-trans-sid \
    --enable-yp \
    --enable-wddx \
    --with-kerberos \
    --enable-ucd-snmp-hack \
    --with-unixODBC=shared,/usr\
    --enable-memory-limit \
    --enable-shmop \
    --enable-calendar \
    --enable-dbx \
    --enable-dio \
    --with-mime-magic=/usr/share/file/magic \
    --without-sqlite \
    --with-libxml-dir=/usr \
    --with-xml \
    --with-apxs2=/usr/sbin/apxs \
    --without-mysql \
    --without-gd \
    --without-odbc \
    --disable-dom \
    --disable-dba \
    --without-unixODBC \
    --disable-pdo\
    --disable-xmlreader\
    --disable-xmlwriter \
    --with-mysqli=/usr/lib64/mysql/mysql_config \
    --enable-memcache
:!:

Posted: Wed Apr 04, 2007 11:28 pm
by brighama
WTF?!
I just restarted apache for the nth time and phpinfo() now shows memcache!