'<"C:/Program> was not closed' in httpd.conf

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • coaxfiber
    New Member
    • Mar 2007
    • 60

    '<"C:/Program> was not closed' in httpd.conf

    Hi guys, my problem is when I installing the Apache v2.2.4 as my local server to run my php, and then run the test configuration, it tells me this error:

    httpd.exe: Syntax error on line 152 of C:/Program Files/Apache Software Foundati
    on/Apache2.2/conf/httpd.conf: C:/Program Files/Apache Software Foundation/Apache
    2.2/conf/httpd.conf:152: <"C:/Program> was not closed.
    Note the errors or messages above, and press the <ESC> key to exit. 27...

    the current text written at line 152 of this file is:

    <"C:\Program Files\Apache Software Foundation\Apac he2.2\htdocs">

    Please help.thanks

    BR,
    coaxfiber
  • mwasif
    Recognized Expert Contributor
    • Jul 2006
    • 802

    #2
    It seems that Apache having trouble with space in "Program Files". Specify another webroot directory which should not contain any space in path e.g.

    c:\webroot

    Comment

    • pbmods
      Recognized Expert Expert
      • Apr 2007
      • 5821

      #3
      Changed title to better reflect contents.

      Moving to the Apache forum....

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        Try changing the line to one of the following:
        <"C:/Program\ Files/Apache Software Foundation/Apache2.2/htdocs">
        <"C:\Progra~1\A pache Software Foundation\Apac he2.2\htdocs">

        What installer did you use for setting up Apache?

        Comment

        • coaxfiber
          New Member
          • Mar 2007
          • 60

          #5
          Originally posted by Motoma
          Try changing the line to one of the following:
          <"C:/Program\ Files/Apache Software Foundation/Apache2.2/htdocs">
          <"C:\Progra~1\A pache Software Foundation\Apac he2.2\htdocs">

          What installer did you use for setting up Apache?

          I used XAMPP that works fine just now.

          But before I tried tried to used the PHP & APACHE - .msi installer.

          Comment

          Working...