Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2020-08-01 15:52:59

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,077

Re: Feedback for: Textpattern CMS 4.8.2 released

zero wrote #325063:

Yes, never had a problem, been using Litespeed for 3 years at least. When I make changes to .htaccess I get immediate response, so it is being used

Ah, cool – all good. Thanks for clarifying.

Offline

#32 2020-08-01 16:58:16

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,640
Website

Re: Feedback for: Textpattern CMS 4.8.2 released

zero very kindly gave me access to his `phpinfo()`. I’ve skimmed it and it seems that the same $_SERVER['SERVER_SOFTWARE'] that we query for Apache support has the word “LiteSpeed” in its place.

As far as I can make out, PHP doesn’t have any server specific extension for it, but a rudimentary check at the Diagnostics level would allow us to display the .htaccess info. All it should need is a simple tweak to include/txp_diag.php (line 188 at the time of writing) as follows:

$is_apache = stristr(serverSet('SERVER_SOFTWARE'), 'Apache') || stristr(serverSet('SERVER_SOFTWARE'), 'LiteSpeed') || is_callable('apache_get_version');

That would then display it if Apache or Litespeed was in use.

If we did this in core, from a practical viewpoint I’d probably change the variable name slightly to make it more indicative of its nature (e.g. $uses_htaccess instead of $is_apache), but that won’t stop zero testing it out now by making the change above and seeing what happens.

If we do add that line to core, is it admission of officially supporting LiteSpeed? I guess it is. If you’ve been running it for years with no issue, then I don’t see the harm in admitting it works. At the moment we just say Txp is reported to work with it. Are we in a position to change that stance? Is it dangerous with so few of us having access to such an environment for stress testing?

Last edited by Bloke (2020-08-01 16:59:04)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#33 2020-08-01 17:25:31

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,314
Website

Re: Feedback for: Textpattern CMS 4.8.2 released

Some Textpattern files have been modified:

and .htaccess now shows in Diagnostics :-)

I would think there are other forum members using Litespeed because it is very prevalent nowadays and it claims to be lots faster than Apache. Perhaps someone will come forward for more testing or verification?

EDIT: I could create a new database and give you access if you’d like to stress test it.

Last edited by zero (2020-08-01 17:29:51)


Wondrous Healing Wondrous ways to a healthy old age
Safe Reiki Harmless natural healing.
Gud One Blog

Offline

#34 2020-08-01 18:37:50

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,640
Website

Re: Feedback for: Textpattern CMS 4.8.2 released

Very kind offer, thank you. We could certainly use that, which allows us to test it now (although you’ve been using it for ages, so that’s good enough proof for me).

I was more thinking of how we continue to prove it works longer term when we add new features and tinker, to check we’ve not broken anything. Not sure about that bit.

Last edited by Bloke (2020-08-01 18:38:36)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#35 2020-08-02 07:16:52

gaekwad
Admin
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 3,077

Re: Feedback for: Textpattern CMS 4.8.2 released

Bloke wrote #325065:

If we do add that line to core, is it admission of officially supporting LiteSpeed?

Nope.

If you’ve been running it for years with no issue, then I don’t see the harm in admitting it works. At the moment we just say Txp is reported to work with it.

Supporting it and saying it works are two very different things. I would respectfully counter with putting a section into docs.textpattern.com/setup/configuring-a-web-server with LiteSpeed-specific stuff (if there even is any – zero, can you remember what you did way back three years+ ago?), that plus a tweak to the sys reqs page with a link to said doc would be a good start.

Is it dangerous with so few of us having access to such an environment for stress testing?

Not dangerous, but we will need to tool up just in case. We’re also not overburdened with IIS / Lighttpd testing platforms or support requests either, so stating Textpattern is reported to work well doesn’t necessarily follow that it will attract users.

Offline

#36 2020-08-02 07:35:09

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,640
Website

Re: Feedback for: Textpattern CMS 4.8.2 released

gaekwad wrote #325069:

a section into docs.textpattern.com/setup/configuring-a-web-server with LiteSpeed-specific stuff

Works for me. That line in txp_diag.php can be altered whenever.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#37 2020-08-02 07:43:48

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,314
Website

Re: Feedback for: Textpattern CMS 4.8.2 released

I didn’t need to do any tweaks, basically I’ve had apache and litespeed for different sites and they behave the same. I had a security issue with my new Litespeed host but it was quickly sorted. I’ve also noticed that I no longer get the error message with the default TXP .htaccess, so Michael must have altered something. Excellent support.


Wondrous Healing Wondrous ways to a healthy old age
Safe Reiki Harmless natural healing.
Gud One Blog

Offline

#38 2020-08-02 13:55:32

jrmartin
Member
Registered: 2013-03-07
Posts: 84

Re: Feedback for: Textpattern CMS 4.8.2 released

I have three textpattern sites that have used litespeed for the last three years as well. No problems but I did wonder where the .htaccess went.

Offline

#39 2020-08-03 01:05:58

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,669
Website

Re: Feedback for: Textpattern CMS 4.8.2 released

jrmartin wrote #325072:

I have three textpattern sites that have used litespeed for the last three years as well. No problems but I did wonder where the .htaccess went.

do you have backups of yr site? if so see if putting back the .htaccess file makes any difference


…. texted postive

Offline

#40 2020-08-03 07:26:13

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,640
Website

Re: Feedback for: Textpattern CMS 4.8.2 released

bici wrote #325073:

do you have backups of yr site? if so see if putting back the .htaccess file makes any difference

I think the implication is only its output is missing from the Diagnostics panel – check a few posts up where we’re discussing it being omitted on LItespeed.

Last edited by Bloke (2020-08-03 07:26:28)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB