5acc30bdc2
- php modules while build with system pcre fails to run when using apache httpd and mod_php. So OPTIONIZE and add as a non-DEFAULT option. However to my knowledge and experience I haven't faced this with nginx and php-fpm yet. [1] - There is another corner case with apache httpd and mod_php when run on 13.2-RELEASE or newer specially on versions where ASLR is by default turned on. All modules specialy opcache crashes httpd. So add a warning message to advise users to move into php-fpm. [2] Thanks to brnrd@ for the patch. [2] PR: 275522 [1], 268318 [2] Reported by: majo-bugs.freebsd.org@cerny.sk [1], zarychtam@plan-b.pwste.edu.pl [2]
24 lines
894 B
Modula-2
24 lines
894 B
Modula-2
******************************************************************************
|
|
|
|
Consider switching to php-fpm and mod_fast_cgi as per Apache httpd project
|
|
recommendation. See https://cwiki.apache.org/confluence/display/HTTPD/PHP-FPM
|
|
|
|
******************************************************************************
|
|
|
|
If you are building PHP-based ports in poudriere(8) or Synth with ZTS enabled,
|
|
add WITH_MPM=event to /etc/make.conf to prevent build failures.
|
|
|
|
******************************************************************************
|
|
|
|
Make sure index.php is part of your DirectoryIndex.
|
|
|
|
You should add the following to your Apache configuration file:
|
|
|
|
<FilesMatch "\.php$">
|
|
SetHandler application/x-httpd-php
|
|
</FilesMatch>
|
|
<FilesMatch "\.phps$">
|
|
SetHandler application/x-httpd-php-source
|
|
</FilesMatch>
|
|
|
|
******************************************************************************
|