Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/261.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Apache服务器不工作(ubuntu 16.04,lamp服务器)_Php_Apache_Lamp_Ubuntu 16.04 - Fatal编程技术网

Php Apache服务器不工作(ubuntu 16.04,lamp服务器)

Php Apache服务器不工作(ubuntu 16.04,lamp服务器),php,apache,lamp,ubuntu-16.04,Php,Apache,Lamp,Ubuntu 16.04,您的apache配置错误。检查并重新启动apache。我开始安装每个模块,但每次安装phpmyadmin和thn后,它都会给我这个错误,包括apache配置文件中的“include/etc/phpmyadmin/apache2.conf”。如果我尝试重新启动,它会给我一个错误欢迎堆栈溢出!请复习以改进您的问题。可能使用命令apache2ctl configtest会有所帮助……那么我该怎么办呢。我应该清除它并重新安装吗。我这样做了5次如果你的配置是错误的,它不会修复它重新安装。检查/etc/ap

您的apache配置错误。检查并重新启动apache。

我开始安装每个模块,但每次安装phpmyadmin和thn后,它都会给我这个错误,包括apache配置文件中的“include/etc/phpmyadmin/apache2.conf”。如果我尝试重新启动,它会给我一个错误欢迎堆栈溢出!请复习以改进您的问题。可能使用命令
apache2ctl configtest
会有所帮助……那么我该怎么办呢。我应该清除它并重新安装吗。我这样做了5次如果你的配置是错误的,它不会修复它重新安装。检查/etc/apache2中的apache配置,并查看
sudo /etc/init.d/apache2 restart
     [....] Restarting apache2 (via systemctl): apache2.serviceJob for    
     apache2.service failed because the control process exited with error   
     code. See "systemctl status apache2.service" and "journalctl -xe" for 
     details.
     failed!
     techadon@techadon-M68MT-D3:~$ sudo systemctl status apache2.service

apache2.service - LSB: Apache2 web server
     Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
     Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
     Active: failed (Result: exit-code) since Sat 2016-10-01 11:48:31 SAST;  
     1min 3
     Docs: man:systemd-sysv-generator(8)
     Process: 4128 ExecStop=/etc/init.d/apache2 stop (code=exited, 
     status=0/SUCCESS
     Process: 636 ExecReload=/etc/init.d/apache2 reload (code=exited, 
     status=0/SUCC
     Process: 4154 ExecStart=/etc/init.d/apache2 start (code=exited,   
     status=1/FAILU

Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]:  *
Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]:  * The apache2 configtest faile

Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]: Output of config test was:
Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]: apache2: Syntax error on line 2

Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]: Action 'configtest' failed.
Oct 01 11:48:31 techadon-M68MT-D3 apache2[4154]: The Apache error log may have m

Oct 01 11:48:31 techadon-M68MT-D3 systemd[1]: apache2.service: Control process e

Oct 01 11:48:31 techadon-M68MT-D3 systemd[1]: Failed to start LSB: Apache2 web s

Oct 01 11:48:31 techadon-M68MT-D3 systemd[1]: apache2.service: Unit entered fail

Oct 01 11:48:31 techadon-M68MT-D3 systemd[1]: apache2.service: Failed with resul
lines 1-20/20 (END)