Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i setup apache on amazon ec2 instance with ubuntu

i using the document root set to the /mnt/www/

i get these errors on the apache logs when any file is accessed.

[Fri Aug 12 12:26:46 2011] [error] [client xxxxxxx] File does not exist: /mnt
[Fri Aug 12 12:26:46 2011] [error] [client xxxxxxx] File does not exist: /mnt
[Fri Aug 12 12:26:47 2011] [error] [client xxxxxxx] File does not exist: /mnt

fstab file:
/dev/xvda2      /mnt    auto    defaults,nobootwait,comment=cloudconfig 0       2
/dev/xvda3      none    swap    sw,comment=cloudconfig  0       0

<VirtualHost *:80>

        # Indexes + Directory Root.
        DirectoryIndex index.php
        DocumentRoot /mnt/www/

        # CGI Directory
        ScriptAlias /cgi-bin/ /mnt/www/
        <Location /cgi-bin>
                Options +ExecCGI

        # Logfiles
        ErrorLog  /mnt/www/
        CustomLog /mnt/www/ combined

what could be the issue?

After further research

I fixed it myself, i had earlier enabled chroot module in apache config and after diabling it worked..

share|improve this question
Does /mnt actually exist? And have you checked permissions if it does? – Bart Silverstrim Aug 12 '11 at 12:33
it exists.. drwxr-xr-x 3 root root 4.0K 2011-08-12 12:18 mnt – krisdigitx Aug 12 '11 at 12:34
Please post your Apache configuration file? – quanta Aug 12 '11 at 12:45
up vote 0 down vote accepted

Based on your update, you might want to reenable chroot and update the VirtualHost entries so that they refer to the directory structure of the chroot environment.

share|improve this answer
cool will try... – krisdigitx Aug 13 '11 at 15:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.