나는 달리고 있다아파치 2그리고PHP7존재하다우분투16.04. 하지만 그 외에도 나는 또한 설치했습니다PHP5.
설치 후PHP5나는 처형했다
sudo a2enmod php5.6
그런 다음 재부팅합니다.아파치 2그리고
sudo service apache2 restart
하지만아파치 2시작하지 않을 것이다.
실행한 후 systemctl status apache2.service
다음을 얻습니다.
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; generated; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: failed (Result: exit-code) since Wed 2016-10-19 20:07:51 BST; 6s ago
Docs: man:systemd-sysv-generator(8)
Process: 7656 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS
Process: 7748 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILU
Oct 19 20:07:51 tulik apache2[7748]: *
Oct 19 20:07:51 tulik apache2[7748]: * The apache2 configtest failed.
Oct 19 20:07:51 tulik apache2[7748]: Output of config test was:
Oct 19 20:07:51 tulik apache2[7748]: Segmentation fault (core dumped)
Oct 19 20:07:51 tulik apache2[7748]: Action 'configtest' failed.
Oct 19 20:07:51 tulik apache2[7748]: The Apache error log may have more informat
Oct 19 20:07:51 tulik systemd[1]: apache2.service: Control process exited, code=
Oct 19 20:07:51 tulik systemd[1]: Failed to start LSB: Apache2 web server.
Oct 19 20:07:51 tulik systemd[1]: apache2.service: Unit entered failed state.
Oct 19 20:07:51 tulik systemd[1]: apache2.service: Failed with result 'exit-code
답변1
문제는php7.0 모드를 비활성화하지 않았습니다.
나는 달리고 sudo a2dimod php7.0
이제 모든 것이 괜찮습니다.
이제 버전을 전환할 수 있습니다PHP 용이하게.