LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Apache2 Error on Start "Invalid Command" (https://www.linuxquestions.org/questions/linux-newbie-8/apache2-error-on-start-invalid-command-390608/)

Salen 12-08-2005 01:58 PM

Apache2 Error on Start "Invalid Command"
 
Hi,

I've just installed apache, however when I try to start the process I'm receiving this error:

Code:

webmonkey:~ # /etc/init.d/apache2 start
Starting httpd2 (prefork) Syntax error on line 13 of /etc/apache2/sysconfig.d/global.conf:
Invalid command 'CustomLog', perhaps mis-spelled or defined by a module not included in the server configuration

The command line was:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
                                                                    failed

Any help would be terrific. I'm tried commenting out the Customlogs the config files, but to no avail, it simply finds another command it doesn't like to fail with. I've been using the Linux How-To for setting up a server using SuSE.

Thanks in Advance,

Chris

MidnightCmdr 12-29-2005 01:55 PM

When you say

>The command line was:
>/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL

is this the command you're running, or is this just the command contained in the init.d script?
Also, could you post your /etc/apache2/sysconfig.d/global.conf?


All times are GMT -5. The time now is 12:22 AM.