Web Hosting Talk







View Full Version : compile php as a cgi?


PPN
10-24-2001, 06:13 PM
I would like to compile php as a cgi on the server, but i don't see how to do this without causing some disruption to the server and possibly going wrong.

jks
10-25-2001, 04:57 AM
Originally posted by PPN
I would like to compile php as a cgi on the server, but i don't see how to do this without causing some disruption to the server and possibly going wrong.

Just follow the manual - it won't cause disruption to the server.

Remember to leave out the --with-apxs parameter to ./configure, as that will make it build a cgi.

PPN
10-25-2001, 12:38 PM
i want compiled as a module and a binary so i can run php scripts from the command line, this is what happened when i tried to compile it.

Configuring extensions
checking if the location of ZLIB install directory is defined... no
checking whether to include ZLIB support... yes
checking for gzgets in -lz... yes
checking for fopencookie... yes
checking for ASPELL support... no
checking for bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking CCVS Support... no
checking whether to include cpdflib support... no
checking whether to include crack support... no
checking whether to enable ctype support... no
checking for CURL support... no
checking for CyberCash support... no
checking for cybermut support... no
checking whether to include old xDBM support... no
checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB2 support... no
checking for db_create in -ldb... no
checking for db_create in -ldb-3... no
configure: error: cannot find necessary library
[root php-4.0.6]#

./configure --prefix=/usr --with-gd --with-gettext=/usr --enable-safe-mode --with-config-file-path=/etc/httpd --with-exec-dir=/usr/bin --with-zlib --enable-magic-quotes --with-regex=system --with-ttf=/usr/lib/libttf.so --enable-track-vars --enable-xml --disable-debug --with-libdir=/usr/lib --with-db3 --with-interbase=shared --with-mysql=shared --with-pgsql=shared --with-ldap --with-imap

jks
10-25-2001, 01:23 PM
Originally posted by PPN
i want compiled as a module and a binary so i can run php scripts from the command line, this is what happened when i tried to compile it.

checking for db_create in -ldb-3... no
configure: error: cannot find necessary library


Then either install the required libraries, or leave out the --with-db3 part...