Hi.
I'm heading a strange problem.
I need to use RewriteMap with MYSQL.
So i have enabled mod_dbd and installed devel/apr1 from ports with MYSQL enabled.
Everything is installed from packages, except the APR1 because of MYSQL.
Now the strange is coming.
Generally the config is working, but graceful restart causes the apache to crash, and prevent it from starting again.
I have narrowed this issue to one line, so
When i add this particular line to one of my vhosts (it's used only once in one place):
So it's not possible to start apache again. It instantly crashes silently with coredump.
The solution is to comment the line:
Then apache is able to start again.
Some system info:
Any idea ?
Thanks.
I'm heading a strange problem.
I need to use RewriteMap with MYSQL.
So i have enabled mod_dbd and installed devel/apr1 from ports with MYSQL enabled.
Everything is installed from packages, except the APR1 because of MYSQL.
Now the strange is coming.
Generally the config is working, but graceful restart causes the apache to crash, and prevent it from starting again.
I have narrowed this issue to one line, so
When i add this particular line to one of my vhosts (it's used only once in one place):
Apache config:
DBDriver mysql
root@browar: /usr/ports/devel/apr1 # apachectl status ; apachectl graceful ; sleep 1 ; apachectl status
apache24 is running as pid 59683.
Performing sanity check on apache24 configuration:
Syntax OK
Performing a graceful restart
apache24 is running as pid 59683.
root@browar: /usr/ports/devel/apr1 # apachectl status ; apachectl graceful ; sleep 1 ; apachectl status
apache24 is running as pid 59683.
Performing sanity check on apache24 configuration:
Syntax OK
Performing a graceful restart
apache24 is not running.
root@browar: /usr/ports/devel/apr1 # apachectl start
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.
root@browar: /usr/ports/devel/apr1 # apachectl status
apache24 is not running.
So it's not possible to start apache again. It instantly crashes silently with coredump.
The solution is to comment the line:
Apache config:
# DBDriver mysql
Then apache is able to start again.
root@browar: /usr/ports/devel/apr1 # apachectl start
Performing sanity check on apache24 configuration:
Syntax OK
Starting apache24.
root@browar: /usr/ports/devel/apr1 # apachectl status
apache24 is running as pid 63347.
Some system info:
root@browar: /usr/ports/devel/apr1 # uname -a
FreeBSD browar.ITit.dk 11.3-RELEASE-p7 FreeBSD 11.3-RELEASE-p7 #0: Tue Mar 17 08:32:23 UTC 2020 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
root@browar: /usr/ports/devel/apr1 # pkg info apr apache24 mysql57-server
apr-1.7.0.1.6.1_1
apache24-2.4.43
mysql57-server-5.7.29_1
Any idea ?
Thanks.