Hello,
I am investing over a week to find a clear answer and a working solution for my environment here below is what I have:
OS: CloudLinux 7
Web server: OpenLiteSpeed
Extra OS Add-on: CgeFS - LVE Manager + Altphp 7.3 + Custom Docroot Folder /Home/User/Public_HTML
User Have SSH access because all my CMS and Cart uses composer they should have their Dcoroot in the user home folder.
Issues:
1. Reading multiple articles and searching all of the forums on both LiteSpeed + OpenLiteSpeed I couldn't find any useful answer on how to setup Docroot outside of /usr/local/lsws/ and what are the permission need to be used
2. How to enable SuEXEC for CageFS & How to uses PHP Selector
https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cloudlinux:cagefs
https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cloudlinux:php-selector
As this article says I do the following:
Enable CloudLinux CageFS support under Admin Console ⇒ Configuration ⇒ Server ⇒ General ⇒ Cloud-Linux, and select an applicable option, e.g., CageFS
Enable PHP suEXEC under Admin Console ⇒ Configuration ⇒ Using Apache Configuration File ⇒ PHP suEXEC, set to Yes
THERE IS NO SUCH OPTION IN OPENLITESPEED
LSPHP5 external app runs in non-daemon mode ONLY (Run On Start Up ⇒ Yes or No). Check here for Worker mode or ProcessGroup mode setup.
In lsphp5 external app Admin Console ⇒ Configuration ⇒ Server ⇒ External App ⇒ lsphp5,
3. Why OpenLiteSPeed delivers with lsphp 5.4 and how to remove that and completely migrate to altphp 7.3 the main reason for this is the issue many of the composer based systems have with PHP older than 7.2 and since the system command for hph -v and lsphp -v return 5.6 all will fail the check and won't install properly
4. How to run php / SuEXEC under home folder username for real !!! no matter what permissions are on the home folder and its Docroot nobody:nobody user:nobody
755 folder 644 files .... at the end I just have a nice looking 404 page unless i move the same folder and file to /usr/local/lsws/
No matter how much time I spend to solve those issues looks like I never can get this to work and somehow I feel this missing settings and document are simply to push people to buy the litespeed paid edition.
Thank you
I am investing over a week to find a clear answer and a working solution for my environment here below is what I have:
OS: CloudLinux 7
Web server: OpenLiteSpeed
Extra OS Add-on: CgeFS - LVE Manager + Altphp 7.3 + Custom Docroot Folder /Home/User/Public_HTML
User Have SSH access because all my CMS and Cart uses composer they should have their Dcoroot in the user home folder.
Issues:
1. Reading multiple articles and searching all of the forums on both LiteSpeed + OpenLiteSpeed I couldn't find any useful answer on how to setup Docroot outside of /usr/local/lsws/ and what are the permission need to be used
2. How to enable SuEXEC for CageFS & How to uses PHP Selector
https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cloudlinux:cagefs
https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cloudlinux:php-selector
As this article says I do the following:
Enable CloudLinux CageFS support under Admin Console ⇒ Configuration ⇒ Server ⇒ General ⇒ Cloud-Linux, and select an applicable option, e.g., CageFS
Enable PHP suEXEC under Admin Console ⇒ Configuration ⇒ Using Apache Configuration File ⇒ PHP suEXEC, set to Yes
THERE IS NO SUCH OPTION IN OPENLITESPEED
LSPHP5 external app runs in non-daemon mode ONLY (Run On Start Up ⇒ Yes or No). Check here for Worker mode or ProcessGroup mode setup.
In lsphp5 external app Admin Console ⇒ Configuration ⇒ Server ⇒ External App ⇒ lsphp5,
3. Why OpenLiteSPeed delivers with lsphp 5.4 and how to remove that and completely migrate to altphp 7.3 the main reason for this is the issue many of the composer based systems have with PHP older than 7.2 and since the system command for hph -v and lsphp -v return 5.6 all will fail the check and won't install properly
4. How to run php / SuEXEC under home folder username for real !!! no matter what permissions are on the home folder and its Docroot nobody:nobody user:nobody
755 folder 644 files .... at the end I just have a nice looking 404 page unless i move the same folder and file to /usr/local/lsws/
No matter how much time I spend to solve those issues looks like I never can get this to work and somehow I feel this missing settings and document are simply to push people to buy the litespeed paid edition.
Thank you