Symptoms:
When attempting to change the PHP handlers or assign a new PHP handler to the PHP installations on your server, the action might fail with either of the following error messages:
Error: API failure: (XID myraz7) Provide the “type” parameter for the “Cpanel::WebServer::Supported::apache::make_handler” function.
Cpanel::Exception::MissingParameter/(XID hbj5v6) Provide the “type” parameter for the “Cpanel::WebServer::Supported::apache::make_handler” function.
Description:
This usually suggests that there might be something wrong with Yum's configuration. In this case, Yum's main configuration file turns out to be empty:
cat /etc/yum.conf
~
Workaround:
You need to repopulate that file with some content. The following is the default content that can be safely used for yum's configuration to ensure that EasyAapche is functional again:
cat /etc/yum.conf | grep -Eiv "(^#.*|^$)"
[main]
exclude=courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* nsd* p0f php* proftpd* pure-ftpd* spamassassin*
tolerant=1
errorlevel=1
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release