PDA

View Full Version : Apache to Litespeed in Cpanel


kuts
01-27-2008, 08:24 PM
I think I'm going to try a VPS with Cpanel and use a Litespeed VPS license.

With this setup, the only thing that I have to do is replace Apache with Litespeed using this step

http://litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:apache:cpanel

and after that I'd go on with the web site administration in Cpanel?

Is that correct or are there any other things to do?

mistwang
01-27-2008, 09:52 PM
That's correct. everything is still managed by cPanel.

kuts
01-28-2008, 04:09 PM
another question

can a VPS license be used on a dedicated server? (even with the 500 concurrent user limit)

mistwang
01-28-2008, 04:10 PM
No, VPS license only works in a VPS, not in a physical server.

kuts
01-29-2008, 02:44 AM
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
01-29-2008, 03:02 AM
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
01-29-2008, 05:27 AM
I have one error in litespeed panel

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

how do I fix that?

TIA

mistwang
01-29-2008, 01:36 PM
You can ignore that warning message. has no harm when you use LSWS with Apache httpd.conf

kuts
01-30-2008, 02:27 AM
I get this messages

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
01-30-2008, 06:24 AM
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
01-30-2008, 04:35 PM
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.
http://www.litespeedtech.com/docs/webserver/config/adminlistener/

mistwang
01-30-2008, 04:37 PM
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

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