Issue
mod_lsapi can't be installed due to the following error:
[INFO | 2021-10-12 21:50:52,224]: ...external command failed, see following lines for tracebacks, errors, etc
[ERROR | 2021-10-12 21:50:52,224]: output of the command: /usr/bin/switch_mod_lsapi --setup
Traceback (most recent call last):
File "/usr/bin/switch_mod_lsapi", line 556, in <module>
cp = get_cp()
File "/usr/share/lve/modlscapi/user/lve_diagnostic.py", line 286, in get_cp
cp = Plesk()
File "/usr/share/lve/modlscapi/user/lve_diagnostic.py", line 212, in __init__
super(Plesk, self).__init__()
File "/usr/share/lve/modlscapi/user/lve_diagnostic.py", line 179, in __init__
self.apache = ApacheInfo('/usr/sbin/apachectl')
File "/usr/share/lve/modlscapi/user/lve_diagnostic.py", line 48, in __init__
self.detect(path)
File "/usr/share/lve/modlscapi/user/lve_diagnostic.py", line 93, in detect
if version.LooseVersion(self.version) > version.LooseVersion('2.2'):
File "/opt/alt/python37/lib64/python3.7/distutils/version.py", line 64, in __gt__
c = self._cmp(other)
File "/opt/alt/python37/lib64/python3.7/distutils/version.py", line 337, in _cmp
if self.version < other.version:
TypeError: '<' not supported between instances of 'str' and 'int'
Environment
- CloudLinux 7
- Plesk
Solution
1. Check if the httpd service is running up: systemctl status httpd
If it's down, check journactl using the journalctl -xe | grep "httpd\|apache"
command for the following errors:
AH00526: Syntax error on line 31 of /etc/httpd/conf.d/php.conf:
httpd[262137]: Invalid command 'php_value', perhaps misspelled or defined by a module not included in the server configuration
systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
-- Subject: Unit httpd.service has failed
-- Unit httpd.service has failed.
systemd[1]: Unit httpd.service entered failed state.
systemd[1]: httpd.service failed.
2. Comment the following lines in the /etc/httpd/conf.d/php.conf file:
#php_value session.save_handler "files"
#php_value session.save_path "/var/lib/php/session"
3. After that, start httpd service and try to install mod_lsapi again.
Cause
Apache misconfiguration.
Comments
0 comments
Please sign in to leave a comment.