Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
litespeed_wiki:cloudlinux:enable_ruby_python_selector [2019/01/14 21:43] Jackson Zhang created |
litespeed_wiki:cloudlinux:enable_ruby_python_selector [2019/11/29 16:08] Lisa Clarke [Restart Python and Ruby Application] Copyediting |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== How to Enable CloudLinux Python and Ruby Selector (alt-mod_passenger) for LSWS ===== | ===== How to Enable CloudLinux Python and Ruby Selector (alt-mod_passenger) for LSWS ===== | ||
- | To enable Python or Ruby on a shared hosting environment instead of a dedicated VPS environment, CloudLinux Python and Ruby Selector is recommended. If it is not for a shared hosting environment, you can refer to [[litespeed_wiki:other-ext-apps#archive|our archive section]] for LSWS native setup. | + | To enable Python or Ruby on a shared hosting environment instead of in a dedicated VPS environment (such as cpanel, DirectAdmin etc), CloudLinux Python and Ruby Selector is recommended. If it is not for a shared hosting environment, you can refer to [[litespeed_wiki:other-ext-apps#archive|our archive section]] for LSWS native setup. |
The Python and Ruby Selector allows end users to select the specific version of Python or Ruby they need. | The Python and Ruby Selector allows end users to select the specific version of Python or Ruby they need. | ||
+ | |||
+ | LiteSpeed supports the Apache ''mod_passenger'' configuration generated through CloudLinux selectors (LiteSpeed doesn't support most of the [[https://www.phusionpassenger.com/library/config/apache/reference/|mod_passenger apache rules]] and only support a few of the long list. Please check here for [[litespeed_wiki:config:mod_passenger|LiteSpeed supported Mod_Passenger rules]]). However, behind the scenes, LiteSpeed's is a completely different implementation to Apache's. | ||
===== Requirements ===== | ===== Requirements ===== | ||
Line 13: | Line 15: | ||
- Run script to install required ruby/python lsapi modules: <code>/usr/local/lsws/admin/misc/enable_ruby_python_selector.sh</code> | - Run script to install required ruby/python lsapi modules: <code>/usr/local/lsws/admin/misc/enable_ruby_python_selector.sh</code> | ||
- Switch to LiteSpeed and try a ruby/python app | - Switch to LiteSpeed and try a ruby/python app | ||
+ | ===== Restart the Python and Ruby Application ===== | ||
+ | The Python and Ruby application can be restarted by touching the ''<app_root_dir>/tmp/restart.txt'' file. | ||
+ | For example, if a python application is located at ''/home/user1/mypythonapp'' the command would be: | ||
+ | |||
+ | <code>touch /home/user1/mypythonapp/tmp/restart.txt</code> | ||
+ | |||
+ | This will tell the server to restart the application. | ||
+ | |||
===== Troubleshooting ===== | ===== Troubleshooting ===== |