Bug 250652

Summary: www/mod_php80 LINKTHR build breaks apache
Product: Ports & Packages Reporter: Jack <xxjack12xx>
Component: Individual Port(s)Assignee: Torsten Zuehlsdorff <tz>
Status: New ---    
Severity: Affects Some People Flags: bugzilla: maintainer-feedback? (tz)
Priority: ---    
Version: Latest   
Hardware: amd64   
OS: Any   

Description Jack 2020-10-26 20:17:34 UTC
When mod_php80 is built with LINKTHR, apache fails to load libphp.so with the following error

httpd: Syntax error on line 152 of /usr/local/etc/apache24/httpd.conf: Cannot load libexec/apache24/libphp.so into server: /usr/local/libexec/apache24/libphp.so: No space available for static Thread Local Storage
Comment 1 Torsten Zuehlsdorff freebsd_committer 2020-10-26 21:57:25 UTC
Hi Jack,

this seems to be a reoccurring problem, but its not really a PHP bug.

A common solutions seems to be:
* Use Apache with MPM_PREFORK mode
* Turn off LINKTHR and ZTS

I stopped using Apache years ago in favor of nginx. So i can't really help with this one.