I installed apache 2.4.25 and php 7.1.4 from source code,everything seemed ok until I failed to start apache with a segmentation fault.
# /usr/local/apache/bin/apachectl start
/usr/local/apache/bin/apachectl: line 79: 23589 Segmentation fault $HTTPD -k $ARGV
# /usr/local/apache/bin/apachectl -k start
/usr/local/apache/bin/apachectl: line 79: 23592 Segmentation fault $HTTPD "$@"
the apachectl is like this from line 79:
case $ACMD in
start|stop|restart|graceful|graceful-stop)
$HTTPD -k $ARGV
ERROR=$?
;;
When apache was installed,it was able to start.After php was installed, the httpd.conf file was added with a line:
LoadModule php7_module modules/libphp7.so
then the apache failed to start.When I removed the line,it could start again.But then php could not work.Can anybody help me please?
By the way,before installing php,I had to configure php with "--disable-fileinfo" otherwise it would stop when making install.I thought something might be wrong with memory so I checked and made swap work correctly.But nothing changed.