Skip to content
Advertisement

Not loading ‘libphp5’ module with CA on apache2.4.51

On Macbook M1Max.
Installed PHP5.6 by ‘shivammathur/php/php@5.6’ via Homebrew.
And set the module info on a configuration file(httpd.conf) of Apache.

JavaScript

then passed apachectl syntax check that has no error.

JavaScript

BUT, apache still occurred below errors.

JavaScript

How can fix them?

Advertisement

Answer

Please use httpd package from Homebrew instead of system Apache as that requires code signing.

  • Unload the system Apache
JavaScript
  • Make sure httpd is installed using brew
JavaScript
  • Then you can configure httpd to run PHP using /opt/homebrew/etc/httpd/httpd.conf config file.

  • Once done, restart httpd and it should work.

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement