Questions tagged [litespeed]
LiteSpeed Web Server (LSWS) is a high-performance Apache drop-in replacement.
293
questions
0
votes
0
answers
11
views
Using .htaccess to stop indexing directories, disable browsing, and protecting some files. LiteSpeed Server
I am building a small website to allow customers download .pdf files, and I am trying to put some privacy on it using .htaccess. Important: my hosting service is Hostinger, with uses LiteSpeed servers ...
-1
votes
0
answers
11
views
Grafana with Litespeed server both not working
I try to install Grafana and OpenLitespeed (CyberPanel) in same VPC server. When I install both same server, both pages are not loading. Example: VPC public ip - a.b.c.d, when go to a.b.c.d IP address ...
-1
votes
0
answers
52
views
Server does not load a JavaScript file Vite | SPA React | LiteSpeed Sever
I am trying to upload a built Vite React project to a LiteSpeed server and I recieve the following error when I open my webpage: "Failed to load module script: Expected a JavaScript module script ...
0
votes
0
answers
32
views
Disable Litespeed optimisation for posts
I have a weird request. I want to turn off litespeed optimisation for posts. I wanted to exclude those urls from litespeed plugin from optimising it. I tried excluding those urls, using the URI ...
-1
votes
1
answer
38
views
WordPress - Prevent/disable font downloading
In WordPress by default you can see which fonts are being used and download the .woff2 files.
I'd like to prevent this from happening without causing any issues to the website's appearance as fonts ...
1
vote
0
answers
61
views
Issue Deploying Next.js app to cPanel + LiteSpeed - Error: http.Server.listen() More Than Once
I'm currently working on deploying my Next.js app (version 13.4.19) to a shared hosting provider that uses cPanel and LiteSpeed. Unfortunately, I'm encountering an error during deployment, and I could ...
0
votes
0
answers
23
views
How to in PHP is GZIP is enabled?
I need to run some function but only if GZIP is enabled on server (Apache or LiteSpeed). How can I detect this?
I've tried:
if(ini_get("zlib.output_compression")) {
echo "On";
}...
0
votes
0
answers
117
views
Wordpress rest api working all link except wp-json/wp/v2/users base link
I post in wordpress from third party website. In this case I use Wordpress rest api with basic authentication. I verify wordpress site username and password with wp-json/wp/v2/users/me link. all ...
0
votes
0
answers
9
views
LightSail instances - Changed the file permission to 644 but still the caching plugin shows the error
I have changed the file permissions of wp-config.php to 644. But still getting the same error---> wp-config.php operation failed when changing WP_CACHE const: File /opt/bitnami/wordpress/wp-config....
1
vote
1
answer
67
views
Excluding a Specific Page during URL Redirection in .htaccess
I'm trying to redirect all URLs from an old domain to a new one, except for two specific pages. I have implemented the following code in the .htaccess file:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(...
0
votes
0
answers
26
views
Geting CSS 404 errors with Litespeed Cache plugin in Wordpress
I have a WordPress site hosted on Cloudways with the Litespeed Cache plugin installed. For some reason, I keep getting 404 errors for CSS URLs.
I have tried disabling CSS optimizations and purging ...
1
vote
0
answers
15
views
Elementor Blog Section Displays Incorrectly for Non-Logged In Users
I'm experiencing an issue with my website, TurnerNet.Tech, specifically with the blog section on the homepage. I recently built a new page using Elementor, and I'm encountering a problem with the ...
0
votes
1
answer
53
views
LiteSpeed/Apache WebSocket Proxy setup
I have a server running the LiteSpeed, and I am using the Ratchet to create a Websocket server. After that I follow this instruction LiteSpeed Websocket Proxy to setup the proxy
It works, when I only ...
0
votes
0
answers
82
views
SSL certs not being updated in cpanel
Domain: trushargavit.com
Hosting Provider: Namecheap [Shared Hosting]
Webserver: Litespeed
I installed the cert on 1st March 2023 and will expire on 30th May. I was getting mail from cpanel that the ...
0
votes
0
answers
79
views
run next js in litespeed webserver
I have a Next.js application installed on my VPS, and when I run it using yarn start, it starts on port 3040. I would like to know how to configure it to start on ports 80 and 443 instead. Thank you!
...
0
votes
0
answers
18
views
LiteMage Cache not working for logged in users Magento
For my magento 2 website which uses Litemage cache, Once the litemage cwral is done I can see public pages are being cached. I wanted to cache private pages as well. For private cache, Actually, I ...
1
vote
0
answers
16
views
CF Origin SLL on LiteSpeed with cyberpanel
I have a VPS with Litespeed server + cyberpanel installed on it. Problem is that it only allows self sign via panel. And that's not enough for some apps I use. So I need to do it manually. I need full ...
1
vote
0
answers
67
views
ClickMagick Tracking Code Not Detected When Using LiteSpeed Cache Guest Mode Optimization
help me out with a bug when using Hostinger + Litespeed Cache and ClickMagick cmc.js in Wordpress
This is the page getting the issue:
https://love.conscientia.net/3-marriage-mistakes-n1-h3/
Following ...
0
votes
0
answers
41
views
Strange issue with Litespeed Wordpress cache plugin (LSCWP) and Mixpanel Initial Referrer property
We use Mixpanel events on our Wordpress/Woocommerce store to track where our customers are originiating using UTM properties and so on and we are noticing some slightly strange differences in the data ...
0
votes
0
answers
77
views
Setup 404 status page with React Router + Hostinger's Litespeed Server
I have a React application hosted on Hostinger, which uses LiteSpeed as the web server. I am using React Router for routing, and I have a custom 404 page set up to render whenever a route doesn't ...
0
votes
0
answers
43
views
It throws an error when I switch to Wordpress Permalink
I did a fresh clean install of WordPress. My WordPress site is working but currently the URL structure is in the format ?p=11.
On the permalinks page I select example.com/%postname%/. Currently ...
0
votes
1
answer
68
views
Request timeout in wagtail due to php issues
I'm using wagtail on a production and everything was working fine but suddenly something broke down. Now there is no possibility to edit content in this cms. For example, when I want to upload a ...
0
votes
0
answers
102
views
Replace Imagify with Litespeed image compression
I have inherited a WordPress site that has Imagify installed and running image compression over media uploads. The site has media folders going back to 2010 so lots of images.
From what I can see ...
0
votes
0
answers
146
views
Error 404 in new Multistore - PrestaShop 8.0.1
I created a Fresh install of PrestaShop 8.0.1
https://graudupes.fr/
activated multistore, and following PrestaShop documentation I created a new store ina subfolder:
https://graudupes.fr/baltics/
...
1
vote
0
answers
24
views
How to redirect urls with /#!/ with .htaccess [duplicate]
I need to redirect old website urls to new urls, but they all are indexed with domain.com/#!/uri, the /#!/ is causing me problemes.
For example I need to redirect : /#!/themes to /thematique/.
I'd ...
0
votes
1
answer
172
views
Litespeed external application max connection change
On my dedicated server, I run Nextjs(frontend) and PHP(backend).
Nextjs runs on port 8080 and uses server PHP APIs. Every things worked fine until my user number achieves to 200. At this number of ...
2
votes
1
answer
193
views
How to use apache ..htaccess in lightspeed web server
I did some .htaccess code to make PHP API route.
It's working in apache ( local server )
Options -MultiViews
RewriteEngine On
#What does this mean??
RewriteRule ^(.+)$ quizAPI.php?url=$1 [QSA,L]
But ...
1
vote
1
answer
176
views
Optimize Wordpress Nginx Website with Litespeed cache
I'm trying to optimize my website and I've tried many ways like using WP optimizer with minification and cache, w3 total cache with minification and more. The best score I get is whenever I use ...
0
votes
1
answer
171
views
How to do I purge the LiteSpeed cache using WordPress's REST API?
I'm communicating with a WordPress site's REST API with RestSharp. I've authorised myself to the client's website and issued a GET to https://REDACTED/wp-json/litespeed/v1/ping. I've received a ...
0
votes
0
answers
189
views
Litespeed Rewrite Rules
Trying to figure out how to get the following rewrite rule changed to work with Litespeed.
Previously the below rewrite rule worked with Apache, but stopped working with Litespeed.
RewriteRule ^...
-1
votes
2
answers
591
views
MySQL is utilizing 500% of the CPU and causing the website to slow down
I have a virtual machine with 64 vCPUs and 256GB of memory. Recently, I decided to perform some stress tests on the website that is running on this virtual machine. The entire VM is only for this ...
1
vote
1
answer
79
views
How to edit .htaccess Server-wide
I use WHM for hosting which allows me to make many cpanel accounts. Every time I make a cpanel account it has a new .htaccess file inside public_html with the same code inside
I want to be able to ...
0
votes
0
answers
337
views
Prestashop admin login error 302, CloudFlare and LiteSpeed server
We have migrated a PrestaShop(PS) v.1.7.8.7 from an Apache server to a LiteSpeed server which includes the LiteSpeed cache module for PS and crawler enabled.
CloudFlare(CF) has always been in play ...
1
vote
0
answers
66
views
CSS and (or?) shortcode loading slow with LiteSpeed Cache
I have used this code:
form .this-class input[type="radio"]
{
position: fixed;
opacity: 0;
pointer-events: none;
}
And the radio button is hidden when I load the page without caching. But ...
0
votes
1
answer
46
views
Openlitespeed 301 Moved Permanently problem
I have a new Openlitespeed server on Ubuntu, I have 2 domains pointing to the same IP,
I tried to make a multidomain server so that www.domain1.com would point to one website and www.domain2.com to ...
0
votes
1
answer
289
views
Configure Litespeed to serve as a frontend proxy for chatwoot or any docker
My docker chatwoot is now fully activated, but I don't know how to convert my litespeed(As part of my Cpanel installation, I installed Litespeed) to a frontend proxy like the setting below belongs to ...
0
votes
0
answers
179
views
WordPress Image Renamed
I have a client who's multisite wordpress website renamed an image to another images name from a different post.
The renamed image was the featured image, the name it was renamed to was a different ...
1
vote
1
answer
447
views
Conditionally preloading images with PHP based on LiteSpeed cache plugin in WordPress
My Goal:
Conditionally preload either the .webp version or the .jpg version of an image based on the version that will be served via the LiteSpeed cache plugin, not both.
Explanation:
I'm using the ...
0
votes
1
answer
83
views
Litespeed returns 403 when rewriting the URL of an existing image
My customer is using Litespeed with CPanel v106.0.10.
I have a RewriteRule like this in .htaccess file:
RewriteCond %{HTTP_HOST} ^www.site.com$
RewriteCond %{HTTP_ACCEPT} image/webp
RewriteCond %{...
0
votes
0
answers
139
views
Openlitespeed password protected realm and rewriting rules
I am working with openlitespeed and have for my php application a virtual location "/backend/" which I like to have password protected. I also using "rewrite" rules at the root ...
0
votes
0
answers
45
views
Website slows down every time cronjob is executed
I have a cronjob A that works every minute. This actually executes a PHP file B via curl, which should be executed every 5 seconds. (I know 5 seconds is insane, but we need it to keep what we're doing ...
0
votes
2
answers
160
views
Storage symlink doesn't work with Laravel and Vue in Namecheap CPanel (LiteSpeed)
I am trying to access my image files stored inside storage/app/public/subfolder/ using symlink inside /public folder in my Laravel app. Everything works fine in my local setup and also in Jelastic ...
1
vote
1
answer
537
views
How redirect URL to to file In Cyberpanel and OpenLitespeed
How can I redirect URL to to file In Cyberpanel and OpenLitespeed?
dl.mydomain.com/vid to mydomain.com/myfile.zip
I used this code inside /vide directory, but is not working
RewriteEngine on
...
-1
votes
1
answer
389
views
Deploy django app to vps server using cyberpanel
I am trying to deploy django app to vps server using cyberpanel.I followed the steps in the doc, here is the link to the doc (https://community.cyberpanel.net/t/how-to-setup-django-application-on-...
0
votes
1
answer
613
views
How to remove menu item from WordPress admin bar menu?
i want to remove an menu item from admin bar , tried the following code
add_action( 'admin_menu', 'remove_admin_menu_items', 999 );
function remove_admin_menu_items() {
remove_menu_page('admin.php?...
0
votes
0
answers
214
views
OpenLiteSpeed Changing http port from 8088 to 80 not working
I am fresh to openlitespeed. I've succesfully installed the server and Wordpress above it.
Now I can reach my wordpress installation from http://x.x.x.x:8088
But
When I try to replace the HTTP port ...
-1
votes
1
answer
83
views
Pluguin CDN Cloudflare or Lite Speed?
I have installed the Lite Speed Cache plugin on my Wordpress directly from the server.
Also Cloudflare, my question is it better to disable Cloudflare and use Lite Speed CDN.
Thank you very much
0
votes
1
answer
122
views
Rewrite options InheritDown* behave weirdly in subdirectories and subdomains on LiteSpeed server
I was trying to host two separate sites, using the main domain like [www.]example.com and one subdomain sub.example.com, on a shared hosting environment powered by LiteSpeed. The document root of the ...
0
votes
0
answers
91
views
403 Forbidden error upon adding AdSense to website
I'm getting a 403 error, a forbidden access error on some pages after I have added AdSense to my website. Error sometimes happens to one page, sometimes to other ones, but it has something to do with ...
0
votes
1
answer
641
views
Wordpress / Woocommerce Litespeed cache plugin not caching Homepage (frontpage)
Experimenting with Litespeed cache plugin
Can't make home page to cache using the plugin.
Test domain is: https://ls.alexdev.gr/
I tried disabling the plugin and enabling caching only using .htaccess ...