Litespeed Apache Replacement

#1
Hello.

I'm trying to replace Apache with Litespeed but I've hit an issue. PHP files are downloaded instead of executed unless there's the following line in a .htaccess file in the web space.

AddType application/x-httpd-php .php

I would like to make this default. I've tried adding it to the httpd.conf and setting just one script handler but no luck.

Any ideas where I'm going wrong?

Thanks

Tim
 

webizen

Well-Known Member
#2
check the script handler configuration for ".php" in lsws (admin console -> configuration -> server -> script handler). make sure it is there.
 

NiteWave

Administrator
#4
here php should be ok, not ".php"

"AddType application/x-httpd-php .php" is the default setting.

if you have to set it again in .htaccess, maybe it's overridden by virtual host setting.

what the problem virtual host section in httpd.conf? you can paste it here.
 
Top