If you’re using OpenLiteSpeed as your web server, here are some useful commands you can use when you’re logged into the server via ssh.
View OpenLiteSpeed Version #
/usr/local/lsws/bin/lshttpd -v
Check for Configuration Errors #
usr/local/lsws/bin/openlitespeed -t
Start OpenLiteSpeed #
systemctl start lsws
Note that this does NOT restart the PHP processes – it only restarts the main lsws process.
Stop OpenLiteSpeed #
systemctl stop lsws
Graceful Restart With Zero Downtime #
systemctl restart lsws
Note that this does NOT restart the PHP processes – it only restarts the main lsws process.
Restart Full Stack Including PHP Processes #
Run the following in sequence:
/usr/local/lsws/bin/lswsctrl stop killall -9 lsphp systemctl stop lsws systemctl start lsws
Show OpenLiteSpeed Commands #
/usr/local/lsws/bin/lswsctrl help
More Topics In Tips, Techniques & Education. #
- Increase WordPress Upload Size
- How To Access The Entire Server via sFTP
- How Do I Limit PHP Workers For Each Subdomain On A Multisite?
- How To Generate an SSH Key Pair
- Considerations For A Large Number Of Sites On A Single Server
- All The Possible WP-CONFIG.PHP Constants For Core WordPress
- Using MIGRATE GURU To Import Sites
- Force The Use of WWW On A Website
- Local & Remote Statuses On Servers
- CORS Example: Allow Access to Resources Between www and non-www Domains
- Import Sites
- Transferring Sites Between Servers
- Monit vs Netdata vs Monitorix vs GoAccess
- Resolving Common Issues With CloudFlare
- View Used Disk Space For A Site
- Customizing Front-end Styles
- How To Generate An SSH Key-Pair With Termius
- How To Change Your DNS Server
- Restoring From AWS S3 Into A New Site or Server
- Tweaking The Malware Scanner
- Handling Low Disk Space Conditions
- Alias Domains
- Custom SSL Certificates