Centova Technologies Inc.

Products and Services

Centova Cast
Customer Support
Centova Technologies
 

Knowledge Base | Faq | IPanel

Apache error: Invalid command 'LayoutMerge'

Question:

Q: After installing mod_layout on Apache 2.0 or 2.2 and restarting the web server, I get:

Syntax error on line 312 of /usr/local/apache/conf/httpd.conf: Invalid command 'LayoutMerge', perhaps misspelled or defined by a module not included in the server configuration

How do I fix this and get forced ads working?

Answer:

The LayoutMerge feature is no longer used in mod_layout 4/5. To disable it, login to iPanel, click Configuration, then Main Configuration, and scroll down to the "Ad-Supported Accounts" section. The "Layout merge" option is probably set to "On", and you'll need to set it to "Off". Once you've done that, you'll need to wait for your forced ads cron job to run at least once (or run it manually if you're in a hurry) so that it can update the httpd.conf to remove the LayoutMerge directive.

Once that's done, restart Apache and your ads should work.