[opensuse-factory] need working /etc/apache2/mod_log_config.conf
Hello, Can anyone post a working /etc/apache2/mod_log_config.conf I get following errors. Thanks Glenn # rpm -qa | sort | grep apache2 apache2-2.4.4-1.2.x86_64 apache2-doc-2.4.4-1.2.noarch apache2-example-pages-2.4.4-1.2.x86_64 apache2-utils-2.4.4-1.2.x86_64 apache2-worker-2.4.4-1.2.x86_64 # systemctl status apache2.service apache2.service - The Apache Webserver Loaded: loaded (/usr/lib/systemd/system/apache2.service; disabled) Active: failed (Result: exit-code) since Fri, 2013-07-12 20:46:05 EST; 4min 8s ago Process: 3111 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD -DNO_DETACH -k graceful-stop (code=exited, status=1/FAILURE) Process: 3091 ExecStart=/usr/sbin/start_apache2 -D SYSTEMD -DNO_DETACH -k start (code=exited, status=1/FAILURE) CGroup: name=systemd:/system/apache2.service Jul 12 20:46:05 test.site start_apache2[3091]: Check the APACHE_MODULES setting in /etc/sysconfig/apache2. Jul 12 20:46:05 test.site start_apache2[3091]: AH00526: Syntax error on line 11 of /etc/apache2/mod_log_config.conf: Jul 12 20:46:05 test.site start_apache2[3091]: Invalid command 'LogFormat', perhaps misspelled or defined by a module not included in the server configuration Jul 12 20:46:05 test.site systemd[1]: apache2.service: main process exited, code=exited, status=1/FAILURE Jul 12 20:46:05 test.site start_apache2[3111]: Module ""actions" is not installed, ignoring. Jul 12 20:46:05 test.site start_apache2[3111]: Check the APACHE_MODULES setting in /etc/sysconfig/apache2. Jul 12 20:46:05 test.site start_apache2[3111]: AH00526: Syntax error on line 11 of /etc/apache2/mod_log_config.conf: Jul 12 20:46:05 test.site start_apache2[3111]: Invalid command 'LogFormat', perhaps misspelled or defined by a module not included in the server configuration Jul 12 20:46:05 test.site systemd[1]: Failed to start The Apache Webserver. Jul 12 20:46:05 test.site systemd[1]: Unit apache2.service entered failed state #journalctl -n -- Logs begin at Fri, 2013-07-12 19:53:16 EST, end at Fri, 2013-07-12 20:46:05 EST. -- Jul 12 20:46:05 test.site start_apache2[3091]: AH00526: Syntax error on line 11 of /etc/apache2/mod_log_config.conf: Jul 12 20:46:05 test.site start_apache2[3091]: Invalid command 'LogFormat', perhaps misspelled or defined by a module not included in the server configuration Jul 12 20:46:05 test.site systemd[1]: apache2.service: main process exited, code=exited, status=1/FAILURE Jul 12 20:46:05 test.site start_apache2[3111]: Module ""actions" is not installed, ignoring. Jul 12 20:46:05 test.site start_apache2[3111]: Check the APACHE_MODULES setting in /etc/sysconfig/apache2. Jul 12 20:46:05 test.site start_apache2[3111]: AH00526: Syntax error on line 11 of /etc/apache2/mod_log_config.conf: Jul 12 20:46:05 test.site start_apache2[3111]: Invalid command 'LogFormat', perhaps misspelled or defined by a module not included in the server configuration Jul 12 20:46:05 test.site systemd[1]: apache2.service: control process exited, code=exited status=1 Jul 12 20:46:05 test.site systemd[1]: Failed to start The Apache Webserver. Jul 12 20:46:05 test.site systemd[1]: Unit apache2.service entered failed state # cat /etc/apache2/mod_log_config.conf # # The following directives define some format nicknames for use with # a CustomLog directive. # # http://httpd.apache.org/docs-2.2/mod/mod_log_config.html # # # Format string: Nickname: # LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent LogFormat "%h %l %u %t \"%r\" %>s %b \ \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%v %h %l %u %t \"%r\" %>s %b \ \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined # To use %I and %O, you need to enable mod_logio <IfModule mod_logio.c> LogFormat "%h %l %u %t \"%r\" %>s %b \ \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio </IfModule> # Use one of these when you want a compact non-error SSL logfile on a virtual # host basis: <IfModule mod_ssl.c> Logformat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \ \"%r\" %b" ssl_common Logformat "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \ \"%r\" %b \"%{Referer}i\" \"%{User-Agent}i\"" ssl_combined </IfModule> -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 07/12/2013 07:11 AM, doiggl@velocitynet.com.au wrote: : Syntax error on
line 11 of /etc/apache2/mod_log_config.conf: Jul 12 20:46:05 test.site start_apache2[3091]: Invalid command 'LogFormat', perhaps misspelled or defined by a module not included in the server configuration
Sir, plase read the apache documentation! if you did so, you will know that LogFormat is provided by mod_log_config. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (2)
-
Cristian Rodríguez
-
doiggl@velocitynet.com.au