Issue
After installing CloudLinux, the Wizard is not working with the following error:
Traceback (most recent call last):
File "/opt/alt/python37/lib/python3.7/site-packages/clwizard/wizard.py", line 94, in run
self._get_initial_status()
File "/opt/alt/python37/lib/python3.7/site-packages/clwizard/wizard.py", line 255, in _get_initial_status
for module_name, cls in self._supported_modules.items()
File "/opt/alt/python37/lib/python3.7/site-packages/clwizard/wizard.py", line 255, in <dictcomp>
for module_name, cls in self._supported_modules.items()
File "/opt/alt/python37/lib/python3.7/site-packages/clwizard/modules/php.py", line 154, in initial_status
for it in self._php_interpreters_list():
TypeError: 'NoneType' object is not iterable
Environment
- cPanel
- CloudLinux OS
- PHP
- CloudLinux Wizard
Solution
Install any native PHP version (for cPanel servers, any EA-PHP). It can be done via EasyApache or command-line (in this example, we're using EA-PHP 8.0):
# yum install ea-php80
Cause
This will typically happen on new servers, and the issue lies in this line:
File "/opt/alt/python37/lib/python3.7/site-packages/clwizard/modules/php.py", line 154, in initial_status
for it in self._php_interpreters_list():
TypeError: 'NoneType' object is not iterable
The "_php_interpreters_list()" function is returning "None", which is not considered an empty iterable. To avoid this error, there must be at least one PHP interpreter available on the system.
Comments
0 comments
Please sign in to leave a comment.