就archlinux系统中apache 无法启动php的原因
背景,在archlinux里面想使用apache作为服务器启动php服务,根据Arch Wiki 的配置,并不成功
检验原因:
sudo systemctl status httpd
结果:
systemctl status apache systemd[1]: Started Apache Web Server httpd [1444]: httpd: Syntax error on line 542 of /etc/httpd/conf/httpd.conf: Cannot load modules/libphp7.so into server: /etc/ systemd[1]: httpd.service Main process exited, code=exited, status=1/FAILURE systemd[1]: httpd.service Failed with result 'exit-code'.
问题原因:
php库的名字变了,将archwiki里面让加的所有行,里面的php7都改成php就可以