Apache to Litespeed in Cpanel

kuts

Well-Known Member
#5
I'm using Directadmin and I tried rebuilding php 5 using actions --> compile php and I was able to compile it without error but the phpinfo.php still displays 4.4.8. I already restarted litespeed via control panel and shell. I also restarted the VPS but still 4.4.8.
 

kuts

Well-Known Member
#6
figured it out

mv /opt/lsws/fcgi-bin/lsphp /opt/lsws/fcgi-bin/lsphp.old

cp sapi/litespeed/php /opt/lsws/fcgi-bin/lsphp

service lsws restart
 

kuts

Well-Known Member
#7
I have one error in litespeed panel

[config:server:listener] No listener is available for normal virtual host!

how do I fix that?

TIA
 

kuts

Well-Known Member
#9
I get this messages

Code:
2008-01-30 03:23:51.334	ERROR	[config:server:epsr:lsphp5] invalid path - /opt/lsws/fcgi-bin/lsphp5, it cannot be started by Web server!
2008-01-30 03:23:51.334	WARN	[config:server:epsr:lsphp4] Improper configuration: the value of PHP_LSAPI_CHILDREN should not be less than 'Max connections', 'Max connections' is reduced to 35.
2008-01-30 03:23:51.334	ERROR	[config:scripthandler] Can not find handler with type: 8, name: lsphp5.
2008-01-30 03:23:51.334	ERROR	[config:scripthandler] Can not find External Application: lsphp5, type: lsapi
2008-01-30 03:23:51.334	ERROR	[config:scripthandler] use static file handler for suffix [php5]
2008-01-30 03:23:51.335	ERROR	[config] rewrite: unknown server variable while parsing: VALUES
2008-01-30 03:23:51.335	ERROR	[config] rewrite: unknown server variable while parsing: VALUES
2008-01-30 03:23:51.335	ERROR	[config] rewrite: unknown server variable while parsing: PHPSESSID
2008-01-30 03:23:51.335	ERROR	[config] rewrite: unknown server variable while parsing: sessionid
2008-01-30 03:23:51.340	ERROR	Document root /nON eXIST does not exist!
I manually built PHP with the following configuration

'./configure' '--enable-bcmath' '--enable-calendar' '--enable-discard-path' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-soap' '--enable-sockets' '--enable-wddx' '--prefix=/opt/lsws/lsphp5' '--with-litespeed' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libexpat-dir=/usr' '--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mysql' '--with-mysqli' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-png-dir=/usr' '--with-pspell' '--with-sqlite=shared' '--with-tidy=/opt/tidy/' '--with-ttf' '--with-xmlrpc' '--with-xpm-dir=/usr/X11R6' '--with-xsl=/opt/xslt/' '--with-zlib' '--with-zlib-dir=/usr'

Please help
 

kuts

Well-Known Member
#10
Another question is how do I change the port of Litespeed panel?

When I installed it I wasn't asked of the admin port because I chose the installation with the control panel.
 

mistwang

LiteSpeed Staff
#12
The default cPanel configuration comes with php4 and php5 support, if you only use one version of PHP, you can remove one set of lsphp external app and associated script handler configuration.
I get this messages

Code:
2008-01-30 03:23:51.334    ERROR    [config:server:epsr:lsphp5] invalid path - /opt/lsws/fcgi-bin/lsphp5, it cannot be started by Web server!
2008-01-30 03:23:51.334    WARN    [config:server:epsr:lsphp4] Improper configuration: the value of PHP_LSAPI_CHILDREN should not be less than 'Max connections', 'Max connections' is reduced to 35.
2008-01-30 03:23:51.334    ERROR    [config:scripthandler] Can not find handler with type: 8, name: lsphp5.
2008-01-30 03:23:51.334    ERROR    [config:scripthandler] Can not find External Application: lsphp5, type: lsapi
2008-01-30 03:23:51.334    ERROR    [config:scripthandler] use static file handler for suffix [php5]
2008-01-30 03:23:51.335    ERROR    [config] rewrite: unknown server variable while parsing: VALUES
2008-01-30 03:23:51.335    ERROR    [config] rewrite: unknown server variable while parsing: VALUES
2008-01-30 03:23:51.335    ERROR    [config] rewrite: unknown server variable while parsing: PHPSESSID
2008-01-30 03:23:51.335    ERROR    [config] rewrite: unknown server variable while parsing: sessionid
2008-01-30 03:23:51.340    ERROR    Document root /nON eXIST does not exist!
I manually built PHP with the following configuration

'./configure' '--enable-bcmath' '--enable-calendar' '--enable-discard-path' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-soap' '--enable-sockets' '--enable-wddx' '--prefix=/opt/lsws/lsphp5' '--with-litespeed' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libexpat-dir=/usr' '--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mysql' '--with-mysqli' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-png-dir=/usr' '--with-pspell' '--with-sqlite=shared' '--with-tidy=/opt/tidy/' '--with-ttf' '--with-xmlrpc' '--with-xpm-dir=/usr/X11R6' '--with-xsl=/opt/xslt/' '--with-zlib' '--with-zlib-dir=/usr'

Please help
 
Top