How To Fix alt-pythonXXX-wsgi-lsapi missing

Fix the 'alt-pythonXXX-wsgi-lsapi missing' error in CloudLinux. Step-by-step guide to install missing packages and restore Python WSGI support

How To Fix alt-pythonXXX-wsgi-lsapi missing

šŸ Fix: alt-python310-wsgi-lsapi package is missing on LiteSpeed

When running Python 3.10 on a LiteSpeed server, you may encounter the following error:

/usr/local/lsws/fcgi-bin/lswsgi_wrapper: line 18: /opt/alt/python310/bin/lswsgi: No such file or directory

šŸ–„ļø Environment

  • Python Selector

  • LiteSpeed Web Server


āœ… Solution

Install the missing wsgi-lsapi package for the corresponding Python version.

# yum install alt-pythonXXX-wsgi-lsapiĀ 

Replace XXX with the actual Python version you’re using.

šŸ‘‰ Example for Python 3.10:

# yum install alt-python310-wsgi-lsapiĀ 

šŸŽÆ Final Notes

  • This error occurs because WSGI support for that specific Python version is not installed.

  • Make sure you install the correct alt-pythonXX-wsgi-lsapi package for each Python version you want to enable in LiteSpeed.

  • After installation, restart LiteSpeed to apply changes:

# /usr/local/lsws/bin/lswsctrl restart

Share

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 1