Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Virtual Hosts Problem

Guest
Jul 01, 2010 Jul 01, 2010

Copy link to clipboard

Copied

Hi All,

I have been going through David Powers yet to be published book on Dreamwever CS5 with PHP, via the Creative Edge website and have got to the point of creating virtual hosts for my websites. I have added the lines below to httpd-vhosts.conf as stated in the book:

<Directory C:/vhosts>

Order Deny,Allow

Allow from all

</Directory>


and now Apache will not start (through XAMPP Control Panel).  If I remove these lines and Apache starts OK again. The Error Log contains the line:

"httpd.exe: Syntax error on line 484 of C:/xampp/apache/conf/httpd.conf: Syntax error on line 53 of C:/xampp/apache/conf/extra/httpd-vhosts.conf: </Directory> without matching <Directory> section"

I have tried a few things (including changing the C:/ to C:\) but to no effect. The exact same lines above are also in his previous book, Dreamweaver CS4 with CSS, Ajax and PHP, so it cannot be a typing error.

I am stuck, any ideas ?

I am using Windows 7 Home Premium 64-bit with XAMPP 1.7.3.

Cheers,

Alan Taylor

England

TOPICS
Server side applications

Views

479
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jul 03, 2010 Jul 03, 2010

Alan contacted me through the Rough Cuts feedback system. The problem was solved by reinstalling XAMPP, but the actual cause remains a mystery. I'm marking this thread as "assumed answered".

Votes

Translate
LEGEND ,
Jul 03, 2010 Jul 03, 2010

Copy link to clipboard

Copied

Alan contacted me through the Rough Cuts feedback system. The problem was solved by reinstalling XAMPP, but the actual cause remains a mystery. I'm marking this thread as "assumed answered".

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Aug 31, 2010 Aug 31, 2010

Copy link to clipboard

Copied

LATEST

I've spent two days having similar problems and found the advice/explanation in a comment from 'Basit' useful here if anyone else needs help. He recommends renaming the index.php and index.html files in xampp/htdocs. My page displayed fine in the browser after.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines