无法运行 roundcube

无法运行 roundcube

我在 Ubuntu 14.04 中安装了 LAMP 和 web 界面 roundcube 但 apache 没有运行,当我输入 $sudo a2ensite roundcube apache2 don't run apache 时出现:

/etc/apache2/sites-available# service apache2 reload
 * Reloading web server apache2                                                  *
 * The apache2 configtest failed. Not doing anything.
Output of config test was:
(2)No such file or directory: AH02291: Cannot access directory '/var/log/apache2/webmail.example.com/' for error log of vhost defined at /etc/apache2/sites-enabled/webmail.tut.tj.conf:19
AH00014: Configuration check failed
Action 'configtest' failed.
The Apache error log may have more information.

答案1

看起来您在配置中定义了一个日志目录,但该目录实际上并不存在。

请尝试以下操作:

mkdir -p /var/log/apache2/webmail.example.com/
chown apache:apache /var/log/apache2/webmail.example.com/

相关内容