Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Cannot turn on Web Sharing due to invalid command in .conf file

I am new to Apache. I got this error when checked Web Sharing box:


7/19/12 11:45:19.808 PM org.apache.httpd: Invalid command 'chen84/Sites/"', perhaps misspelled or defined by a module not included in the server configuration

7/19/12 11:45:19.822 PM com.apple.launchd: (org.apache.httpd[25174]) Exited with code: 1

7/19/12 11:45:19.822 PM com.apple.launchd: (org.apache.httpd) Throttling respawn: Will start in 10 seconds

7/19/12 11:45:29.855 PM org.apache.httpd: Syntax error on line 1 of /private/etc/apache2/users/chen84.conf:


.conf looks likes this:


chen84/Sites/">

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all


Is this file missing something?

MacBook Pro (13-inch Early 2011), Mac OS X (10.7.4)

Posted on Jul 19, 2012 8:49 PM

Reply
Question marked as Best reply

Posted on Jul 19, 2012 9:33 PM

I answered my own question. I have no idea how .conf came to be broken. Apache starts successfully after I made this modification:


<Directory "/Users/chen84/Sites/">

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all

</Directory>


and changed Computer Name to chen84.local

1 reply
Question marked as Best reply

Jul 19, 2012 9:33 PM in response to Pippi10

I answered my own question. I have no idea how .conf came to be broken. Apache starts successfully after I made this modification:


<Directory "/Users/chen84/Sites/">

Options Indexes MultiViews

AllowOverride None

Order allow,deny

Allow from all

</Directory>


and changed Computer Name to chen84.local

Cannot turn on Web Sharing due to invalid command in .conf file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.