apache2 in ubuntu 12.10 basic configuration problems

I don’t know why am I getting a 404 error when I try to access to my site www.muisditee.com.

This is /etc/apache2/sites-available/default file, (as I enabled it, /etc/apache2/sites-enabled/default-000 is identical)

 <VirtualHost *:80>
            ServerAdmin admin@muisditee.com

            DocumentRoot /var/www/www.muisditee.com
            <Directory />
                    Options FollowSymLinks
                    AllowOverride None
            </Directory>
            <Directory /var/www/www.muisditee.com/>
                    Options Indexes FollowSymLinks MultiViews
                    AllowOverride None
                    Order allow,deny
                    allow from all
            </Directory>

            ErrorLog ${APACHE_LOG_DIR}/www.muisditee.com/error.log

            # Possible values include: debug, info, notice, warn, error, crit,
            # alert, emerg.
            LogLevel warn

            CustomLog ${APACHE_LOG_DIR}/www.muisditee.com/access.log combined
    </VirtualHost>

This is what I get with apache2ctl -S

/usr/sbin/apache2ctl: line 87: ulimit: open files: cannot modify limit: Operation not permitted
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80                   is a NameVirtualHost
         default server ns232323.mhostng.net (/etc/apache2/sites-enabled/000-default:1)
         port 80 namevhost ns232323.mhostng.net (/etc/apache2/sites-enabled/000-default:1)
Syntax OK

My site of course exists at /var/www/www.muisditee.com and I have an index.html file there.

Both http:// www.muisditee.com and http:// www.muisditee.com/index.html give a 404 error. Anyone can give me a clue of what’s wrong?

thank you

Answer

Well apache2ctl -S will not start your apache.
If you do not have any entry in your access log, this means your apache never every recived a request.
Probably because it wasnt running.
You should try to start your apache /etc/init.d/apache2 start and try it again.

Attribution
Source : Link , Question Author : de3 , Answer Author : Harrys Kavan

Leave a Comment