Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    oo_mac_oo
    Guest
    apache server
    my apache server can't start


    Failed to start apache :
    Syntax error on line 1044 of /etc/httpd/httpd.conf:
    without matching section
    /usr/sbin/apachectl start: httpd could not be started

    :mad: :mad: :mad:

  2. #2
    apache server (httpd.conf error)
    Emrys's Avatar
    Member Since
    Oct 27, 2002
    Location
    Vermont
    Posts
    1,345
    Specs:
    17" iMac G4 800MHz 1GB RAM
    Whats on line 1044 of /etc/httpd/httpd.conf?

    Cut and paste that line here....
    Emrys
    Community Administrator / Moderator
    MAC-FORUMS.COM - The Ultimate Source For Your Mac!

  3. #3
    oo_mac_oo
    Guest
    ### Section 3: Virtual Hosts
    #
    # VirtualHost: If you want to maintain multiple domains/hostnames on your
    # 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://www.apache.org/docs/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 limmac.myftp.org
    #
    # VirtualHost example:
    # Almost any Apache directive may go into a VirtualHost container.
    # The first VirtualHost section is used for requests without a known
    # server name.
    #
    #<VirtualHost limmac.myftp.org>

    ### WWW ###

    # primary domain name for this virtual host

    ServerAdmin tongkew1@streamyx.com
    ServerName limmac.myftp.org
    ErrorLog /Library/WebServer/limmac.myftp.org-error_log
    TransferLog /Library/WebServer/limmac.myftp.org-access_log

    ### FTP ###

    ErrorLog /Library/ftp/error_log
    TransferLog /Library/ftp/access_log
    </VirtualHost>

    Include /private/etc/httpd/users


    # begin entropy.ch PHP module activation
    Include /usr/local/php/httpd.conf.php
    # end entropy.ch PHP module activation

    # begin entropy.ch PHP module activation
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    NameVirtualHost 10.0.88.2
    DocumentRoot /Library/WebServer/Documents
    User www
    Group www
    Options ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch
    # end entropy.ch PHP module activation

  4. #4
    oo_mac_oo
    Guest
    I have just alter section 3....

  5. #5
    apache server (httpd.conf error)
    Murlyn's Avatar
    Member Since
    Jun 11, 2003
    Location
    Mount Vernon, WA
    Posts
    4,915
    Specs:
    MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
    Are you still having problems with this? And which line was 1044?

  6. #6
    oo_mac_oo
    Guest
    Quote Originally Posted by Murlyn
    Are you still having problems with this? And which line was 1044?
    I have count only have 965 line....
    line 1044 ??? :confused: :confused: :confused:

  7. #7
    apache server (httpd.conf error)
    Emrys's Avatar
    Member Since
    Oct 27, 2002
    Location
    Vermont
    Posts
    1,345
    Specs:
    17" iMac G4 800MHz 1GB RAM
    There isn't a line 1044? That is weird. Out of what you have posted, I don't see anything wrong. Attach the whole httpd.conf file. Either compress it or add the extension .txt so you can attach it. Upload the WHOLE thing, not just a cut and paste, and I will take a look at it....
    Emrys
    Community Administrator / Moderator
    MAC-FORUMS.COM - The Ultimate Source For Your Mac!

  8. #8
    apache server (httpd.conf error)
    rman's Avatar
    Member Since
    Dec 24, 2002
    Location
    Los Angeles, California
    Posts
    12,584
    Specs:
    2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi
    Cool
    Normally when the count exceeds the length fo the file. The error caused the compiler to lose sync (count) of the number of lines. In most cases the eror is something simple and near the end of the file.

    That is what I have seen working with most programming languages.

  9. #9
    apache server (httpd.conf error)
    Murlyn's Avatar
    Member Since
    Jun 11, 2003
    Location
    Mount Vernon, WA
    Posts
    4,915
    Specs:
    MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
    Yep exactly and like Emry's I was going to say attatch the whole file for us to look at. We'll get you up and going!

  10. #10
    gatorparrots
    Guest
    Have you tried issuing this command:
    /usr/sbin/apachectl configtest

  11. #11
    oo_mac_oo
    Guest
    Quote Originally Posted by Murlyn
    Yep exactly and like Emry's I was going to say attatch the whole file for us to look at. We'll get you up and going!

    I will the file when I at home ....

  12. #12
    oo_mac_oo
    Guest
    I will the attach the file when I at home ....

  13. #13
    oo_mac_oo
    Guest
    Quote Originally Posted by gatorparrots
    Have you tried issuing this command:
    /usr/sbin/apachectl configtest

    Syntax error on line 1044 of /etc/httpd/httpd.conf:
    </VirtualHost> without matching <VirtualHost> section

    attach httpd.txt
    Attached Files Attached Files

  14. #14
    apache server (httpd.conf error)
    Murlyn's Avatar
    Member Since
    Jun 11, 2003
    Location
    Mount Vernon, WA
    Posts
    4,915
    Specs:
    MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2
    You need to uncomment line 1029:

    #<VirtualHost limmac.myftp.org>

    so that it looks like this:

    <VirtualHost limmac.myftp.org>

    Cheers!

  15. #15
    apache server (httpd.conf error)
    Emrys's Avatar
    Member Since
    Oct 27, 2002
    Location
    Vermont
    Posts
    1,345
    Specs:
    17" iMac G4 800MHz 1GB RAM
    Yup, that looks like the culprit...
    Emrys
    Community Administrator / Moderator
    MAC-FORUMS.COM - The Ultimate Source For Your Mac!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. httpd.conf file wrecked
    By Crispijn in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 02-02-2010, 08:51 AM
  2. IT help....ASP on Linux Apache Server?
    By jotdess in forum Web Design and Hosting
    Replies: 1
    Last Post: 09-10-2007, 04:18 PM
  3. iWeb and Apache server
    By Nadlib in forum Web Design and Hosting
    Replies: 2
    Last Post: 07-10-2006, 04:59 AM
  4. Tiger server / Apache
    By qbert1 in forum OS X - Operating System
    Replies: 0
    Last Post: 09-30-2005, 01:44 PM
  5. httpd.conf problems
    By jonners in forum OS X - Development and Darwin
    Replies: 3
    Last Post: 04-07-2004, 06:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •