Recent content by inspiredearth

  1. I

    503 error + [lsphp]: Failed to listen socket [/tmp/lshttpd/lsphp.sock]: No space left on device

    Hi there, My server is also having the issue outlined by OP. This solution posted by @iky isn't making total sense to me. There are four bash command, and a seemingly unrelated crontab entry. What's the relationship between the two? Are you saying, first run those bash commands (and I presume...
  2. I

    Monit Configuration Example

    Hi ftsor, As far as I know, the following will keep an eye on MySQL (mariadb, in our case): # check mariadb check host mymariadb with address 127.0.0.1 if failed ping then alert if failed port 3306 protocol mysql then alert
  3. I

    Monit Configuration Example

    Hi TexasGreg, Do you have any other OLS relevant Monit config you can share? I'd like to ensure I've got all bases covered re Monit and OLS but have found very little info on this.
  4. I

    How do I change PHP CLI version?

    I am running OLS with CyberPanel. My question is related to OLS, so I am hoping someone here can assist. I am running into issues when use PHP CLI (PHP on the command line). I have install a website application that needs at least PHP 7.3 (I've got it on 7.4). It is a Composer project. I need...
  5. I

    Do I need separate cache folder for each site? How does the caching work?

    Hello, I've installed OLS (v1.6.14) and CyberPanel. I am trying to get my head around how the LS caching works. I've managed to figure out that the cache files are stored in `/usr/local/lsws/cachedata/`. This folder is not writable to the hosts. It appears all websites on the server store...
  6. I

    How to by-pass local domain to IP resolution?

    Okay. Seems it just required some time to take effect. Not sure why. I even tried clearing the DNS cache on the Ubuntu server. But... some times later (I only rechecked a few hours later) the domain is now resolving to the IP in the hosts file. Can anyone explain how long the delay is, and how...
  7. I

    How to by-pass local domain to IP resolution?

    I am migration a site to my OLS server. The NS records still point the domain to the old server IP. I use my local hosts file to access the new site on the OLS server IP whilst I am setting it up. I have run into an issue though. It would appear the new OLS server automatically resolves the...
  8. I

    How to redirect a subdomain to specific port?

    Is there a way to do the proxy using a domain alias, rather than having to set up an new virtual host for each subdomain I wish to proxy? For example, I want to proxy cyber.mydomain.com and litespeed.mydomain.com. Currently I am having to set up a new website (in Cyberpanel, which means a new...
  9. I

    How to redirect a subdomain to specific port?

    If I set up one external app on server, and if I use the Context method... Do I need to add a relevant subdomain to each web site? (e.g. Adding the sub-domain `cpanel.primarydomain.com` to the website on `primarydomain.com`) With either the Context method or htaccess method, Is there a way to...
  10. I

    How to redirect a subdomain to specific port?

    Thanks for that link. So I've managed to set this up for one domain, such that `cyber.mydomain.zzz` seamlessly pulls up the content from `my-ip:8090`. Is there any way to do this such that `cyber.anydomain.zzz` will proxy content from port 8090 ? Or will I have to set this up on every domain...
  11. I

    How to redirect a subdomain to specific port?

    I would like https://cpanel.mydomain.com to redirect to https://mydomain.com:7080 (for example). On cpanel hosting these redirects are set up automatically for things like mail.mydomain.com, cpanel.mydomain.com, etc. I gather that's being achieved in the vhost config files (as opposed to using...
  12. I

    Hosting multiple Wordpress sites using ols1clk script.

    Hi folks, I've just recently discovered OpenLiteSpeed. I've previously been setting up and using Nginx based stacks for hosting Wordpress on cloud servers, using scripts like WordOps and EasyEngine to handle the server deployment/configuration. OLS was highly recommended, so I am keen to try it...
Top