Jump to content

LiteSpeed


BIgnat

Recommended Posts

8 minutes ago, BIgnat said:

Hello,

I tried to move to LiteSpeed from Apache, but IPB 4.4 doesn't work properly. I simply can't login into the board and ACP because of an error 2S199/1 (CSRF keys don't match).

Does anybody know, how to fix this?

Hi,

I just rebuild my server with openlitespeed and it works fine. If you want the absolute easy way to do it, install it with cyberpanel, it works really well.

https://cyberpanel.net/

 

Link to comment
Share on other sites

17 minutes ago, BIgnat said:

Hello,

I tried to move to LiteSpeed from Apache, but IPB 4.4 doesn't work properly. I simply can't login into the board and ACP because of an error 2S199/1 (CSRF keys don't match).

Does anybody know, how to fix this?

Could be similar to this:

https://get.todoist.help/hc/en-us/articles/208951085-CSRF-token-error-messages

 

 

Are you using openlitespeed to litespeed paid?

Openlitespeed does not read apache htaccess files. You have to put the rules in the webadmin -- virtualhost -- yourwebsite.com -- rewrite.

I use this for furl:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Link to comment
Share on other sites

8 minutes ago, Steph40 said:

Thanks, but it seems like that's a different case because I unsuccessfully tried to login even in an 'incognito mode' in both Safari and Chrome. 

I might be wrong but it seems like there's something with caching like described here https://plugins.craftcms.com/lite-speed-cache

LiteSpeed has an instruction for IPB https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:no-plugin-ip-board but it's for 3.1 and this article was deprecated 

Link to comment
Share on other sites

1 minute ago, BIgnat said:

Thanks, but it seems like that's a different case because I unsuccessfully tried to login even in an 'incognito mode' in both Safari and Chrome. 

I might be wrong but it seems like there's something with caching like described here https://plugins.craftcms.com/lite-speed-cache

LiteSpeed has an instruction for IPB https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:no-plugin-ip-board but it's for 3.1 and this article was deprecated 

Yes litespeed cache can do a lot of good and bad things, I have disabled it for now till I learn a bit more about it. 

 

Also if you have some mod_security rule pack like comodo can cause not being able to login acp, had that happen yesterday 🙂 

Link to comment
Share on other sites

18 minutes ago, Steph40 said:

Are you using openlitespeed to litespeed paid?

2

I'm on the paid LiteSpeed

19 minutes ago, Steph40 said:

I use this for furl:

I've just checked, I have the same in my .htaccess

By the way, I asked the support of Invision Community and they answered that "litespeed has known issues with some areas of PHP7 unfortunately. We support only apache based environments, so we can provided only limited support in these instances."

So that's a reason a opened this topic 🙂 

Link to comment
Share on other sites

2 minutes ago, BIgnat said:

By the way, I asked the support of Invision Community and they answered that "litespeed has known issues with some areas of PHP7 unfortunately. We support only apache based environments, so we can provided only limited support in these instances."

Sad.

Well so far running with openlitespeed, php7.3, mariadb 10.3 and memcached just fine. 

Link to comment
Share on other sites

3 hours ago, BIgnat said:

@Steph40 As I see, all urls have this: '&csrfKey='. Do you have something in the LiteSpeed settings to avoid caching these urls?

I have not played with litespeed cache yet. Using memcached.

I guess you already tried what is in the link you posted:

Max Object Size: 1024000

Cache Policy
Enable Cache:    No
Cache Expire Time (seconds):    Not Set
Cache Request with Query String:    No
Cache Request with Cookie:    Yes
Cache Response with Cookie:    Yes
Ignore Request Cache-Control:    Yes
Ignore Response Cache-Control:    No
Enable Private Cache:    Yes
Private Cache Expire Time (seconds):    60

in the module settings and 

RewriteEngine On
###########################################
# For LiteSpeed public cache (guest user)
###########################################
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{HTTP_COOKIE} !member_id= [OR]
RewriteCond %{HTTP_COOKIE} member_id=0
RewriteCond %{REQUEST_URI} !^/admin
RewriteCond %{REQUEST_URI} !(css|js|png|gif)$
RewriteCond %{QUERY_STRING}  ^$
RewriteRule .* - [E=Cache-Control:max-age=360]

in the rewrite

Link to comment
Share on other sites

Be aware that we do not provide support for hosting environments, and so if you are experiencing an issue (especially on something a little non-standard, like Litespeed as compared to Apache) you will most likely need to work with your hosting provider (or contract the services of a system administrator).

Link to comment
Share on other sites

16 minutes ago, bfarber said:

Be aware that we do not provide support for hosting environments, and so if you are experiencing an issue (especially on something a little non-standard, like Litespeed as compared to Apache) you will most likely need to work with your hosting provider (or contract the services of a system administrator).

Indeed! They have amazing support at LiquidWeb, so I can ask them to apply or install something that IBP requires.

Link to comment
Share on other sites

From here: https://invisioncommunity.com/legal/standards/

Quote

To obtain technical support, your hosting environment must meet the minimum requirements as outlined on our purchase page. We strongly recommend LAMP (Linux Apache MySQL PHP) environments. Support for non-Apache based web servers may be limited. We do not recommend or provide support for Windows server environments.

 

'Limited support' doesn't mean a lack of support. The only thing I asked is just to look at the case and say what's wrong with the configuration under LiteSpeed.

Link to comment
Share on other sites

22 hours ago, BIgnat said:

From here: https://invisioncommunity.com/legal/standards/

'Limited support' doesn't mean a lack of support. The only thing I asked is just to look at the case and say what's wrong with the configuration under LiteSpeed.

We understand, but it is akin to taking your BMW car to a Ford dealership who states they only work on Ford vehicles, and saying "can you just look at my BMW anyways and tell me what's wrong with it?".

When you have an issue that is a result of a server configuration problem, you will need to work with your hosting provider to resolve the issue. In the case of a fairly non-standard server environment like Litespeed, we have limited capacity to tell you "what" is wrong in some cases.

If you are unable to maintain the server and diagnose server-related issues effectively, you will most likely find that our Community In The Cloud environment is a perfect fit for your needs. In that scenario, we handle all of the server backend setup and maintenance so you can focus on running your community.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...