Cannot load modules/mod_proxy.so into server

Alles, was den Apache betrifft, kann hier besprochen werden.

Cannot load modules/mod_proxy.so into server

Postby miro_cgn » 17. April 2009 22:11

Hallo,

bin dabei eine Apache2 auf einer Solaris 10 Box als proxy path einzurichten.
( Will aber nicht so richtig :-( )

Ich versuche zu starten mit :
svcadm -v enable /network/http:apache2

Prüfe mit:
svcs -l http

Output:
bash-3.00# svcs -l http
fmri svc:/network/http:apache2
name Apache 2 HTTP server
enabled true
state maintenance
next_state none
state_time Fri Apr 17 15:39:12 2009
logfile /var/svc/log/network-http:apache2.log
restarter svc:/system/svc/restarter:default
contract_id
dependency require_all/error svc:/milestone/network:default (online)
dependency require_all/none svc:/system/filesystem/local:default (online)
dependency optional_all/error svc:/system/filesystem/autofs:default (online)
bash-3.00#


Das Log-File:

[ Apr 17 15:38:35 Leaving maintenance because disable requested. ]
[ Apr 17 15:38:35 Disabled. ]
[ Apr 17 15:39:12 Enabled. ]
[ Apr 17 15:39:12 Executing start method ("/lib/svc/method/http-apache2 start") ]
Syntax error on line 98 of /etc/apache2/httpd.conf:
Cannot load /usr/apache2/modules/mod_proxy.so into server: ld.so.1: httpd: fatal: /
usr/apache2/modules/mod_proxy.so: open failed: No such file or directory
[ Apr 17 15:39:12 Method "start" exited with status 1 ]


Line 98 aus der httpd.conf:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so

#LoadFile modules/libxml2.so
#LoadModule proxy_html_module modules/mod_proxy_html.so
LoadModule headers_module modules/mod_headers.so
LoadModule deflate_module modules/mod_deflate.so


--> Ich hab auch schon statt modules/ auch den vollen Pfad versucht ohne Erfolg.

Wo kann ich noch schauen woran es liegt?

Danke im vorraus.

miro
miro_cgn
 
Posts: 3
Joined: 17. April 2009 21:48

Re: Cannot load modules/mod_proxy.so into server

Postby Wiedmann » 17. April 2009 22:18

(keine Ahnung von Solaris)

Cannot load /usr/apache2/modules/mod_proxy.so into server: ld.so.1: httpd: fatal: /
usr/apache2/modules/mod_proxy.so: open failed: No such file or directory

Gibt es die Datei "/usr/apache2/modules/mod_proxy.so"?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Cannot load modules/mod_proxy.so into server

Postby miro_cgn » 18. April 2009 08:54

Ja, die Datei ist vorhanden.

Danke

Miro
miro_cgn
 
Posts: 3
Joined: 17. April 2009 21:48

Re: Cannot load modules/mod_proxy.so into server

Postby Nobbie » 18. April 2009 10:12

Mach mal einen "ls -l" vom module-Verzeichnis und stelle den Output hier hin.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Cannot load modules/mod_proxy.so into server

Postby miro_cgn » 21. April 2009 10:33

Hab den Fehler gefunden, es fehlten Links in der Workdirectory:

ln -s /etc/apache2/ conf
ln -s libexec/ modules
ln -s /var/apache2/logs/ logs


in Apache work directory:


bash-3.00# ls -rtlh
total 34
drwxr-xr-x 5 root bin 512 Feb 10 16:46 man
drwxr-xr-x 14 root bin 4.5K Feb 10 16:46 manual
drwxr-xr-x 2 root bin 512 Feb 10 21:11 bin
drwxr-xr-x 2 root bin 4.0K Feb 10 21:11 include
drwxr-xr-x 3 root bin 512 Feb 10 21:11 lib
drwxr-xr-x 2 root bin 1.5K Feb 10 21:11 libexec
lrwxrwxrwx 1 root root 18 Apr 19 01:19 logs -> /var/apache2/logs/
lrwxrwxrwx 1 root root 8 Apr 19 01:20 modules -> libexec/
lrwxrwxrwx 1 root root 13 Apr 19 01:20 conf -> /etc/apache2/
bash-3.00# pwd
/usr/apache2
bash-3.00#


Hier noch ein paar hilfreiche Befehle beim aufsetzen unter Solaris 10:

Wenn Apache nicht startet, dann folgendermassen die Entstörung in Angriff nehmen:

svcs -l http


Oder


svcs -x http svc:/network/http:apache2 (Apache 2 HTTP server)
State: maintenance since May 8, 2007 3:16:12 PM EDT


Reason: Start method failed repeatedly, last exited with status 1.
See: http://sun.com/msg/SMF-8000-KS <---- Diese Zeile ist sehr sehr sehr hilfreich !!!!
See: httpd(8)
See: /var/svc/log/network-http:apache2.log
Impact: This service is not running.


Note that the second to last line tells you where the log file is, so take a look at that. Once you've fixed the problem, you can restart apache with:


svcadm restart /network/http:apache2


If for some reason you want to shut off apache, use this:


svcadm disable /network/http:apache2
---

Wenn Apache im Maintenance Status steht, dann :


svcadm clear svc:/network/http:apache2


Hoffe jemandem hilft es.

Grüsse.

Miro aus Köln
miro_cgn
 
Posts: 3
Joined: 17. April 2009 21:48


Return to Apache

Who is online

Users browsing this forum: No registered users and 32 guests