Problem with Apache2 on openSuse 11.2

Hi all,
I’m very new user of linux. I tried to install LAMP with some help from this site: Installing Apache2 With PHP5 And MySQL Support On OpenSUSE 11.2 (LAMP) | HowtoForge - Linux Howtos and Tutorials
Unfortunately when I wanted to start Apache2, i get an error message:


linux:~ # /etc/init.d/apache2 start
Starting httpd2 (worker) httpd2-worker: Syntax error on line 116 of /etc/apache2/httpd.conf: 
Syntax error on line 26 of /etc/apache2/sysconfig.d/loadmodule.conf: 
Cannot load /usr/lib/apache2-worker/mod_ssl.so into server: /usr/lib/apache2-worker/mod_ssl.so: 
undefined symbol: SSL_get_servername

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

I don’t change neither servername nor IP, I left the settings by default. Maybe this is the problem?
Please can anyone help me?
Thanks

Gabriel
P.S.: If you know the solution, please write the instructions step by step, I’m a beginner user.

Try using prefork instead of worker. I think you need prefork for SSL.

Yes I did it also, before I asked for a help, I reinstall, then uninstall and install again apache2, tried prefork, then worker, but didn’t work with prefork. The error was the same…
Is it ok, that my servername is linux.site?

Try to get it working without SSL first. SSL is not something to begin your adventures with.

Please and can you give me the instruction how to disable the SSL or how to work without SSL.
Where can I find the configuration? Where I have to change the setting? What to write to command line, atc.
Thanks in advance.

By default SSL is not enabled unless you enabled it in YaST or by editing /etc/sysconfig/apache2.

If that tute told you to install packages from other than openSUSE repos, don’t follow it. Apache2 works out of the box if you just install the LAMP pattern using YaST.

When I put the code:


/etc/sysconfig/apache2

I get a messege: permission denied
What shall I do? I don’t understand, why I haven’t permission.:frowning:

You don’t run it, it’s not a program, it’s a file you edit. But if you haven’t touched it, it should be as out of the box.

I suggest you start over, remove any foreign packages and use only the LAMP pattern from openSUSE.

