Web Hosting Talk







View Full Version : WHM/Cpanel & PHP as a dynamic not static module ?


eva2000
05-03-2001, 01:39 PM
I have WHM/Cpanel on my server and currently PHP4.04pl1 is compiled as a static module with the '--with-apache' option and support for mysql. This is what is compiled
./configure' '--with-apache=../apache_1.3.17' '--with-mysql' '--with-gd' '--with-freetype' '--enable-track-vars' '--with-jpeg-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--enable-ftp' '--enable-sockets' '--with-openssl=/usr' '--with-sysvshm' '--with-sysvsem' '--with-imap' '--with-curl' '--with-zlib'
Can I have PHP compiled as dynamic and not static modules with Cpanel/WHM?

i.e. with '--with-apxs' rather than '--with-apache' ? will WHM/Cpanel work still ? Just wondering because later i want to install postgresql 7.1 and sybase ASE 11.3.3 (the free version) and add/recompile PHP4 to support these 2 other databases but, from what i understand as a static module to recompile PHP for this Apache has to be recompiled as well ?

CRego3D
05-03-2001, 03:09 PM
hi

yes you can .. this is how I have mine

'./configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--with-mcrypt' '--with-mysql' '--enable-track-vars' '--with-gd=/usr/local'

simple, and it works fine

eva2000
05-03-2001, 06:31 PM
thanks Carlos :D

CRego3D
05-04-2001, 09:27 PM
my pleasure :)

Wazeh
05-05-2001, 07:14 PM
Eva, WHM and Cpanel run their own web server fully independent from your web-pages server. You can kill the apache and cpanel would still work.

MattF
05-06-2001, 06:10 AM
Incorrect, the main apache deamon serves both virtual hosts and the cpanel interface. Only WHM runs off a seperate daemon.