Issue
Unable to restart Python applications.
Logs/commands output:
ERROR in Python Selector WEB:
No such application (or application not configured) "testpythonapp" Environment
- CloudLinux
- Python Selector
- cPanel
Solution
Ensure that
- the
htaccess_cachefile within the user's/home/exampleuser/.cl.selectordirectory owned by the user. For instance,exampleuser -
Check and fix document root permission. If cPanel "Enable FileProtect" is turned On, set "
public_html750 with the group set to "nodbody", otherwise set "public_html" 755# [ -e /var/cpanel/fileprotect ] && find /home -type d -name public_html \( ! -perm 750 -o ! -group nobody \) -exec chmod 750 {} \; -exec chgrp nobody {} \; || find /home -type d -name public_html ! -perm 755 -exec chmod 755 {} \;
If, after that, another error pops up:
Virtual environment already exists (/home/USERNAME/virtualenv/APPNAME/3.9). Probably it is used by another application. Please, remove directory if it is no longer needed.
Remove virtualenv/APPNAME/3.9 and .htaccess:
mv /home/USERNAME/virtualenv/APPNAME/3.9 /.../BACKUP_LOCATION
mv /home/USERNAME/app-url.domain.tld/.htaccess /.../BACKUP_LOCATIONCause
Incorrect permissions.
Comments
0 comments
Please sign in to leave a comment.