View Full Version : litespeed on DA vps
hpham
06-12-2008, 11:03 AM
I just installed a free version on one DA vps. THe installation went smoothly. But the web pages are not working well. It's just showing the code without any process
Is there any idea why and how to fix it?
Thank you.
mistwang
06-12-2008, 03:34 PM
you need to update httpd.conf generated by DA to move the real virtual host configuration up. The 5 vhost limit has been reached.
hpham
06-12-2008, 06:01 PM
I have copied content in /usr/local/directadmin/data/users/user-name/httpd.conf, put it into /etc/httpd/conf/httpd.conf, disable the include line calling to each user httpd.conf file, but nothing changes. The vBulletin file is still showing code. Something likes PHP is not working with Litespeed?
hpham
06-12-2008, 07:06 PM
It seems no script handler was installed. Pls see the attached file. Is there any idea to fix it?
mistwang
06-13-2008, 05:48 AM
You need to build lsphp5 and make sure to add a script handler for php5 if Apache is configured to use mod_php5.
hpham
06-13-2008, 07:24 AM
I have built lsphp5, added a script handler as CGI (the only value I can see for Handler Name value), but a simple php info page returned error "lscgid: execve(): Permission denied"
mistwang
06-13-2008, 12:42 PM
You need to create a lsphp5 external application, use it as the handler.
A tutorial
http://www.usefuljaja.com/2007/4/litespeed-php-install
hpham
06-13-2008, 08:09 PM
I followed that tutorial, but could not find out sapi part
sudo cp php-5.2.3/sapi/litespeed/php fcgi-bin/lsphp
in fcgi-bin, there is lsphp5. Command "lsphp5 -v" shows version 5.2.6 with litespeed already. But when going to http://ip:8088/, clicking to test php link, it asked me to download php file.
any idea please?
mistwang
06-13-2008, 10:28 PM
You skip the part that build lsphp binary, as you have one already, just create a lsphp5 external application, then create a script handler for ".php" with that external application.