I'm using CentOS 4.2. I compiled PHP 5.2.11 on Apache 2.2.14, using the following prefixes:
Quote:
--prefix=/usr/local/apache2/php
--with-config-file-path=/usr/local/apache2/php
|
When I opened php.ini, it says
extension_dir = "./". Since my prefix is /usr/local/apache2/php/, I assume ./ means the same directory as the prefix dir. So I put an .so module in /usr/local/apache2/php/, and tried to use it (it was php_mapscript.so module, by the way).
And then I failed. Both
dl('php_mapscript.so') and
extension = "php_mapscript.so" just did not work.
Oddly, when I change the extension dir to /usr/local/apache2/php/, both "dl" and "extension =" works flawlessly. So it seems "./" does not point to PHP prefix.
Where does "./" point to, then? It seems PHP root directory is not the same with its prefix.
By the way, here's the complete ./configure switches:
Quote:
./configure \
--prefix=/usr/local/apache2/php \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-pgsql=/usr/local/pgsql/bin \
--disable-cgi \
--with-config-file-path=/usr/local/apache2/php \
--with-openssl \
--with-kerberos \
--with-zlib \
--with-bz2 \
--with-curl \
--enable-dbase \
--with-gd \
--with-xsl \
--with-mysql \
--with-pdo-mysql \
--with-gettext \
--with-pear \
--with-regex=system
|
I know I could simply use "extension = /usr/local/apache2/php/". I just wonder what directory does PHP point by "./".