Re: OS Monterey Apache and Homebrew PHP 8.1
Nadine Fisch <[email protected]> Fri, 17 Feb 2023 03:55:49 -0800 (PST)
| Newsgroups | alt.apache.configuration |
|---|---|
| Message-ID | <[email protected]> |
Hey Jamie,=20 did you solve this problem ? I am currently working with the same issue. I'= ve already created a certifcate before with php8, then I installed a lower = version and assigned the lower version to the new php path... the code has = been signed, but the symbol is not found JamieCoy schrieb am Montag, 28. M=C3=A4rz 2022 um 22:29:20 UTC+2: > I am trying to use PHP 8.1 (from a Homebrew installation) on Mac OS Monte= rey alongside the built-in version of Apache 2.0=20 >=20 > I understand the PHP module has to be codesigned and I=E2=80=99ve done th= at. Unless I=E2=80=99ve misunderstood, the name of the certificate needs to= be added at the end of the LoadModule command in httpd.conf. Hence, I have= entered it this way with James being the name of the certificate:=20 >=20 > LoadModule libphp.so /usr/local/opt/[email protected]/lib/httpd/modules/libphp.so J= ames=20 >=20 >=20 > <FilesMatch \.php$>=20 > SetHandler application/x-httpd-php=20 > </FilesMatch>=20 >=20 > When I run apacheconfig, I get this error:=20 >=20 >=20 > Mon Mar 28 12:57:45.226774 2022] [so:notice] [pid 52143] AH06662: Allowin= g module loading process to continue for module at /usr/local/opt/[email protected]/l= ib/httpd/modules/libphp.so because module signature matches authority "Jame= s" specified in LoadModule directive=20 > httpd: Syntax error on line 191 of /private/etc/apache2/httpd.conf: Can't= locate API module structure `libphp.so' in file /usr/local/opt/[email protected]/lib= /httpd/modules/libphp.so: dlsym(0x20392b0a0, libphp.so): symbol not found= =20 >=20 > The "dlysym" error is associate with my putting the name of the code sign= ing certificate named James at the end of the module.=20 >=20 > What am I doing wrong here? I have a feeling it=E2=80=99s something fairl= y simple.=20 >=20 > Thank you