Issue
- Invalid
php.ini
is used for domains with Mod LSAPI PHP handlers in Plesk. - Instead of Plesk
/var/www/system/domain.tld/etc/php.ini
"PHP selector" default php.ini is used. - Selector cannot be configured for the newly created Plesk subscriptions with "No selector dir for user XXX"
Environment
- Plesk
- CloudLinux OS
- Mod LSAPI
Solution
-
Check
alt-python27-cllib
package integrity, in case the output differs from below# rpm -V alt-python27-cllib
S.5....T. /opt/alt/python37/lib/python3.7/site-packages/clcommon/cpapi/apilink.py
S.5....T. /opt/alt/python37/lib/python3.7/site-packages/clcommon/cpapi/cache/__init__.py
S.5....T. /opt/alt/python37/lib/python3.7/site-packages/clcommon/cpapi/cache/__pycache__/__init__.cpython-37.opt-1.pyc
S.5....T. /opt/alt/python37/lib/python3.7/site-packages/clcommon/cpapi/cache/__pycache__/__init__.cpython-37.pyc
........P /usr/share/python-cllib/cl.captain
-
Reinstall RPM package
# yum reinstall alt-python27-cllib
-
Reconfigure Plesk PHP handlers:
# plesk db -Ne"select name, h.php_handler_id from domains d, hosting h where d.id=h.dom_id"| while read a b; do plesk bin domain --update $a -php_handler_id $b; done
-
Reconfigure "PHP selector" for each user
# grep vhost /etc/passwd | awk -F":" '{print $1}' | while read i; do
selectorctl --user-current --user=$i | cut -f1| while read a; do
selectorctl --set-user-current=$a --user=$i; done; done
Cause
Corrupted alt-python27-cllib
package.
Comments
0 comments
Please sign in to leave a comment.