重新启动新安装的Apache2服务器时出错(Linux Mint)

时间:2022-10-05 18:44:32

I recently installed Apache2, which worked fine and I could restart it and everything. I then installed MySQL - With 0 Errors.

我最近安装了Apache2,它运行良好,我可以重新启动它和所有的东西。然后我安装了MySQL - 0错误。

When I installed phpmyadmin, I was told to add the following

当我安装phpmyadmin时,我被告知添加以下内容

> Include /etc/phpmyadmin/apache.conf

Just below this

下面这个

#Include the virtual host configurations:
/etc/apache2/sites-enabled/
/etc/phpmyadmin/apache.conf

But it seems to somehow have broken my script and im not quite sure on how to fix it

但是好像我的剧本出了问题,我不太确定该怎么修改

> 
> Syntax error on line 230 of /etc/apache2/apache2.conf: Invalid command
> '/etc/apache2/sites-enabled/', perhaps misspelled or defined by a
> module not included in the server configuration Action 'configtest'
> failed. The Apache error log may have more information.    ...fail!

1 个解决方案

#1


2  

You omitted the Include directive.

你省略了包含指令。

#Include the virtual host configurations:
Include /etc/apache2/sites-enabled/
Include /etc/phpmyadmin/apache.conf

#1


2  

You omitted the Include directive.

你省略了包含指令。

#Include the virtual host configurations:
Include /etc/apache2/sites-enabled/
Include /etc/phpmyadmin/apache.conf