I can see PHP warnings in the apache log:

PHP Warning:  PHP Startup: Unable to load dynamic library 'gettext.so' 
(tried: /usr/local/lib/php/20180731/gettext.so (C
annot open "/usr/local/lib/php/20180731/gettext.so"), 
/usr/local/lib/php/20180731/gettext.so.so (Cannot open &
quot;/usr/local/lib/php/20180731/gettext.so.so")) in Unknown on line 0
[more of above for all installed php modules]

When checking directories I find: 

root@bareos:/usr/local/lib/php # ll
total 27
drwxr-xr-x  2 root  wheel  24 Oct  1 23:10 20170718/
drwxr-xr-x  2 root  wheel  14 Oct  1 23:03 build/

php.conf reads:

root@bareos:/usr/local/etc # cat php.conf
PHP_VER=72
PHP_VERSION=7.2.22
PHP_SAPI=cli cgi fpm embed
PHP_EXT_INC=pcre spl
PHP_EXT_DIR=20170718
so I am wondering where the apache libphp7.so sources the module dir. I 
have two PHP shared libraries in the system:

root@bareos:/usr/local # find . -name libphp7.so -ls
122233     5165 -rw-r--r--    1 root wheel 4921120 Sep 27 00:03 
./libexec/apache24/libphp7.so
139772     5689 -rwxr-xr-x    1 root wheel 5520136 Sep  7 03:12 
./lib/libphp7.so

The other instance seems to be incompatible with apache24. When I change 
httpd.conf to

# LoadModule php7_module        libexec/apache24/libphp7.so
LoadModule php7_module        lib/libphp7.so

I get an error in the apache24 log and it refuses to start.

Performing sanity check on apache24 configuration:
httpd: Syntax error on line 182 of /usr/local/etc/apache24/httpd.conf: 
Can't locate API module structure `php7_module' in file 
/usr/local/lib/libphp7.so: Undefined symbol "php7_module"

This seems to be an apache24/php FreeBSD 11.2 issue, but it also draws 
bareos into oblivion.

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/e4da8702-c441-4021-aa8c-f60f89fd037b%40googlegroups.com.

Reply via email to