PDA

View Full Version : The Perfect Setup - OpenSuSE 10.2 (32-bit) Apache Help


Jerry
30th July 2007, 08:32
I wasn't sure where to post this and took my best guess this would be the right place.

I followed the instructions listed in this guide on a system I had already just newly installed and I got the error listed below. The only major difference is I had KDE installed.

I figured what the hey maybe I gotta do a completely new install and follow your instructions completely to get it to work so I did exactly that and recieved exactly the same results. Below is the apache start problem I can't seem to get past.

Three other variables to take note of in case they could be relevant in some small way are:
1. I'm installing on a Dell LS laptop.
2. I had to remove the laptop software during installation using expert mode to get the install down to the same disk space usage and so I'd need only the cd1 to get to the first boot.
3. I have a Netgear Realtek RTL-8169 Gigabit Ethernet cardbus card installed as a second ethernet card not setup yet that I'll be using as a router to my lan after I get past the basic configuration.


jerry # /etc/init.d/apache2 start
Module "[...]" is not installed, ignoring.
Check the APACHE_MODULES setting in /etc/sysconfig/apache2.
Starting httpd2 (prefork) Syntax error on line 11 of /etc/apache2/mod_log_config.conf:
Invalid command 'LogFormat', perhaps misspelled 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
jerry #

I'd really like to move forward on this install. Any help will be appreciated.

Thank you

till
31st July 2007, 10:44
Please post the content of the file /etc/apache2/mod_log_config.conf

Jerry
31st July 2007, 11:07
[QUOTE]
#
# 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>
[QUOTE]

TIA

falko
31st July 2007, 14:42
Take a look at http://www.howtoforge.com/forums/showthread.php?t=10606&highlight=%2Fetc%2Fsysconfig%2Fapache2 , especially post #2.

Jerry
31st July 2007, 15:59
falko,

I thought you meant I should remove and replace the line with APACHE_MODULES="actions alias auth_basic authn_file setenvif ssl suexec userdir php5 rewrite"

I did figure I should remove the [...]

Ok I've fixed the file by deleting it, reinstalling apache and the other php5 stuff and got the editing done and now I'm getting this.

jerry:/etc # SuSEconfig
Starting SuSEconfig, the SuSE Configuration Tool...
Running in full featured mode.
Reading /etc/sysconfig and updating the system...
Executing /sbin/conf.d/SuSEconfig.groff...
Executing /sbin/conf.d/SuSEconfig.gtk2...
Executing /sbin/conf.d/SuSEconfig.perl...
Executing /sbin/conf.d/SuSEconfig.permissions...
Executing /sbin/conf.d/SuSEconfig.postfix...
Rebuilding /etc/aliases.db.
*** WARNING ***
Found /etc/postfix/master.cf.SuSEconfig, exiting...
*** WARNING ***
Executing /sbin/conf.d/SuSEconfig.scpm...
Finished.
jerry:/etc # /etc/init.d/apache2 start
Starting httpd2 (prefork) Syntax error on line 169 of /etc/apache2/httpd.conf:
Invalid command 'index.html.var', perhaps misspelled 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
jerry:/etc #

I backed up and showed the SuSEconfig line because the warning there might be relevant.

TIA

Jerry
31st July 2007, 16:24
I figured it out. index.html.var was on the next line and the system wasn't reading it as part of the previous line.

I feel like I've been playing Zelda and finally reached the next level. :)

Thanks for all you're help. Now onto ISPConfig!:)