【问题标题】:My apache server is running but when I go to webpage it says network connection timed out我的 apache 服务器正在运行,但是当我进入网页时,它说网络连接超时
【发布时间】:2018-12-23 11:01:38
【问题描述】:

我在树莓派上使用 LAMP 服务器,而我的 apache 服务器已停止显示网站(页面)。

我已经尝试重新启动服务器和我的整个 Pi 它是 rasperry pi 3 和 apache 版本是 2.0 灯服务器的其他组件正在工作

我在终端输入了这个命令

sudo apache2

它给了我这个:

[Sun Dec 23 10:38:11.948939 2018] [core:warn] [pid 2061] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot

【问题讨论】:

    标签: apache raspberry-pi apache2


    【解决方案1】:

    您必须使用它的服务启动它,而不是直接使用它的可执行文件。

    sudo systemctl start apache2
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-07-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-06-12
      • 2017-10-04
      相关资源
      最近更新 更多