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?

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.