anson5 Posted April 6, 2011 Share Posted April 6, 2011 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 https://forums.phpfreaks.com/topic/232888-configure-to-build-php-cgi-and-libphp5so-at-the-same-time/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.