Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Issue with DocumentRoot
Old 05-09-2010, 11:44 PM Issue with DocumentRoot
Junior Talker

Posts: 4
Name: Nicolai Guarino
Trades: 0
Hello.

I am sorry to be bothering you all with this, but I seem to have come across a small issue while installing my test server. I am running Windows Server 2003, with Apache 2.2, PHP 5, and MYSQL 5.1. While trying to configure all of this, I have found myself unable to restart Apache. I am given an error stating:
Code:
Syntax error on line 23 of C:/Server/Web/Apache/conf/extra/httpd-vhosts.conf:
DocumentRoot must be a directory
My httpd-vhosts.conf file is as such:
Code:
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
# —————————————–
#localhost
<VirtualHost *:80>
DocumentRoot “C:/Server/Web/htdocs”
ServerName localhost
<Directory “C:/Server/Web/htdocs”>
AllowOverride All
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
# —————————————–
#phpmyadmin.local
<VirtualHost *:80>
DocumentRoot “C:/Server/Web/htdocs/Admin/phpMyAdmin-3.3.2-english”
ServerName phpmyadmin.local
<Directory “C:/Server/Web/htdocs/Admin/phpMyAdmin-3.3.2-english”>
AllowOverride All
Options Indexes FollowSymLinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
# —————————————–
I have also verified that the directory(copied and pasted here from Windows Explorer) C:\Server\Web\htdocs exists.

I am unsure, at this point, how this issue would be solved. Any help would be greatly appreciated.

Thank you,
Nicolai Guarino.

Last edited by keineseele; 05-10-2010 at 07:15 PM..
keineseele is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-10-2010, 12:17 AM Re: Issue with DocumentRoot
Extreme Talker

Posts: 167
Name: Jilesh
Trades: 0
Kindly refer to below mentioned URL which might helps you to solve your issue:

http://www.webhostingtalk.com/archiv.../t-537581.html
__________________

Please login or register to view this content. Registration is FREE

ASP.NET 3.5 | SQL 2005 Database | US Based Hosting Company | 24 X 7 Support | Daily Backups
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
thewebhostingdi is offline
Reply With Quote
View Public Profile
 
Old 05-10-2010, 01:01 AM Re: Issue with DocumentRoot
Junior Talker

Posts: 4
Name: Nicolai Guarino
Trades: 0
I have found that thread before. I may just be missing something, but I cannot find anything there which will help. I am running it off of Windows Server, which does not have SELinux(the problem in the thread you posted), and permissions should not be an issue. I have also tried moving the DocumentRoot to another folder(updating the conf files, of course, to no avail.
keineseele is offline
Reply With Quote
View Public Profile
 
Old 05-10-2010, 07:17 AM Re: Issue with DocumentRoot
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,390
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
IIS and Apache CANNOT share port 80.

Change the "Listen port" for Apache to a different port in httpd.conf, 8080 is suggested. Or you can disable IIS.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-10-2010, 08:42 AM Re: Issue with DocumentRoot
Junior Talker

Posts: 4
Name: Nicolai Guarino
Trades: 0
I have already disabled and removed IIS. I had done this before I installed Apache, and Apache's successful install page showed up in my browser before I installed PHP/MySQL and edited the conf files.
keineseele is offline
Reply With Quote
View Public Profile
 
Old 05-10-2010, 09:08 AM Re: Issue with DocumentRoot
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,390
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
But does

DocumentRoot “C:/Server/Web/htdocs/Admin/phpMyAdmin-3.3.2-english”

exist?

that's the one that is throwing the error, as line 23 is the second closing </VirtualHost> statement
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-10-2010, 07:15 PM Re: Issue with DocumentRoot
Junior Talker

Posts: 4
Name: Nicolai Guarino
Trades: 0
Er, sorry. It seems I left some of the comments out. I will fix it immediately. But the error in the full file lands at DocumentRoot “C:/Server/Web/htdocs”. Here is a full listing of the directories.

Code:
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\>dir
 Volume in drive C has no label.
 Volume Serial Number is DC4E-38D9

 Directory of C:\

05/09/2010  03:54 PM                 0 AUTOEXEC.BAT
05/09/2010  04:38 PM    <DIR>          c7357518c46cf364b4f5ec3bfcfbd174
05/09/2010  03:54 PM                 0 CONFIG.SYS
05/09/2010  04:16 PM    <DIR>          Documents and Settings
05/09/2010  06:31 PM    <DIR>          FPSE_search
05/09/2010  06:20 PM    <DIR>          Inetpub
05/09/2010  07:39 PM    <DIR>          Program Files
05/09/2010  06:36 PM    <DIR>          Server
05/09/2010  07:17 PM    <DIR>          usr
05/10/2010  01:40 PM    <DIR>          WINDOWS
05/09/2010  04:05 PM    <DIR>          wmpub
               2 File(s)              0 bytes
               9 Dir(s)  35,748,552,704 bytes free

C:\>dir Server\Web\
 Volume in drive C has no label.
 Volume Serial Number is DC4E-38D9

 Directory of C:\Server\Web

05/09/2010  10:03 PM    <DIR>          .
05/09/2010  10:03 PM    <DIR>          ..
05/09/2010  06:39 PM    <DIR>          Apache
05/10/2010  05:40 AM    <DIR>          htdocs
05/09/2010  07:17 PM    <DIR>          PHP
               0 File(s)              0 bytes
               5 Dir(s)  35,748,552,704 bytes free

C:\>dir Server\Web\htdocs
 Volume in drive C has no label.
 Volume Serial Number is DC4E-38D9

 Directory of C:\Server\Web\htdocs

05/10/2010  05:40 AM    <DIR>          .
05/10/2010  05:40 AM    <DIR>          ..
05/09/2010  07:55 PM    <DIR>          Admin
05/10/2010  05:41 AM                28 index.php
               1 File(s)             28 bytes
               3 Dir(s)  35,748,552,704 bytes free

C:\>

Edit: Fixed vhosts script in first post to show full file

Last edited by keineseele; 05-10-2010 at 07:16 PM..
keineseele is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Issue with DocumentRoot
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26889 seconds with 12 queries