This is an old revision of the document!


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 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.

  • LiteSpeed Web Server 5.2+
  • CloudLinux
  1. Make sure Python and Ruby Selector works properly under Apache (follow CloudLinux instructions to install and configure).
  2. Test a Ruby or Python application with Apache and ensure it is running OK.
  3. Run script to install required ruby/python lsapi modules:
    /usr/local/lsws/admin/misc/enable_ruby_python_selector.sh
  4. Switch to LiteSpeed and try a ruby/python app

If you application does not work properly, you can try two simple steps to check if application has been setup properly.

  1. If possible, switch back to Apache temporarily to verify if the application works properly or not.
  2. check if any error logged into <APP_ROOT_DIR>/stderr.log, fix the error and try again.
  • Admin
  • Last modified: 2018/09/17 19:46
  • by George Wang