Jump to content

Configure to build php-cgi and libphp5.so at the same time


Recommended Posts

Initially I built PHP 5.3.6 with the following configure command:

 

./configure --cache-file=config.cache --prefix=$HOME/php-5.3.6 --with-config-file-path=$HOME/php-5.3.6/etc --with-openssl=$HOME/openssl --with-pcre-regex --with-zlib --enable-bcmath --with-bz2 --enable-calendar --with-curl --enable-exif --with-gd --with-mhash=$HOME/mhash --with-ldap --enable-mbstring --with-mcrypt=$HOME/libmcrypt --with-mysql-sock=$HOME/mariadb/tmp/mysql.sock --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-readline --enable-sqlite-utf8 --with-tidy=$HOME/tidy --enable-zip --with-pear

 

I used FastCGI on Lighttpd with php-cgi without a problem, but then I wanted Apache httpd to use mod_php as well, so I built libphp5.so with the above configure command plus the following option:

 

--with-apxs2=$HOME/httpd/bin/apxs

 

It worked fine with httpd but then php-cgi is gone and lighttpd cannot load it.

 

I tried adding --enable-cgi in addition to --with-apxs2 in the configure command but still didn't get php-cgi.  Can PHP be only built either for libphp5.so or php-cgi, but not both?

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.