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/

おすすめ記事