|
|

03-15-2008, 10:31 PM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 723
|
|
php on cpanel server
My existing server with all my websites has cpanel 11, mysql 4,1, and php 4.4.7 installed. If I'm installing litespeed and PHP 5 LSAPI for the first time, can I use the existing php on the server or do I need to recompile? If the latter, will it conflict with the one already installed? I lost the link to the instructions on how to compile it via the GUI. Please advise. Thank you.
Last edited by anewday; 03-15-2008 at 10:55 PM..
|

03-17-2008, 10:55 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,583
|
|
|
You need to recompile, install it to a different directory, it will not conflict with existing installation. It is recommended to keep cPanel installation and LSAPI installation in sync.
So, upgrade your cPanel installation to PHP5, then build Litespeed PHP with similar configuration parameters.
|

03-17-2008, 10:57 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,583
|
|
|
The instruction for the GUI is in the wiki of compiling PHP and cPanel+LiteSpeed.
|

03-17-2008, 10:59 AM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 723
|
|
|
Is it ok if I leave my Cpanel PHP at 4.4.7 and install LSAPHP 5 for Litespeed in a different directory? Thank you.
|

03-17-2008, 11:05 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,583
|
|
|
You can do that, this two will not interfere with each other. However, you may have compatibility issue as some PHP script written for 4.4.7 which may not work that well under PHP 5, it has nothing to do with LiteSpeed.
I think you should at least upgrade cPanel PHP to 4.4.8, and install LSAPI php 4.4.8 as well, after everything working properly, start to convert your site from PHP 4 to PHP 5 one by one. LiteSpeed can run both PHP 4 & 5 at the same time.
|

03-17-2008, 11:20 AM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 723
|
|
Ok, below is a confusing on the wiki.
Quote:
|
Just remember to upgrade both LiteSpeed PHP and Apache mod_php later together if you want to keep both LiteSpeed and Apache work properly. Mixing different version of PHP together may break you PHP installation.
|
You said I can just install Litespeed + LSAPI PHP and leave cPanel PHP alone. And mixing different version should be ok, right?
Last edited by anewday; 03-17-2008 at 11:25 AM..
|

03-17-2008, 01:33 PM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,583
|
|
|
Yes, it is OK. That statement is based on the assumption that you install cPanel PHP and LiteSpeed PHP to the same location.
|

03-17-2008, 01:52 PM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 723
|
|
Ok, thanks a lot for the clarification. Great support here. 
|

03-19-2008, 10:07 PM
|
|
Senior Member
|
|
Join Date: Nov 2007
Location: New York
Posts: 723
|
|
Hi,
Can you tell me which configure parameters won't work with build PHP 5.25 in the GUI?
Code:
'--prefix=/usr/local'
'--with-xml'
'--enable-bcmath'
'--enable-calendar'
'--with-curl'
'--enable-exif'
'--with-swf=/usr/local/flash'
'--enable-ftp'
'--with-gd'
'--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr'
'--with-xpm-dir=/usr/X11R6'
'--with-gettext'
'--enable-magic-quotes'
'--with-mysqli'
'--with-mysql=/usr'
'--with-openssl'
'--enable-discard-path'
'--with-pear'
'--enable-sockets'
'--enable-track-vars'
'--with-ttf'
'--with-freetype-dir=/usr'
'--enable-gd-native-ttf'
'--enable-wddx'
'--with-xmlrpc'
'--with-zip'
'--with-zlib'
Also, why isn't --with-litespeed included in the default configure parameters? Also, how do I enable PHP 5 only for my websites? I see that PHP4 and PHP5 are installed by default. Thanks for your help.
Last edited by anewday; 03-19-2008 at 10:10 PM..
|

03-20-2008, 08:14 AM
|
|
LiteSpeed Staff
|
|
Join Date: May 2003
Location: New Jersey
Posts: 7,583
|
|
|
--with-litespeed will be added automatically by the GUI tool.
If you want to install PHP to a different directory that cPanel does, you should remove '--prefix=/usr/local'.
All the configuration parameter should work, if it does not, just build PHP in cPanel with similar configuration, cPanel will fix all dependencies.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 07:55 PM.
|
|