I’m back again,
last time I gave up the fighting with apache. I uninstalled every package and forgot the LAMP >:(
Now I feel new power to solve this problem, I hope you can help me. I need the LAMP working properly…
So first what I did, I installed available apache package from LAMP pattern. As I know this package is from openSuse.
http://opcal.eu/SM-YaST.jpg
But!!! After the installation, I checked via terminal:

linux:~ # rcapache2 status
Checking for httpd2:                                                 unused
linux:~ # rcapache2 start
Starting httpd2 (itk) httpd2-itk: Syntax error on line 116 of /etc/apache2/httpd.conf: 
Syntax error on line 26 of /etc/apache2/sysconfig.d/loadmodule.conf: 
Cannot load /usr/lib/apache2-itk/mod_ssl.so into server: /usr/lib/apache2-itk/mod_ssl.so: 
undefined symbol: SSL_get_servername

The command line was:
/usr/sbin/httpd2-itk -f /etc/apache2/httpd.conf
                                                                     failed
linux:~ # 

:’( same problem as before. Please do you have any idea how to fix this problem?
Thanks in advance

apache-itk isn’t a standard openSUSE module, you must have installed it separately.

Ok, I found some video on Youtube, where one guy is showing a different way of installation as I did before. First I remove all of apache packages. Then I try to install via Terminal:


linux:~ # zypper se apache
Loading repository data...
Reading installed packages...

S | Name                              | Summary                               | Type   
--+-----------------------------------+---------------------------------------+--------
  | CASA_auth_token_apache2_2_support | Novell CASA Authentication Token Ap-> | package
  | ant-apache-bcel                   | Optional apache bcel tasks for ant    | package
  | ant-apache-bsf                    | Optional apache bsf tasks for ant     | package
  | ant-apache-log4j                  | Optional apache log4j tasks for ant   | package
  | ant-apache-oro                    | Optional apache oro tasks for ant     | package
  | ant-apache-regexp                 | Optional apache regexp tasks for ant  | package
  | ant-apache-resolver               | Optional apache resolver tasks for -> | package
  | apache-portlet-1_0-api            | Portlet API 1.0 from Jetspeed2        | package
  | apache-portlet-1_0-api-javadoc    | Portlet API 1.0 from Jetspeed2        | package
  | apache2                           | The Apache Web Server Version 2.0     | package
  | apache2-devel                     | Apache 2.0 Header and Include Files   | package
  | apache2-doc                       | Additional Package Documentation.     | package
  | apache2-example-certificates      | Example certificates for the Apache-> | package
  | apache2-example-pages             | Example Pages for the Apache 2 Web -> | package
  | apache2-itk                       | Apache 2 "ITK" MPM (Multi-Processin-> | package
  | apache2-mod_apparmor              | AppArmor module for apache2           | package
  | apache2-mod_auth_ntlm_winbind     | Enables Apache to authenticate user-> | package
  | apache2-mod_dnssd                 | Apache2 module for Zeroconf support-> | package
  | apache2-mod_fcgid                 | Alternative FastCGI module for Apac-> | package
  | apache2-mod_jk                    | Connectors between Apache and Tomca-> | package
  | apache2-mod_macro                 | Define and Use Macros within the Ap-> | package
  | apache2-mod_mono                  | Run ASP.NET Pages on Unix with Apac-> | package
  | apache2-mod_perl                  | Embedded Perl for Apache              | package
  | apache2-mod_perl-devel            | Embedded Perl for Apache - Developm-> | package
  | apache2-mod_php5                  | PHP5 Module for Apache 2.0            | package
  | apache2-mod_python                | A Python Module for the Apache 2 We-> | package
  | apache2-mod_scgi                  | Apache module named mod_scgi that i-> | package
  | apache2-mod_security2             | ModSecurity Open Source Web Applica-> | package
  | apache2-mod_tidy                  | Apache Module using the Tidy Librar-> | package
  | apache2-prefork                   | Apache 2 "prefork" MPM (Multi-Proce-> | package
  | apache2-utils                     | Apache 2 utilities                    | package
  | apache2-worker                    | Apache 2 worker MPM (Multi-Processi-> | package
  | perl-Apache-AuthCookie            | Apache/Perl Authentication and Auth-> | package
  | perl-Apache-AuthNetLDAP           | use Net::LDAP for user authenticati-> | package
  | perl-Apache-DBI                   | Apache authentication via perl DBI    | package
  | perl-Apache-Filter                | Alter the output of previous handlers | package
  | perl-Apache-Session               | persistent storage for arbitrary data | package
  | perl-Apache-SessionX              | Persistent Storage for Arbitrary Da-> | package
  | perl-Apache2-AuthCookieDBI        | An AuthCookie module backed by a DB-> | package
linux:~ # zypper -n in apache apache2  apache2 apache2-itk apache2-prefork
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW packages are going to be installed:
  apache2 apache2-itk apache2-prefork apache2-utils libapr-util1 libapr1 


The following packages are not supported by their vendor:
  apache2 apache2-itk apache2-prefork apache2-utils libapr-util1 libapr1 


Overall download size: 1.6 M. After the operation, additional 3.7 M will be used.
Continue? [YES/no]: yes
Retrieving package libapr1-1.3.8-2.3.i586 (1/6), 134.0 K (297.0 K unpacked)
Retrieving: libapr1-1.3.8-2.3.i586.rpm [done]
Installing: libapr1-1.3.8-2.3 [done]
Retrieving package libapr-util1-1.3.9-2.1.i586 (2/6), 101.0 K (211.0 K unpacked)
Retrieving: libapr-util1-1.3.9-2.1.i586.rpm [done]
Installing: libapr-util1-1.3.9-2.1 [done]
Retrieving package apache2-utils-2.2.13-2.3.1.i586 (3/6), 119.0 K (173.0 K unpacked)
Retrieving: apache2-utils-2.2.13-2.3.1.i586.rpm [done]
Installing: apache2-utils-2.2.13-2.3.1 [done]
Retrieving package apache2-itk-2.2.13-2.3.1.i586 (4/6), 281.0 K (599.0 K unpacked)
Retrieving: apache2-itk-2.2.13-2.3.1.i586.rpm [done]
Installing: apache2-itk-2.2.13-2.3.1 [done]
Retrieving package apache2-2.2.13-2.3.1.i586 (5/6), 685.0 K (1.9 M unpacked)
Retrieving: apache2-2.2.13-2.3.1.i586.rpm [done (211.4 K/s)]
Installing: apache2-2.2.13-2.3.1 [done]
Additional rpm output:
Starting SuSEconfig, the SuSE Configuration Tool...
Running module permissions only
Reading /etc/sysconfig and updating the system...
Executing /sbin/conf.d/SuSEconfig.permissions...
Finished.
Updating etc/sysconfig/apache2...
looking for old 2.0 modules to be renamed...
Done.


Retrieving package apache2-prefork-2.2.13-2.3.1.i586 (6/6), 279.0 K (595.0 K unpacked)
Retrieving: apache2-prefork-2.2.13-2.3.1.i586.rpm [done]
Installing: apache2-prefork-2.2.13-2.3.1 [done]
linux:~ # rcapache2 start
Starting httpd2 (prefork) httpd2-prefork: Syntax error on line 116 of /etc/apache2/httpd.conf: 
Syntax error on line 26 of /etc/apache2/sysconfig.d/loadmodule.conf: 
Cannot load /usr/lib/apache2-prefork/mod_ssl.so into server: /usr/lib/apache2-prefork/mod_ssl.so: 
undefined symbol: SSL_get_servername

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


As you can see, the result is the same >:(
Any idea?
Thanks.

Remove apache2-itk since that seems to be causing your problems.

I removed the apache2-itk:


linux:~ # zypper rm apache2-itk
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following package is going to be REMOVED:
  apache2-itk 


After the operation, 599.0 K will be freed.
Continue? [YES/no]: y
Removing apache2-itk-2.2.13-2.3.1 [done]
linux:~ # chkconfig --add apache2
apache2                   0:off  1:off  2:off  3:on   4:off  5:on   6:off
linux:~ # rcapache2 status
Checking for httpd2:                                                 unused
linux:~ # rcapache2 start
Starting httpd2 (prefork) httpd2-prefork: Syntax error on line 116 of /etc/apache2/httpd.conf: 
Syntax error on line 26 of /etc/apache2/sysconfig.d/loadmodule.conf: 
Cannot load /usr/lib/apache2-prefork/mod_ssl.so into server: /usr/lib/apache2-prefork/mod_ssl.so: 
undefined symbol: SSL_get_servername

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


As you can see, the error message is the same as before. What did I wrong?

You may have a mismatch between apache and openssl. Are you up to date with all openssl updates? Are you subscribed to the updates repo?

Do you mean this setting?
http://www.opcal.eu/csr.jpg

I have this links:
Broadcom
URL: http://www.broadcom.com/docs/linux_sta/repo/Novell/Novell-Common/sle11/updates/
Category: YUM
Main Repository (NON-OSS)
URL: Index of /distribution/11.2/repo/non-oss
Category: YaST
Main Repository (OSS)
URL: Index of /distribution/11.2/repo/oss
Category: YaST
Packman Repository
URL: Index of /suse/11.2/
Category: YUM

Is it ok?

No, you’re missing the official update repo:

4 | repo-update | openSUSE-11.2-Update | Yes | Yes | 99 | rpm-md | http://download.opensuse.org/update/11.2/

It’s one of the 4 basic repos you should subscribe to. Also I hope you didn’t get a different openssl from packman. Check the version:

rpm -q openssl

I checked the code you wrote:


linux:~ # rpm -q openssl
openssl-0.9.8h-30.11

Ok, I added the link:
http://www.opcal.eu/csr.jpg

What next?
Thanks

openssl is up to 0.9.8k. Update it.

Hi, well done, you solved my problem:


linux:~ # openssl version
OpenSSL 0.9.8k 25 Mar 2009
linux:~ # rcapache2 status
Checking for httpd2:                                                 running
linux:~ # rcapache2 start
Apache is already running (/var/run/httpd2.pid)                      done


Many thanks for your help and navigation in this case. rotfl!