On Fri, Dec 21, 2018 at 4:58 PM Stuart Henderson <stu@spacehopper.org>
wrote:
> You'll find the sample Apache config in the php-apache packages.
>
> I think most people on OpenBSD are using web servers that use fastcgi (via
> php-fpm) such as nginx or the httpd in OpenBSD base. Typically most
> documentation in the ports tree is mainly aimed at these.
>
>
Thanks that tip got me there!
root $ pkg_info -Q php
...
php-5.6.38p0
php-7.0.32p1 (installed)
php-7.1.22 (installed)
php-7.2.10 (installed)
php-apache-5.6.38
php-apache-7.0.32p1
php-apache-7.1.22
php-apache-7.2.10
...
root $ pkg_add php-apache-7.2.10
root $ ln -sf /var/www/conf/modules.sample/php-7.2.conf
/var/www/conf/modules/php.conf
root $ apachectl restart
[Fri Dec 21 17:13:15.759810 2018] [php7:crit] [pid 9864:tid 17193615307040]
Apache is running a threaded MPM, but your PHP Module is not compiled to be
threadsafe. You need to recompile PHP.
AH00013: Pre-configuration failed
# edited the apache httpd.conf to swap these two; comment the first and
uncomment the second:
#LoadModule mpm_event_module /usr/local/lib/apache2/mod_mpm_event.so
LoadModule mpm_prefork_module /usr/local/lib/apache2/mod_mpm_prefork.so
apache started and nagios runs.
Thanks!
Mike
No comments:
Post a Comment