Compiling PHP with extension; CLI works, Apache doesn't
| From: | Aaron Gould | Date: | Mon, 25 Oct 2004 19:07:50 +0000 |
| Subject: | Compiling PHP with extension; CLI works, Apache doesn't | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-200278@lists.php.net to get a copy of this message | ||
I just compiled PHP with an extension for testing purposes (mnoGoSearch). After all was said and done, the CLI version sees the mnogosearch extension just fine ("php -m"), but the Apache module doesn't see it at all (nothing "mnogosearch" related at all in "PHPINFO()").
I've added "extension=mnogosearch.so" to php.ini.
I'm pretty sure that with other extensions I've tried in the past, there was nothing special necessary to make an extension work among the different PHP APIs.
My PHP compile line:
./configure --prefix=/usr/local/php \
--with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr \
--with-gettext --enable-ftp --with-zlib --with-pspell --with-curl \
--with-mcrypt --with-mnogosearch=shared,/usr/local/mnogosearch \
--with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --disable-cgi
The vital server software:
PHP 5.0.2
Apache 1.3.31
RH Enterprise Linux 3 (Update 3)
Am I missing something?
--
Aaron Gould
Parts Canada - Web Developer