Re: checking my httpd.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 14, 2012 at 12:47 PM, Yehuda Katz <yehuda@xxxxxxxxxx> wrote:
On Tue, Feb 14, 2012 at 12:44 PM, florent larose <florent.larose@xxxxxxxxxxx> wrote:
Well,
I try to check my httpd.conf file with the command:
Apache -t
Now i obtain the following error message :
"syntax error on line 961 of c:\wamp\bin\apache\apache2.0.63\conf\httpd.conf -- it is my httpd.conf path
: DocumentRoot takes one argument, Root directory of the document tree"

What does it mean ? what must I do ?
Thanks for your help.

What does that line in httpd.conf actually say? (Hint: use a program like Notepad++ that has a Go-To-Line-Number___ feature.)

If I had to guess, your DocumentRoot has a space in it, so you need to make sure the whole thing is in quotes.

Forget the guess, my anti-virus had removed your original attachment because it had a "Unknown Type". 
Usually on Windows, you convert the backslashes to forward slashes and put the whole thing in quotes:

<VirtualHost 127.0.0.1>
    ServerName quickstart.local
DocumentRoot "C:/Program Files/Zend/ZendFramework-1.11.11/quick/public"
SetEnv APPLICATION_ENV "development"
<Directory 
"C:/Program Files/Zend/ZendFramework-1.11.11/quick/public" >
DirectoryIndex index.php
AllowOverride All
Order allow, deny
Allow from All
</Directory>
</VirtualHost>

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux