PDA

View Full Version : compile php


joseph595
08-14-2008, 11:41 AM
Guys, please help me, I'm new here.

I had a cPanel server with php 4 and php 5 (apache 2.2.9) . I purchased a new server, installed lsws. Now trying to get the same php modules as I had been using earlier.

PHP 4
-----
bcmath
calendar
dbase
exif
ftp
gd
ttf
libxml
magic-quotes
mbstring
sockets
xslt
curl
bz2
dom-xslt
freetype
gettext
iconv
imap
mcrypt
mhash
mysql
openssl
swf
ttf
zip
zlib
ffmpeg-php
Zend Optimiser
Ion Cube Loader
Eaccelerator


PHP5
-----
all above plus :
SOAP
sockets
myqsli
pspell


I entered admin interface -> actions -> build php. Please suggest me what config parameters I must give here.

Thanks

mistwang
08-14-2008, 02:45 PM
try the "build matching PHP" feature in our WHM plugin. Just build apache with cpanel easy apache with the configurations you want to use.

joseph595
08-14-2008, 08:40 PM
Thank you, that works.

I had been using suPHP as it is considered to be the most secure form and I enabled PHPSuexec here. But a test page placed at /usr/local/apache/htdocs/info.php is pulling up fine on browser even if the ownership of the script is changed.

Is it possible to show an error message when the php script's owner/permission is changed from the normal one.

mistwang
08-14-2008, 11:32 PM
Our suEXEC implementation uses the owner of the document root directory, owner of script does not matter.
Your test script should be served as nobody:nobody.

joseph595
08-15-2008, 04:52 AM
I did "build matching PHP" feature from WHM plugin . It works fine, but now I would like to add mailheaders and suhosin, how can I do that.

mistwang
08-15-2008, 07:49 AM
Build Apache mod_php with mailheaders and suhosin, then build matching PHP.