Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
litespeed_wiki:cloudlinux:enable_ruby_python_selector [2019/08/14 20:29] Jackson Zhang [How to Enable CloudLinux Python and Ruby Selector (alt-mod_passenger) for LSWS] |
litespeed_wiki:cloudlinux:enable_ruby_python_selector [2019/11/28 15:41] George Wang [Steps to Enable Python and Ruby Selector] |
||
---|---|---|---|
Line 4: | Line 4: | ||
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 all mod_passenger rules and 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. | + | 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 15: | 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 Python and Ruby Application ===== | ||
+ | Python and Ruby application can be restarted by touching file <code><app_root_dir>/tmp/restart.txt</code>. | ||
+ | For example, if a python application is located at <code>/home/user1/mypythonapp</code>, command <code>touch /home/user1/mypythonapp/tmp/restart.txt</code> will make server to restart the application. | ||
+ | |||
===== Troubleshooting ===== | ===== Troubleshooting ===== |