New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

apache server (httpd.conf error)


Post Reply New Thread Subscribe

 
Thread Tools
oo_mac_oo
Guest
 
Posts: n/a

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:
QUOTE Thanks
Emrys

 
Emrys's Avatar
 
Member Since: Oct 27, 2002
Location: Vermont
Posts: 1,345
Emrys is on a distinguished road
Mac Specs: 17" iMac G4 800MHz 1GB RAM

Emrys is offline
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!
QUOTE Thanks
oo_mac_oo
Guest
 
Posts: n/a

### 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
QUOTE Thanks
oo_mac_oo
Guest
 
Posts: n/a

I have just alter section 3....
QUOTE Thanks
Murlyn

 
Murlyn's Avatar
 
Member Since: Jun 11, 2003
Location: Mount Vernon, WA
Posts: 4,909
Murlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to all
Mac Specs: MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2

Murlyn is offline
Are you still having problems with this? And which line was 1044?
QUOTE Thanks
oo_mac_oo
Guest
 
Posts: n/a

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:
QUOTE Thanks
Emrys

 
Emrys's Avatar
 
Member Since: Oct 27, 2002
Location: Vermont
Posts: 1,345
Emrys is on a distinguished road
Mac Specs: 17" iMac G4 800MHz 1GB RAM

Emrys is offline
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!
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,589
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac 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

rman is offline
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.
QUOTE Thanks
Murlyn

 
Murlyn's Avatar
 
Member Since: Jun 11, 2003
Location: Mount Vernon, WA
Posts: 4,909
Murlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to all
Mac Specs: MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2

Murlyn is offline
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!
QUOTE Thanks
gatorparrots
Guest
 
Posts: n/a

Have you tried issuing this command:
/usr/sbin/apachectl configtest
QUOTE Thanks
oo_mac_oo
Guest
 
Posts: n/a

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 ....
QUOTE Thanks
oo_mac_oo
Guest
 
Posts: n/a

I will the attach the file when I at home ....
QUOTE Thanks
oo_mac_oo
Guest
 
Posts: n/a

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
File Type: txt httpd.txt (36.0 KB, 2 views)
QUOTE Thanks
Murlyn

 
Murlyn's Avatar
 
Member Since: Jun 11, 2003
Location: Mount Vernon, WA
Posts: 4,909
Murlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to allMurlyn is a name known to all
Mac Specs: MacBook Pro 2.6 GHz Core 2 Duo 4GB RAM OS 10.5.2

Murlyn is offline
You need to uncomment line 1029:

#<VirtualHost limmac.myftp.org>

so that it looks like this:

<VirtualHost limmac.myftp.org>

Cheers!
QUOTE Thanks
Emrys

 
Emrys's Avatar
 
Member Since: Oct 27, 2002
Location: Vermont
Posts: 1,345
Emrys is on a distinguished road
Mac Specs: 17" iMac G4 800MHz 1GB RAM

Emrys is offline
Yup, that looks like the culprit...

Emrys
Community Administrator / Moderator
MAC-FORUMS.COM - The Ultimate Source For Your Mac!
QUOTE Thanks

Post Reply New Thread Subscribe


« webserver & ftpserver | Project Builder Questions »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
error code -8895 creamz Other Hardware and Peripherals 0 09-26-2003 08:34 AM
Server Issues - 8.01.2003 Emrys News and Community Announcements 4 08-01-2003 11:49 PM
Error Code -43 Emrys OS X - Operating System 3 03-03-2003 07:32 PM

All times are GMT -4. The time now is 10:17 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?