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

SYNTAX ERROR:

AH00526: Syntax error on line 198 of /private/etc/apache2/httpd.conf:


Invalid command 'The', perhaps misspelled or defined by a module not included in the server configuration



MacBook Pro 13", 10.13

Posted on Feb 18, 2019 12:05 PM

Reply
2 replies
Sort By: 

Feb 18, 2019 12:21 PM in response to prophet84

So have a look at line 198 of /private/etc/apache2/httpd.conf.


That line of that file or maybe an adjacent line very likely contains a syntax error, and probably an error involving the word “The” being present in the configuration file in a place where it should not be.


Maybe a comment character was clobbered?


Use a command-line editor after launching Terminal.app to get to the command line, or use the (free) subset BBEdit (formerly TextWrangler) GUI text editor if you are not yet familiar with the available command-line editors in macOS including emacs, vim, and pico/nano.


The pico/nano editor is the least complex of these three command-line editors. The command to invoke the editor:


nano /private/etc/apache2/httpd.conf


Microsoft Word, iWork Pages, and most other GUI-based editors cannot be used with these configuration files. Some of these tools might read the file, but most of these will write RTF or some other format, and that clobber the files when saving the changes.


A web search engine will also turn up various discussions of syntax errors in Apache configuration files. It’s not an uncommon situation, though how each particular possible error might have found its way into the configuration file does vary.

Reply

SYNTAX ERROR:

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