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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Poblem after switch to litespeed

Reply
 
Thread Tools Display Modes
  #11  
Old 07-20-2012, 08:31 AM
TakCloud TakCloud is offline
Member
 
Join Date: Jul 2012
Posts: 15
my control panel is directadmin
how build matching?
Thanks
Reply With Quote
  #12  
Old 07-20-2012, 10:34 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
not sure why i thought you were running cpanel.

for directadmin, you have to do it manually. please follow the instructions below:

http://www.litespeedtech.com/support/wiki/doku.php#php => PHP 4/5 with LSAPI

you also need to type from command line shell 'php -i' to get directadmin php compile options for lsws php compile.

Here is the troubleshooting guide if you run into issues:
PHP 4/5 with LSAPI Troubleshoot
Reply With Quote
  #13  
Old 07-22-2012, 05:36 AM
TakCloud TakCloud is offline
Member
 
Join Date: Jul 2012
Posts: 15
Quote:
Originally Posted by webizen View Post
not sure why i thought you were running cpanel.

for directadmin, you have to do it manually. please follow the instructions below:

http://www.litespeedtech.com/support/wiki/doku.php#php => PHP 4/5 with LSAPI

you also need to type from command line shell 'php -i' to get directadmin php compile options for lsws php compile.

Here is the troubleshooting guide if you run into issues:
PHP 4/5 with LSAPI Troubleshoot
When I could not get him
You have to login to the server can do for me?
Reply With Quote
  #14  
Old 07-23-2012, 09:42 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
will pm you a detailed instruction.
Reply With Quote
  #15  
Old 07-23-2012, 09:19 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
here is one for general public:

1. get stock php compile options
type 'php -i | less' and look for Configure Command like following:
Quote:
Configure Command => './configure' '--with-apxs2' '--with-curl=/usr/local/lib' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-kerberos' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr' '--with-mysqli=/usr/bin/mysql_config' '--with-pcre-regex=/usr/local' '--with-pdo-mysql=/usr' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-zip' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-mbstring'
2. Go through LSWS Admin Console => Actions => Compile PHP with above compile options (note: remove "Configure Command => './configure'")

3. Once complete, run '/usr/local/lsws/fcgi-bin/lsphp5 -i' to compare with 'php -i' and make sure they match.
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 07:07 PM.



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