Support ⇒ Dragonfly CMS v10 ⇒ Litespeed Oddity ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexDragonfly CMS v10

Litespeed Oddity Reply to topic


I'm testing an alternate host that uses Litespeed, fully expecting a potential mod rewrite issue.
However, what I got was unexpected.

For DF 9.4, nothing unexpected - PHP 5.6 fine (PHP 7.x no mysql).

For DF 10.0.48.9418, PHP 5.6 okay, PHP 7.x error 403.

The 403 error comes down to one line (83) in htaccess for the Santy worm redirect.
RewriteRule ^.*$ - [F]

No big deal, I can live without that check.
But, I'm puzzled about why Litespeed accepts PHP 5.6 but not PHP 7.x ?

btw, I have no control over fixing the Litespeed PHP handlers that may be causing it.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Would this work?

ref: www.litespeedtech.com/..._forbidden
RewriteRule ^(.*)$ - [F,L]

edit: changed code

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.7 / PHP 7.3 / head

Last edited by NanoCaiordo on Thu Aug 08, 2019 12:29 pm; edited 1 time in total


Regrettably no, but thanks anyway 😕

But thanks to you, at least I'm able to post.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):

Last edited by Phoenix on Wed Aug 07, 2019 10:16 pm; edited 1 time in total


I've updated the code, please check now.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.7 / PHP 7.3 / head


Any good news with the new code.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.7 / PHP 7.3 / head


403 Forbidden can be caused by:

- index.php not readable by HTTPD (Litespeed, Apache, etc.)
- index.php not readable by PHP-FPM

It all depends how your PHP 7.x is running.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


Sorry Nano, same result - thanks anyway, I can live with it 😊

It's kinda weird - I was previously able to run DF10 under PHP5.6 without that 403 issue, but not PHP7.x
Now DF10 still runs under PHP 5.6 or PHP 7.x, but now both have that 403 issue.
I'm pretty certain Litespeed (v7.5) is the issue.

Even weirder, some of my sites still work with LEO, but not a fresh install of 10.0.48.9418.

As I said, I can't influence how they may have configured the Litespeed PHP handlers for 7.x

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


As I'll probably be moving a server from Apache to LiteSpeed, instead of CloudLinux lsapi, I'm interested in solving this issue.
Would you be able to setup a working area for me to investigate.

.:: I met php the 03 December 2003 :: Unforgettable day! ::.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
CloudLinux / Apache 2.4 LSAPI / MySQLi 5.7 / PHP 7.3 / head


As usual, Nano finds a way - santy issue fixed Very Happy

The LEO issue is occurring due to use of a dash in a module-name - Nano on it 🕵

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):

All times are UTC


Jump to: