Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/78.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
';sudo服务apache2启动';不';t在ubuntu18.04上工作_Ubuntu_Laravel 5 - Fatal编程技术网

';sudo服务apache2启动';不';t在ubuntu18.04上工作

';sudo服务apache2启动';不';t在ubuntu18.04上工作,ubuntu,laravel-5,Ubuntu,Laravel 5,我已经在我的ubuntu18.04上安装了laravel。 我制作了/etc/apache2/sites/laravel.conf文件 ServerName yourdomain.tld 服务器管理员webmaster@localhost DocumentRoot/var/www/html/your project/public 允许超越所有 ErrorLog${APACHE_LOG_DIR}/error.LOG CustomLog${APACHE\u LOG\u DIR}/access.L

我已经在我的ubuntu18.04上安装了laravel。 我制作了/etc/apache2/sites/laravel.conf文件


ServerName yourdomain.tld
服务器管理员webmaster@localhost
DocumentRoot/var/www/html/your project/public
允许超越所有
ErrorLog${APACHE_LOG_DIR}/error.LOG
CustomLog${APACHE\u LOG\u DIR}/access.LOG组合

按此链接一步一步地进行操作,您将获得解决方案。 只有当我们配置防火墙或未正确配置防火墙时,才会发生这种情况。
查看此

您是否尝试过
systemctl start apache2.service
?如果运行-->'apache2ctl configtest',您会得到什么结果?它将显示apache2.conf文件中要更正的错误在哪里。我最感兴趣的是地址已在使用错误。检查此问题的疑难解答。我打赌这与重复的
listen
有关,或者您已经运行了一个不同的服务。