Symptoms
Ea-nginx configuration rebuilds complete with an error similar to the following:
The following user related errors need attention:
User “user1”: Cpanel::Exception::FeatureNotEnabled=HASH(0x4e9e850)
User “user2”: Cpanel::Exception::FeatureNotEnabled=HASH(0x4e9e970)
When running a rebuild for a specific user, you may receive an error similar to the following instead:
[root@server ~]cP# /scripts/ea-nginx config user1
Setting up /etc/nginx/conf.d/users/user1.conf …
Processing user1 (/home/user1)
cPanel password protected directories …
cPanel redirects …
… done (user1).
Cpanel::Exception::FeatureNotEnabled/(XID uxnxtm) “PHP” is not installed on the system.
at /usr/local/cpanel/Cpanel/ProgLang/Supported/php.pm line 118.
Cpanel::ProgLang::Supported::php::new("Cpanel::ProgLang::Supported::php", "parent", Cpanel::ProgLang=HASH(0x506ba88)) called at /usr/local/cpanel/Cpanel/ProgLang.pm line 125
Cpanel::ProgLang::new("Cpanel::ProgLang", "type", "php") called at /scripts/ea-nginx line 1929
scripts::ea_nginx::_render_and_append(HASH(0x25c2ef0)) called at /scripts/ea-nginx line 1506
scripts::ea_nginx::_write_user_conf("user1", HASH(0x41043d8)) called at /scripts/ea-nginx line 361
scripts::ea_nginx::config(App::CmdDispatch=HASH(0x4114170), "user1") called at /usr/local/cpanel/3rdparty/perl/542/cpanel-lib/App/CmdDispatch/Table.pm line 42
App::CmdDispatch::Table::run(App::CmdDispatch::Table=HASH(0x41aec10), App::CmdDispatch=HASH(0x4114170), "config", "user1") called at /usr/local/cpanel/3rdparty/perl/542/cpanel-lib/App/CmdDispatch.pm line 59
eval {...} called at /usr/local/cpanel/3rdparty/perl/542/cpanel-lib/App/CmdDispatch.pm line 62
App::CmdDispatch::run(App::CmdDispatch=HASH(0x4114170), "config", "user1") called at /scripts/ea-nginx line 212
scripts::ea_nginx::run("config", "user1") called at /scripts/ea-nginx line 122
Description
These errors are returned when PHP is not installed on the server, resulting in incomplete user configurations in ea-nginx.
We've opened an internal case for our development team to investigate this further. For reference, the case number is CPANEL-50972. Follow this article to receive an email notification when a solution is published in the product.
Workaround
Install a PHP version using "WHM / EasyApache 4", then run the following script in SSH or "WHM / Terminal" to rebuild NGINX configurations for all users:
/scripts/ea-nginx config --all
To rebuild ea-nginx configuration for a specific user run the following instead, replacing the $USER placeholder with a cPanel username:
/scripts/ea-nginx config $USER