PHP httpd.conf error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A short while ago, I loaded PHP to my Apache setup in Mac OS Monterey.  

I have since learned that I have to get a certificate to make this work correctly.

I have successfully configured the certificate, but I’m getting an error that I cannot figure out:

Wed Dec 29 14:23:22.203112 2021] [so:notice] [pid 4404] AH06662: Allowing module loading process to continue for module at /usr/local/opt/php/lib/httpd/modules/libphp.so because module signature matches authority "James Coyle" specified in LoadModule directive
httpd: Syntax error on line 191 of /private/etc/apache2/httpd.conf: </FilesMatch> without matching <FilesMatch> section

This is the pertinent part of the httpd.conf file:

#PHP was deprecated in macOS 11 and removed from macOS 12
#LoadModule perl_module libexec/apache2/mod_perl.so
LoadModule hfs_apple_module libexec/apache2/mod_hfs_apple.so
LoadModule php_module /usr/local/opt/php/lib/httpd/modules/libphp.so "James Coyle"
</FilesMatch \.php$>
        SetHandler application/x-httpd-php
</FilesMatch> \.php$>
#<IfModule unixd_module>


Is this the <FilesMatch> section that is referred to, and if so, how do I need to edit it?

 The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.([Hh][Tt]|[Dd][Ss]_[Ss])">
    Require all denied
</FilesMatch>


Thanks for all help

Jim


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux