On Macbook M1Max.
Installed PHP5.6 by ‘shivammathur/php/[email protected]’ via Homebrew.
And set the module info on a configuration file(httpd.conf) of Apache.
LoadModule php5_module /opt/homebrew/opt/[email protected]/lib/httpd/modules/libphp5.so "apache2"
then passed apachectl syntax check that has no error.
$ apachectl configtest
[Fri Jan 14 19:48:05.352957 2022] [so:notice] [pid 5436] AH06662: Allowing module loading process to continue for module at /opt/homebrew/opt/[email protected]/lib/httpd/modules/libphp5.so because module signature matches authority "apache2" specified in LoadModule directive
Syntax OK
BUT, apache still occurred below errors.
[Fri Jan 14 19:50:25.774217 2022] [so:error] [pid 5534] /usr/bin/codesign failed; unable to obtain code signature for module
[Fri Jan 14 19:50:25.774243 2022] [so:error] [pid 5534] AH06663: Unable to find code signature authority on module at /opt/homebrew/opt/[email protected]/lib/httpd/modules/libphp5.so that matches authority name "apache2" configured on LoadModule directive.
httpd: Syntax error on line 190 of /private/etc/apache2/httpd.conf: Code signing error - not loading module at: /opt/homebrew/opt/[email protected]/lib/httpd/modules/libphp5.so
How can fix them?