CloudLinux Wizard: TypeError: ''NoneType'' object is not iterable

Issue

Setelah menginstal CloudLinux dan cPanel, saat akan menjalankan wizard muncul error seperti berikut.

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

Hal tersebut karena pada server cPanel belum terinstall versi PHP (ea-php) apapun sehingga perlu diinstall terlebih dahulu. Contohnya untuk menginstall ea-php80

yum install ea-php80