A
A
Andrei St2021-04-07 12:49:29
linux
Andrei St, 2021-04-07 12:49:29

How to fix apache_get_modules() error?

I have a site running on regru on a simple php CGI web hosting during the installation of CMS in the admin panel, I get this error, what is it connected with and what do they eat?

Fatal error
: Uncaught Error: Call to undefined function apache_get_modules() in /var/www/123/data/www/localhost/application/views/admin/checksys/index.php:22 Stack trace: #0 /var/www/ 123/data/www/localhost/engine/main/load.php(19): include() #1 /var/www/123/data/www/localhost/application/controllers/admin/checksys/index.php(26 ): Load->view('admin/checksys/...', Array) #2 /var/www/123/data/www/localhost/engine/main/action.php(83): indexController->index( ) #3 /var/www/123/data/www/localhost/index.php(71): Action->go() #4 {main} thrown in
/var/www/123/data/www/localhost/application /views/admin/checksys/index.
22

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2021-07-11
@karabanov

The apache_get_modules( ) function only works if PHP is installed as an Apache module, not CGI.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question