Motamedi

Well-Known Member
Mar 14, 2015
81
0
6
Iran , Tehran
cPanel Access Level
Root Administrator
Hi,
I have problem with apache_get_modules function in php.
This function has not been disabled in the disable_function
PHP: apache_get_modules - Manual
When I want use this function in php, does not execute and this log is created:
PHP Fatal error: Call to undefined function apache_get_modules()

Please help me to fix this problem.
Thanks.
 

Motamedi

Well-Known Member
Mar 14, 2015
81
0
6
Iran , Tehran
cPanel Access Level
Root Administrator
apache_get_modules() is only available when the PHP is installed as a module which in case of cPanel, it is not afaik.
php is installed
i use easyapache 4 and php 5.4 - 7 but when run script , show this error to error log

PHP Fatal error: Call to undefined function apache_get_modules()

please help me for solve this problem

thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463