LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > compile php

Reply
 
Thread Tools Display Modes
  #1  
Old 08-14-2008, 10:41 AM
joseph595 joseph595 is offline
New Member
 
Join Date: Aug 2008
Posts: 5
Default compile php

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
Reply With Quote
  #2  
Old 08-14-2008, 01:45 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
try the "build matching PHP" feature in our WHM plugin. Just build apache with cpanel easy apache with the configurations you want to use.
Reply With Quote
  #3  
Old 08-14-2008, 07:40 PM
joseph595 joseph595 is offline
New Member
 
Join Date: Aug 2008
Posts: 5
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.
Reply With Quote
  #4  
Old 08-14-2008, 10:32 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
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.
Reply With Quote
  #5  
Old 08-15-2008, 03:52 AM
joseph595 joseph595 is offline
New Member
 
Join Date: Aug 2008
Posts: 5
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.
Reply With Quote
  #6  
Old 08-15-2008, 06:49 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Build Apache mod_php with mailheaders and suhosin, then build matching PHP.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:46 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.