segmentation fault #776
Replies: 2 comments 7 replies
-
| 
         I'm not sure why it would segfault for non-php files? But I would recommend using apache from brew instead of using system apache.  | 
  
Beta Was this translation helpful? Give feedback.
-
        
 How do you sign opcache.so ? I've been looking for some help and haven't been able to find any. Also, on my setup I found https://test/index.php works okay, but https://test/ give the segmentation fault (despite the fact that I have "DirectoryIndex index.php" entry in the apache vhosts conf file.  | 
  
Beta Was this translation helpful? Give feedback.








Uh oh!
There was an error while loading. Please reload this page.
-
macOS Monterey 12.0.1
Apache/2.4.48
PHP 8.1.2
httpd.conf:
LoadModule php_module /usr/local/opt/php/lib/httpd/modules/libphp.so "*******"
<FilesMatch ".php$">
SetHandler application/x-httpd-php
install works
signing for libphp.so works
error on apache startup:
Failed loading /usr/local/opt/php/lib/php/20210902/opcache.so: dlopen(/usr/local/opt/php/lib/php/20210902/opcache.so, 0x0009): tried: '/usr/local/opt/php/lib/php/20210902/opcache.so' (code signature in <30DBDF5F-9239-3595-AFEC-34F637BCE20F> '/usr/local/Cellar/php/8.1.2/lib/php/20210902/opcache.so' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/usr/lib/opcache.so' (no such file), '/usr/local/Cellar/php/8.1.2/lib/php/20210902/opcache.so' (code signature in <30DBDF5F-9239-3595-AFEC-34F637BCE20F> '/usr/local/Cellar/php/8.1.2/lib/php/20210902/opcache.so' not valid for use in process: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)), '/usr/lib/opcache.so' (no such file)
tried signing for opcache.so but doesn't work
commented out opcache in php/8.1/conf.d/ext-opcache.ini
apache starts up properly
but as long as php LoadModule is set, random "child pid ##### exit signal Segmentation fault (11)" occur for .html and .jpg files
php works but supporting .jpg, css, etc. files don't
Why would php handler interfere with non php files?
Beta Was this translation helpful? Give feedback.
All reactions