 |
 |
Apache not working, getting error
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Dec 2004
Location: In front of computer
Status:
Offline
|
|
Hi folks,
Not even sure if this is the right fourm for this, but I am trying to develop locally and seem to be having all sorts of problems getting apache to run. I have gone into "sharing" in the sysPrefs and checked "Personal Web Sharing", but it just sits there checked and grayed out with the message "web sharing starting up...."
I have also targeted "http://localhost/~myShortname/Sites/test.php" and get the "connection was refused when trying to contact localhost."
I typed the following into the terminal "sudo apachectl configtest" and I got the following result:
Syntax error on line 881 of /etc/httpd/httpd.conf:
Invalid command '?', perhaps mis-spelled or defined by a module not included in the server configuration
I must tell you embarassingly that I can't find that file. Do I have to cd my way to it?..
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Dec 1999
Location: Plainview, NY
Status:
Offline
|
|
1) you don't need to use sudo for config testing
2) yes, you either need to edit it on the command line or manually go to it. since you don't seem to be familiar with the command line do this:
- download BBEdit demo, or use TextEdit, making SURE that you are editing it as a plain text file (NOT RTF)
- in the Finder, use Go -> Go to Folder... and put in /etc/httpd
- edit httpd.conf's 881st line (probably the easiest thing would be to put a # at the beginning of the line to comment it out). post what it is here and perhaps we can figure out what is wrong with it
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Dec 2004
Location: In front of computer
Status:
Offline
|
|
spiky_dog,
thanks for your response. I found the file after following your helpful instructions and came up with this (I added other lines to put it into context, the error shows at 881):
872 # If you want to use server side includes, or CGI outside
873 # ScriptAliased directories, uncomment the following lines.
874 #
875 # To use CGI scripts:
876 #
877 #AddHandler cgi-script .cgi
878
879 #
880 # To use server-parsed HTML files
881 ‚ #
882 #AddType text/html .shtml
883 #AddHandler server-parsed .shtml
884
885 #
886 # Uncomment the following line to enable Apache's send-asis HTTP file
887 # feature
888 #
889 #AddHandler send-as-is asis
Could it be that comma that is throwing the whole thing off? I don't want to seem lazy, but I just don't want to play around with it without your advice out of fear of messing anything more up. Thanks for your help so far.
-i
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Nov 2004
Location: Stockholm, Sweden
Status:
Offline
|
|
Originally posted by iPhotoStuff:
881 ‚ #
yes, take that comma out, so it reads like this:
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Dec 2004
Location: In front of computer
Status:
Offline
|
|
Perfect! After deleting that I found another synatax error, deleted that, updated, up and running baby! Yeeeeeehaw!
Thanks to both of you for so much help.
-i
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|