BIgnat Posted February 24, 2019 Posted February 24, 2019 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?
Steph40 Posted February 24, 2019 Posted February 24, 2019 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/
Steph40 Posted February 24, 2019 Posted February 24, 2019 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]
BIgnat Posted February 24, 2019 Author Posted February 24, 2019 8 minutes ago, Steph40 said: Could be similar to this: https://get.todoist.help/hc/en-us/articles/208951085-CSRF-token-error-messages 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
Steph40 Posted February 24, 2019 Posted February 24, 2019 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 🙂
BIgnat Posted February 24, 2019 Author Posted February 24, 2019 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 🙂
Steph40 Posted February 24, 2019 Posted February 24, 2019 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.
BIgnat Posted February 25, 2019 Author Posted February 25, 2019 @Steph40 As I see, all urls have this: '&csrfKey='. Do you have something in the LiteSpeed settings to avoid caching these urls?
Steph40 Posted February 25, 2019 Posted February 25, 2019 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
BIgnat Posted February 25, 2019 Author Posted February 25, 2019 Thanks for the answer! Yes, I've got these in my .htaccess. However, I can't apply some settings for Cache Policy because I don't see them here:
Steph40 Posted February 25, 2019 Posted February 25, 2019 Things are a bit different in openlitespeed. Here is what I followed: https://openlitespeed.org/kb/litespeed-cache-on-openlitespeed/ https://openlitespeed.org/kb/litespeed-cache-on-openlitespeed-without-plugins/
Joel R Posted February 26, 2019 Posted February 26, 2019 If you're still having difficulty, be sure to open a new Support Ticket in the client area and reference this URL.
BIgnat Posted February 26, 2019 Author Posted February 26, 2019 13 hours ago, Joel R said: If you're still having difficulty, be sure to open a new Support Ticket in the client area and reference this URL. Thanks! I've just done so (#1031356).
bfarber Posted February 26, 2019 Posted February 26, 2019 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).
BIgnat Posted February 26, 2019 Author Posted February 26, 2019 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.
BIgnat Posted February 26, 2019 Author Posted February 26, 2019 Just an amazing answer for the support:
Management Matt Posted February 26, 2019 Management Posted February 26, 2019 Joel has many talents, but development and support isn't one of them. There's no harm in opening a ticket to check with a developer, it's what I'd ask anyone who is not sure to do.
BIgnat Posted February 26, 2019 Author Posted February 26, 2019 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.
bfarber Posted February 27, 2019 Posted February 27, 2019 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.