[afnog] documentroot must be a directory

A.I.Fabian fabian at udsm.ac.tz
Mon May 14 04:18:14 UTC 2007


The DocumentRoot is a directive to show where you are putting your
document ......and this must be a directory....it seems in your
configurations you have gone beyond the directory....i think the last
along the line is just a file.

Usually the DocumentRoot is a the path towards where you put your pages.


It should be pretty EASY...just go through the steps slowly and make sure
that the DocumentRoot is something like /var/www which is a directory !
The DocumentRoot varies from distribution to distribution....of course one
can just decide to change the default placement of it.


Try it out..


hello everyone,
>
> i tried building a mail server.i've installed exim,apache and squirrel
> mail but when i edited this file
>
> /usr/local/etc/apache22/extra/httpd-vhosts.conf  to
>
> <VirtualHost *:80>
> ServerAdmin anaobii at unijos.edu.ng
> DocumentRoot /usr/local/www/squirrelmail
> ServerName mail.psite.unijos.edu.ng
> ErrorLog /var/log/mail-error_log
> CustomLog /var/log/mail-access_log common
>
>
>
> when i tried stopping apache to restart it using apachectl stop,it gives
> me this error message
>
> syntax error on line 35 of
> /usr/local/etc/apache22/extra/httpd-vhosts.conf:DocumentRoot must be a
> directory
> httpd (no pid file) not running.
>
> i've checked if i made any typos but all was well typed.
>
> what am i doing wrong?can someone pls help
>
>
> _______________________________________________
> afnog mailing list
> http://afnog.org/mailman/listinfo/afnog
>
>




More information about the afnog mailing list