Opened 4 years ago

Last modified 4 years ago

#61735 closed defect

php74-apachehandler -> when loading module mod_php in httpd.conf throws: Library not loaded: @rpath/libargon2.1.dylib — at Version 2

Reported by: elcheco (Miroslav Koula) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.6.4
Keywords: haspatch Cc: kurthindenburg (Kurt Hindenburg)
Port: php72 php73 php74 php80 argon2

Description (last modified by ryandesign (Ryan Carsten Schmidt))

I think it's maybe connected to today's update of php74/8.0

I updated 7.4 and installed 8.0 - as fpm - it works, but when I have one as module - it dies and before it worked.

❯ apachectl configtest

httpd: Syntax error on line 166 of /opt/local/etc/apache2/httpd.conf: Cannot load lib/apache2/modules/mod_php74.so into server: dlopen(/opt/local/lib/apache2/modules/mod_php74.so, 10): Library not loaded: @rpath/libargon2.1.dylib\n  Referenced from: /opt/local/lib/apache2/modules/mod_php74.so\n  Reason: image not found

If I comment the line in https.conf where the module is loaded, the issue is gone and apache works - so the PHP I can have only as fpm:

LoadModule php7_module lib/apache2/modules/mod_php74.so

Change History (2)

comment:1 Changed 4 years ago by elcheco (Miroslav Koula)

Description: modified (diff)

comment:2 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: kurthindenburg added
Description: modified (diff)
Keywords: php-apachehandler argon2 removed
Port: argon2 added
Status: assignedaccepted

Thanks for the report. I noticed that argon2 used @rpath and although I did not see the problem you saw the use of @rpath irritated me so I already submitted a fix to the developers of argon2 to stop using @rpath and they just approved it. I'll submit a MacPorts PR to get a patch added.

Note: See TracTickets for help on using tickets.