apach2 mod install error ?!

foexle

foexle

Kaiser
Hi Leute,
ich versuche gerade ein Modul zu installieren für Apache2.
Modulname xsendfile.

Code:
apxs2 -cia mod_xsendfile.c


/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread     -I/usr/include/apache2  -I/usr/include/apr-1.0   -I/usr/include/apr-1.0 -I/usr/include/postgresql  -c -o mod_xsendfile.lo mod_xsendfile.c && touch mod_xsendfile.slo
/usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static x86_64-linux-gnu-gcc -o mod_xsendfile.la  -rpath /usr/lib/apache2/modules -module -avoid-version    mod_xsendfile.lo
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' mod_xsendfile.la /usr/lib/apache2/modules
/usr/share/apr-1.0/build/libtool --mode=install cp mod_xsendfile.la /usr/lib/apache2/modules/
cp .libs/mod_xsendfile.so /usr/lib/apache2/modules/mod_xsendfile.so
cp .libs/mod_xsendfile.lai /usr/lib/apache2/modules/mod_xsendfile.la
PATH="$PATH:/sbin" ldconfig -n /usr/lib/apache2/modules
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/lib/apache2/modules

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 644 /usr/lib/apache2/modules/mod_xsendfile.so
apxs:Error: Activation failed for custom /etc/apache2/httpd.conf file..
apxs:Error: At least one `LoadModule' directive already has to exist..
die Libdir für den Linker ist aber gestezt in /etc/ld.so.conf.d/ dieser pfad ist included in /etc/ld.so.conf

Was mache ich falsch ? Habe ich etwas übersehen ?

Greetz



edit: Problem gelöst, manuell angelegtes Load vom Modul.
 
Zuletzt bearbeitet:
hmm ok das manuelle anlegen des Modules hat es wohl doch nicht gebracht.

Hat da wer ne lösung für ?

Gruß
 
Code:
apxs:Error: Activation failed for custom /etc/apache2/httpd.conf file..
apxs:Error: At least one `LoadModule' directive already has to exist..

Das Problem dürfte nicht sein, dass das Modul nicht installiert werden kann, sondern dass deine Apache-Konfiguration keine einzige LoadModule-Direktive enthält oder sonst ein Fehler in /etc/apache2/httpd.conf existiert.
 
httpd.conf ist leer. Da die Modul-Load-Skripte in /etc/apache2/mod-available/ stehen bzw enabled wenn sie aktiviert wurden.
 
Wird denn /etc/apache2/mods-enabled/* irgendwo inkludiert? Scheinbar ja nicht, sonst würden diese Fehler nicht kommen.
 

Ähnliche Themen

Nginx als Reverse Proxy für Nextcloud und Emby

Zugriff Ubuntu 16.04. auf Freigabe 18.04. LTS nicht möglich

X startet nichtmehr

Samba 4 Gast Zugang unter Ubuntu funktioniert nicht

JBidWatcher: Problem bei loading Auctions in Verbindung mit mySQL

Zurück
Oben