Installation Mod_Layout

Apache, Lighttpd, nginx, Cherokee
Post Reply
maxus
Posts: 11
Joined: 2004-06-06 02:52
 

Installation Mod_Layout

Post by maxus »

Hallo.

Ich versuche schon lange Mod_Layout zu installieren. Habe mich nun 3 Wochen hingesetzt und das Internet nach Informationen durchsucht, doch ich habe (absolut) nichts gefunden. Ich habe mehrere Quellen genutzt, doch leider kam nichts brauchbares bei raus. Dann hab ich mal im IRC vorbeigeschaut und dort konnte man mir helfen. Ich habe nun einiges geschafft, doch der letzte Schliff (die Beendung) fehlt noch. ich habe einiges probiert, doch es wird mir nichts angezeigt.

Mein System: Suse 9.0 / Apache2

Was hab ich schon getan:
Benutze Version: 4.0.1a

Ich habe laut Anleitung das Verzeichnis /usr/local/apache2/bin angelegt , habe die .tar.gz Datei hochgeladen und entpackt.

Laut Anleitung sollte man danach make und dann make install eingeben, doch das klappte nicht.

Im IRC wurde mir dann gesagt, ich soll das mit apxs2 machen.
Ich also apxs2 -c mod_layout.c unility.c layout.c eingegeben und danach habe ich die Datei mod_layout.so in den Ordner apache2-prefork verschoben.
Nun habe ich das ganze in der httpd.conf eingebunden:

http://www.Community-Talk.de/bild1.gif

http://www.Community-Talk.de/bild2.gif

Apache neugestartet und auf ein Ergebnis gewartet. Nichts. Was kann ich falsch gemacht haben, bzw. was muss noch gemacht werden? ich hoffe mir kann jemand helfen.

Das ganze Poste ich hier, da ich hier öfters gelesen habe, dass eine Anleitung von Nöten ist. Vielleicht können einige dann ja etwas mit diesem Beitrag anfangen.
Matthias Diehl
Posts: 315
Joined: 2002-09-24 13:26
 

Re: Installation Mod_Layout

Post by Matthias Diehl »

Moin,
ich hab das ganze nur kurz überflogen, aber ich glaube mich zu erinnern, dass dieses Statement dazugehört:

Code: Select all

AddOutputFilter LAYOUT html
maxus
Posts: 11
Joined: 2004-06-06 02:52
 

Re: Installation Mod_Layout

Post by maxus »

Hmm hab das jetzt in Bild 2 mit reingepackt, apache neugestartet, doch es hat sich nchts veränder.
Matthias Diehl
Posts: 315
Joined: 2002-09-24 13:26
 

Re: Installation Mod_Layout

Post by Matthias Diehl »

Ich habe die Installation die Du oben geschildert hast auch nicht ganz verstanden, Normalerweise sollte es so gehen, Makefile anpassen wie hier:

Code: Select all

top_srcdir=/usr/share/apache2
top_builddir=/usr/share/apache2
include /usr/share/apache2/build/special.mk

#   the used tools
APXS=/usr/sbin/apxs2
Danach make und make install.
Dann einbinden wie hier:

Code: Select all

LoadModule layout_module /usr/lib/apache2/liblayout.so
und die entsprechenden Direktiven setzen. Probier das am besten mal mit einer reinen HTML-Seite aus.
maxus
Posts: 11
Joined: 2004-06-06 02:52
 

Re: Installation Mod_Layout

Post by maxus »

hmm ok hab ich gemacht, nun wollte ich den Apache neu starten, doch nun kommt folgende Meldung:
The Command line was:
/usr/sbin/httpd2-prefork -f etc/apache2/httpd.conf
Edit: Ok ich hab die Zeilen aus Bild 2 gelöscht und nun startet er wieder. Hmm die sind doch aber erforderlich.

EDIT2:
Ok hab noch ein bisschen probiert.
Hab alles noch mal aus der httpd rausgenommen und neu geschrieben.

Code: Select all

LoadModule layout_module /usr/lib/apache2/liblayout.so 
Klappte nicht. Ich denk mal du meintest

Code: Select all

LoadModule layout_module /usr/lib/apache2/mod_layout.so 
Und dann wieder wie oben beschrieben den Satz bei Virtualhost.
Klappt leider noch immer nicht. Bei der Install hatte ich auch eine kleine fehlemeldung, vielleicht hat die damit etwas zu tun.

http://www.community-talk.de/bild3.gif
squize
Userprojekt
Userprojekt
Posts: 729
Joined: 2003-05-19 16:46
Location: Karlsruhe
Contact:
 

Re: Installation Mod_Layout

Post by squize »

apxs wird zum kompilieren von Apachemodulen gebraucht. Sollange das nicht installiert ist wirst du Probleme bekommen. Das Tool befindet ich soweit ich weiss in apache-dev.

Gruss

Marc
maxus
Posts: 11
Joined: 2004-06-06 02:52
 

Re: Installation Mod_Layout

Post by maxus »

Jut ich hab Apache geupdatet und gleich apache2-devel-2.0.49-30 mit installiert. Danach das gleiche wie oben beschrieben gemacht udn den gleichen Fehler erhalten. Vielleiht noch einen Tipp?

//EDIT:
Argh bin ick dumm. Hab vergessen die letzte Zeile mit dem apxs zu ändern. ne echt. Wie doof muss man sein. Jut installation hat geklappt.

Nun gehts weiter.

//EDIT 2:

So hab nun alles versucht. Installiert hat er es richtig, im Apache geladen auch wie mir scheint, doch er gibt einfach nichts aus. Hab mehrere Sachen aus den FAQs der Version 3 ausprobiert, doch nichts geht. momentan habe ich folgendes zwischen <VirtualHost> und </VirtualHost> zu stehen:
LayoutFooter /srv/www/htdocs/web1/html/code/footer.html
Wenn ich den Apache neustarte, kommt immer folgende Meldung:
[Wed Jun 23 15:48:59 2004] [warn] NameVirtualHost 61.80.166.25:80 has no VirtualHosts
Könnte da vielleicht ein fehler liegen? Also angezeigt wird leider nichts und im Quellcode der Seiten steht auch nichts weiter.
maxus
Posts: 11
Joined: 2004-06-06 02:52
 

Re: Installation Mod_Layout

Post by maxus »

sorry für den doppelpost und fürs schieben.

Wollte nur nicht, dass es im Nirvana verschwindet. Hab extra eine Woche gewartet. Hoffe es kann mir noch jemand bei meinem (hoffentlich) letzten Schritt helfen.
drfuture
Posts: 20
Joined: 2004-07-08 14:48
 

Re: Installation Mod_Layout

Post by drfuture »

Hatte die Meldung bis heute auch beim starten des apache, habe daraufhin die .conf files durchsucht (auf dem Server läuft confixx bei mir) und in der confixx_mhost.conf die einträge gefunden
NameVirtualhost xxx.xxx.xxx.xxx:80 darunter jeweils die normalen tags
<Virtual host...>

Das NameVirualhost habe ich auskommentiert da ich keinen Sinn dafür kenne. Seitdem funktioniert alles 1a.

also auf die Meldung bezohen, mod_layout hab ich bei mir nicht laufen...
Anonymous
 

Re: Installation Mod_Layout

Post by Anonymous »

Genau das Probleme habe ich auch... Hat jemand inwzischen eine Lösung?
blnsnoopy26
Posts: 660
Joined: 2002-10-19 14:01
 

Re: Installation Mod_Layout

Post by blnsnoopy26 »

Hi,

Wo bekomme ich mod_layout für Apache2 her, weil ich habe dies nicht siehe den Thread hier:

http://www.rootforum.org/forum/viewtopi ... highlight=
maxus
Posts: 11
Joined: 2004-06-06 02:52
 

Re: Installation Mod_Layout

Post by maxus »

Hier:
http://tangent.org/index.pl?lastnode_id=362&node_id=374

Die Erklärung da oben hat allerdings nicht geklappt bei mir.
blnsnoopy26
Posts: 660
Joined: 2002-10-19 14:01
 

Re: Installation Mod_Layout

Post by blnsnoopy26 »

maXus wrote:Hier:
http://tangent.org/index.pl?lastnode_id=362&node_id=374

Die Erklärung da oben hat allerdings nicht geklappt bei mir.
Das geht nicht. Weil mein Apache via rpm installiert ist kann ich vom Source nicht bauen, da bekomme ich immer eine Fehlermeldung.

Code: Select all

x:/usr/src/mod_layout-4.0.2a # make
Makefile:7: /usr/local/apache2/build/special.mk: Datei oder Verzeichnis nicht gefunden
make: *** Keine Regel, um »/usr/local/apache2/build/special.mk« zu erstellen.  Schluss.
Daher mein Apache 2.0.50 via rpm installiert ist habe ich kein solches verzeichnis. Gibs andere Lösung?
blnsnoopy26
Posts: 660
Joined: 2002-10-19 14:01
 

Re: Installation Mod_Layout

Post by blnsnoopy26 »

Hi,

So Kompilieren ging schon einmal,aber die errors da drin machen mir sorgen:

Code: Select all

 make
/usr/sbin/apxs2 -c   mod_layout.c utility.c layout.c
/usr/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -g -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread -I/usr/include/apache2  -I/usr/include/apache2   -I/usr/include/apache2   -c -o mod_layout.lo mod_layout.c && touch mod_layout.slo
mod_layout.c: In function `layout_filter':
mod_layout.c:258: warning: unused variable `body'
/usr/include/ctype.h: At top level:
mod_layout.c:466: warning: `add_type' defined but not used
mod_layout.c:503: warning: `merge_add' defined but not used
mod_layout.c:512: warning: `footer_off' defined but not used
mod_layout.c:519: warning: `header_off' defined but not used
mod_layout.c:526: warning: `http_header_off' defined but not used
/usr/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -g -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread -I/usr/include/apache2  -I/usr/include/apache2   -I/usr/include/apache2   -c -o utility.lo utility.c && touch utility.slo
utility.c:153: warning: no previous prototype for `table_list'
utility.c:330: warning: no previous prototype for `check_table'
/usr/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -g -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread -I/usr/include/apache2  -I/usr/include/apache2   -I/usr/include/apache2   -c -o layout.lo layout.c && touch layout.slo
/usr/share/apache2/build/libtool --silent --mode=link gcc -o mod_layout.la  -rpath /usr/lib/apache2 -module -avoid-version    layout.lo utility.lo mod_layout.lo
mod_layout wird zwar geladen,aber es will irgendwie trotzdem nicht auf der Webpage angezeigt werden :(

Weil wenn ich folgendes einfüge wie in der readme beschrieben, lädt sich meine seite zu tode und nix passiert :(

Code: Select all

AddOutputFilter LAYOUT html
        LayoutFooter "<P> This is the tail end of things<P>"
        LayoutHeader "<P> This is the beginning of things<P>"
Anonymous
 

Re: Installation Mod_Layout

Post by Anonymous »

Ich sehe dort nirgends errors. Das einzige was ich oben sehe sind Warnings, welche aus GCC Einstellungen resultieren .. desweiteren sind warnings generall vollkommen ignorierbar und in deinem Fall erst Recht.
blnsnoopy26
Posts: 660
Joined: 2002-10-19 14:01
 

Re: Installation Mod_Layout

Post by blnsnoopy26 »

smashie wrote:Ich sehe dort nirgends errors. Das einzige was ich oben sehe sind Warnings, welche aus GCC Einstellungen resultieren .. desweiteren sind warnings generall vollkommen ignorierbar und in deinem Fall erst Recht.
Hi,

Naja ok, aber wenn ich die 3 Zeilen in mein Vhost schreibe und Apache restarte und ich will meine Webseite aufrufen geht dies nicht mehr.

In den Apache Error logs und beim starten vom Apachen kommt auch kein Fehler und von daher frage ich mich, warum es nicht geht.

Vielleicht hat ja jemand ein Tip, warum es nicht funktioniert.
Anonymous
 

Re: Installation Mod_Layout

Post by Anonymous »

Also ich habe mich auch mal rangesetzt...
Hier ein kleines Tutorial wie es bei mir funktioniert hat.

1. Devel für euren Apache saugen und installieren. Am besten als RPM über Webmin. Ich habe den Apache 2.46-3. Ich habe apache2-devel-2.0.44-38 installiert. Wenn es keine passende Devel Version gibt dann eben die Abhängikeiten ignorieren. Geht trotzdem.

2. Download mod_layout. Link

3. Nun passt ihr das Makefile an.

Code: Select all

include /usr/share/apache2/build/special.mk
<== einfach kommentieren!
Dann noch den APXS Pfad. Meistens /usr/sbin/apxs2. Die .so Datei sollte nach /usr/lib/apache2 kopiert werden. /usr/sbin/apxs2-prefork kopiert das ganze nach /usr/lib/apache2-prefork.

4. make // make install

5. Modul im Apache laden:
LoadModule layout_module /usr/lib/apache2/liblayout.so
<== in meinem Fall... Wenn ihr ein anderes Verzeichnis nutzt, entsprechend anpassen.

6. .htaccess Datei in das gewünschte Verzeichnis:

Code: Select all

AddOutputFilter LAYOUT html php
LayoutFooter "<P> This is the tail end of things<P>"
LayoutHeader "<P> This is the beginning of things<P>"
WICHTIG: Nach AddOutputFilter LAYOUT müssen die Endungen der einbezogenen Dateien hin...! Wenn ihr php weglasst werden PHP-Dateien nicht mit Header/Footer versehen.

Statt dem Text bei LayoutFooter / Header könnt ihr auch den relativen Pfad zu Header/Footer Datei angeben.

Die Befehle im VirtualHost habe ich noch nicht getestet. Es sollte aber funktionieren.
blnsnoopy26
Posts: 660
Joined: 2002-10-19 14:01
 

Re: Installation Mod_Layout

Post by blnsnoopy26 »

Hi,

nein wie du es beschreibst geht es auch nicht.
Sobald ich es in der vhost oder via .htaccess mache dann lädt sich meine Seite zu tode, also es wird keine Seite aufgebaut.

Also funktioniert es nicht so wie du da sagst.
hab es z.b bei mir in die confixx_vhost.conf gepackt in einem beliebigen vhost ohne erfolg und dann in das html verzeichnis von meinem web, aber ohne erfolg.

mod_layout funzt so nicht wie du es da sagst.

Und bei mir sind alle nötigen Pakete installiert:

Code: Select all

rpm -qva | grep apache2:

apache2-mod_perl-1.99_09_20030807-73
apache2-example-pages-2.0.50-1
apache2-worker-2.0.50-1
apache2-mod_macro-1.1.4-83
apache2-mod_python-3.0.3-124
apache2-2.0.50-1
apache2-doc-2.0.50-1
apache2-leader-2.0.50-1
apache2-prefork-2.0.50-1
apache2-mod_auth_mysql-20030510-85
apache2-mod_fastcgi-2.4.0-121
apache2-mod_ruby-1.1.1-75
apache2-devel-2.0.50-1
apache2-metuxmpm-2.0.50-1
In meiner phpinfo wird auch das mod_layout geladen ohne Fehlermeldung, also stimmt was mit deiner Anleitung zu 100% nicht.

Hab es sogar nochmal neu installiert das mod_layout:

Code: Select all

/usr/sbin/apxs2 -c mod_layout.c
/usr/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -g -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread -I/usr/include/apache2  -I/usr/include/apache2   -I/usr/include/apache2   -c -o mod_layout.lo mod_layout.c && touch mod_layout.slo
mod_layout.c: In function `layout_filter':
mod_layout.c:255: warning: unused variable `body'
/usr/include/ctype.h: At top level:
mod_layout.c:463: warning: `add_type' defined but not used
mod_layout.c:500: warning: `merge_add' defined but not used
mod_layout.c:509: warning: `footer_off' defined but not used
mod_layout.c:516: warning: `header_off' defined but not used
mod_layout.c:523: warning: `http_header_off' defined but not used
/usr/share/apache2/build/libtool --silent --mode=link gcc -o mod_layout.la  -rpath /usr/lib/apache2 -module -avoid-version    mod_layout.lo
/usr/sbin/apxs2 -c utility.c
/usr/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -g -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread -I/usr/include/apache2  -I/usr/include/apache2   -I/usr/include/apache2   -c -o utility.lo utility.c && touch utility.slo
utility.c:145: warning: no previous prototype for `table_list'
utility.c:322: warning: no previous prototype for `check_table'
/usr/share/apache2/build/libtool --silent --mode=link gcc -o utility.la  -rpath /usr/lib/apache2 -module -avoid-version    utility.lo
/usr/sbin/apxs2 -c layout.c
/usr/share/apache2/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -fPIC -Wall -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DAP_HAVE_DESIGNATED_INITIALIZER -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -DAP_DEBUG -g -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -pthread -I/usr/include/apache2  -I/usr/include/apache2   -I/usr/include/apache2   -c -o layout.lo layout.c && touch layout.slo
/usr/share/apache2/build/libtool --silent --mode=link gcc -o layout.la  -rpath /usr/lib/apache2 -module -avoid-version    layout.lo
/usr/sbin/apxs2 -o liblayout.la -c mod_layout.lo utility.lo layout.lo
/usr/share/apache2/build/libtool --silent --mode=link gcc -o liblayout.la  -rpath /usr/lib/apache2 -module -avoid-version    mod_layout.lo utility.lo layout.lo
#/usr/sbin/apxs2 -i -a mod_layout.la

# make install

make[1]: Entering directory `/usr/src/mod_layout-4.0.1a'
/bin/sh /usr/share/apache2/build/libtool --silent --mode=install cp mod_layout.la /usr/lib/apache2/
PATH="$PATH:/sbin" ldconfig -n /usr/lib/apache2
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/lib/apache2

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.
----------------------------------------------------------------------
make[1]: Leaving directory `/usr/src/mod_layout-4.0.1a'
/usr/sbin/apxs2 -i -n liblayout.so -e liblayout.la
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apache2/build/libtool' liblayout.la /usr/lib/apache2
/usr/share/apache2/build/libtool --mode=install cp liblayout.la /usr/lib/apache2/
cp .libs/liblayout.so /usr/lib/apache2/liblayout.so
cp .libs/liblayout.lai /usr/lib/apache2/liblayout.la
cp .libs/liblayout.a /usr/lib/apache2/liblayout.a
ranlib /usr/lib/apache2/liblayout.a
chmod 644 /usr/lib/apache2/liblayout.a
PATH="$PATH:/sbin" ldconfig -n /usr/lib/apache2
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/lib/apache2

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 755 /usr/lib/apache2/liblayout.so
+--------------------------------------------------------+
| All done.                                              |
|                                                        |
| You will need to add the directive:                    |
| LoadModule layout_module modules/liblayout.so          |
|                                                        |
| So that you can begin to use mod_layout.               |
|                                                        |
| Thanks for installing mod_layout.                      |
+--------------------------------------------------------+
Anonymous
 

Re: Installation Mod_Layout

Post by Anonymous »

Bei mir funzt das so wunderbar... Wenn ich über die httpd-Spezial Einträge in Confixx anschließend den entsprechenden Befehl reinsetze klappt das zu 100%. Sorry aber ich weis nicht woran es bei dir liegt.
blnsnoopy26
Posts: 660
Joined: 2002-10-19 14:01
 

Re: Installation Mod_Layout

Post by blnsnoopy26 »

KaiWem wrote:Bei mir funzt das so wunderbar... Wenn ich über die httpd-Spezial Einträge in Confixx anschließend den entsprechenden Befehl reinsetze klappt das zu 100%. Sorry aber ich weis nicht woran es bei dir liegt.
welchen eintrag haste denn im confixx als httpd spezial eintrag angegeben?
Weil wie gesagt, wenn ich es direkt in den vhost eintrage und apache restarte, dann wird keine Webseite mehr aufgebaut.
blnsnoopy26
Posts: 660
Joined: 2002-10-19 14:01
 

Re: Installation Mod_Layout

Post by blnsnoopy26 »

Hi,

So habe es nun soweit hinbekommen, aber ein Problem gibt es da noch.
Und zwar kann ich meine Webseite sehn mit mod_layout, aber wenn ein anderer die Website aufruft, dann kommt bei ihm Server nicht gefunden.

Mache ich mod_layout wieder aus, dann geht alles wie es soll und jeder kann die seite aufrufen. Also ist schon alles bischen komisch :(

Jemand ne Idee?
maxus
Posts: 11
Joined: 2004-06-06 02:52
 

Re: Installation Mod_Layout

Post by maxus »

Sooo ich mal wieder. Ich wollte nun die Anleitung da oben mal ausprobieren, jedoch habe die ich die Datei special.mk nicht. Heißt die bei Suse 9.0 anders oder gibts die einfach nicht?

//ok hat sich erledigt!
maxus
Posts: 11
Joined: 2004-06-06 02:52
 

Re: Installation Mod_Layout

Post by maxus »

Sorry für den Doppelpost.

//EDIT:
Ok nun läuft alles, wenn ich jedoch nun den HTTP Spezial eintrag vornehme, dann blaiben die Seiten weiß, bzw. wenn ich ihn für alle übernehme, stürzt der Apache ab.

Was nun? Modul läuft, code wurde eingegeben und nichts wird angezeigt. Wenn ich die Laxouteinträge nur mit html eintrage, passiert nichts, alles wird normal angezeigt, setze ich php hinzu oder einzeln mit rein, so bleibts weiß.
elfchen
Posts: 28
Joined: 2004-09-04 17:47
 

Re: Installation Mod_Layout

Post by elfchen »

blnsnoopy26 wrote:
maXus wrote:Hier:
http://tangent.org/index.pl?lastnode_id=362&node_id=374

Die Erklärung da oben hat allerdings nicht geklappt bei mir.
Das geht nicht. Weil mein Apache via rpm installiert ist kann ich vom Source nicht bauen, da bekomme ich immer eine Fehlermeldung.

Code: Select all

x:/usr/src/mod_layout-4.0.2a # make
Makefile:7: /usr/local/apache2/build/special.mk: Datei oder Verzeichnis nicht gefunden
make: *** Keine Regel, um »/usr/local/apache2/build/special.mk« zu erstellen.  Schluss.
Daher mein Apache 2.0.50 via rpm installiert ist habe ich kein solches verzeichnis. Gibs andere Lösung?
genau das gleiche Problem mit Suse 10.1 und mod_layout:

# make
/usr/sbin/apxs2 -c mod_layout.c
/usr/lib/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic -O2 -march=i586 -mtune=i686 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fPIC -Wall -fno-strict-aliasing -DLDAP_DEPRECATED -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -DAP_DEBUG -pthread -I/usr/include/apache2 -I/usr/include -I/usr/include/apr-1 -c -o mod_layout.lo mod_layout.c && touch mod_layout.slo
In file included from mod_layout.c:5:
mod_layout.h:13:24: error: apr_compat.h: No such file or directory
mod_layout.c: In function âcreate_dir_mconfigâ:
mod_layout.c:15: warning: implicit declaration of function âap_pcallocâ
mod_layout.c:15: warning: assignment makes pointer from integer without a cast
mod_layout.c:16: warning: implicit declaration of function âap_pstrdupâ
mod_layout.c:16: warning: assignment makes pointer from integer without a cast
mod_layout.c:36: warning: implicit declaration of function âap_make_tableâ
mod_layout.c:36: warning: assignment makes pointer from integer without a cast
mod_layout.c:47: warning: implicit declaration of function âap_table_setnâ
mod_layout.c: In function âmerge_dir_mconfigâ:
mod_layout.c:62: warning: initialization makes pointer from integer without a cast
mod_layout.c:65: warning: assignment makes pointer from integer without a cast
mod_layout.c:95: warning: assignment makes pointer from integer without a cast
mod_layout.c:97: warning: assignment makes pointer from integer without a cast
mod_layout.c:101: warning: assignment makes pointer from integer without a cast
mod_layout.c:103: warning: assignment makes pointer from integer without a cast
mod_layout.c:107: warning: assignment makes pointer from integer without a cast
mod_layout.c:109: warning: assignment makes pointer from integer without a cast
mod_layout.c:113: warning: assignment makes pointer from integer without a cast
mod_layout.c:115: warning: assignment makes pointer from integer without a cast
mod_layout.c:133: warning: implicit declaration of function âap_append_arraysâ
mod_layout.c:133: warning: assignment makes pointer from integer without a cast
mod_layout.c:161: warning: assignment makes pointer from integer without a cast
mod_layout.c:164: warning: assignment makes pointer from integer without a cast
mod_layout.c:175: warning: implicit declaration of function âap_overlay_tablesâ
mod_layout.c:175: warning: assignment makes pointer from integer without a cast
mod_layout.c:185: warning: assignment makes pointer from integer without a cast
mod_layout.c:195: warning: assignment makes pointer from integer without a cast
mod_layout.c:205: warning: assignment makes pointer from integer without a cast
mod_layout.c:215: warning: assignment makes pointer from integer without a cast
mod_layout.c:225: warning: assignment makes pointer from integer without a cast
mod_layout.c:235: warning: assignment makes pointer from integer without a cast
mod_layout.c: In function âlayout_filterâ:
mod_layout.c:293: warning: implicit declaration of function âAPR_BRIGADE_FOREACHâ
mod_layout.c:293: error: expected â;â before â{â token
mod_layout.c:255: warning: unused variable âbodyâ
mod_layout.c:254: warning: unused variable âstart_positionâ
mod_layout.c:251: warning: unused variable âlenâ
mod_layout.c:250: warning: unused variable âstrâ
mod_layout.c: In function âadd_http_headerâ:
mod_layout.c:341: warning: assignment makes pointer from integer without a cast
mod_layout.c: In function âadd_layout_patternâ:
mod_layout.c:354: warning: assignment makes pointer from integer without a cast
mod_layout.c:357: warning: assignment makes pointer from integer without a cast
mod_layout.c:358: warning: assignment makes pointer from integer without a cast
mod_layout.c:364: warning: assignment makes pointer from integer without a cast
mod_layout.c:365: warning: assignment makes pointer from integer without a cast
mod_layout.c:368: warning: assignment makes pointer from integer without a cast
mod_layout.c:369: warning: assignment makes pointer from integer without a cast
mod_layout.c:374: warning: assignment makes pointer from integer without a cast
mod_layout.c:377: warning: implicit declaration of function âap_make_arrayâ
mod_layout.c:377: warning: assignment makes pointer from integer without a cast
mod_layout.c:407: warning: implicit declaration of function âap_push_arrayâ
mod_layout.c: In function âignore_uriâ:
mod_layout.c:426: warning: assignment makes pointer from integer without a cast
mod_layout.c: In function âignore_header_uriâ:
mod_layout.c:436: warning: assignment makes pointer from integer without a cast
mod_layout.c: In function âignore_http_header_uriâ:
mod_layout.c:446: warning: assignment makes pointer from integer without a cast
mod_layout.c: In function âignore_footer_uriâ:
mod_layout.c:456: warning: assignment makes pointer from integer without a cast
mod_layout.c: In function âtag_ignore_addâ:
mod_layout.c:473: warning: assignment makes pointer from integer without a cast
mod_layout.c: In function âtag_ignore_footer_addâ:
mod_layout.c:483: warning: assignment makes pointer from integer without a cast
mod_layout.c: In function âtag_ignore_header_addâ:
mod_layout.c:493: warning: assignment makes pointer from integer without a cast
mod_layout.c: At top level:
mod_layout.c:548: warning: implicit declaration of function âAPR_XtOffsetOfâ
mod_layout.c:548: error: expected expression before âlayout_confâ
mod_layout.c:548: error: initializer element is not constant
mod_layout.c:548: error: (near initialization for âlayout_cmds[4].cmd_dataâ)
mod_layout.c:549: error: expected expression before âlayout_confâ
mod_layout.c:549: error: initializer element is not constant
mod_layout.c:549: error: (near initialization for âlayout_cmds[5].cmd_dataâ)
mod_layout.c:554: error: expected expression before âlayout_confâ
mod_layout.c:554: error: initializer element is not constant
mod_layout.c:554: error: (near initialization for âlayout_cmds[10].cmd_dataâ)
mod_layout.c:555: error: expected expression before âlayout_confâ
mod_layout.c:555: error: initializer element is not constant
mod_layout.c:555: error: (near initialization for âlayout_cmds[11].cmd_dataâ)
mod_layout.c:556: error: expected expression before âlayout_confâ
mod_layout.c:556: error: initializer element is not constant
mod_layout.c:556: error: (near initialization for âlayout_cmds[12].cmd_dataâ)
mod_layout.c:561: error: expected expression before âlayout_confâ
mod_layout.c:561: error: initializer element is not constant
mod_layout.c:561: error: (near initialization for âlayout_cmds[17].cmd_dataâ)
mod_layout.c:562: error: expected expression before âlayout_confâ
mod_layout.c:562: error: initializer element is not constant
mod_layout.c:562: error: (near initialization for âlayout_cmds[18].cmd_dataâ)
mod_layout.c:563: error: expected expression before âlayout_confâ
mod_layout.c:563: error: initializer element is not constant
mod_layout.c:563: error: (near initialization for âlayout_cmds[19].cmd_dataâ)
mod_layout.c:564: error: expected expression before âlayout_confâ
mod_layout.c:564: error: initializer element is not constant
mod_layout.c:564: error: (near initialization for âlayout_cmds[20].cmd_dataâ)
mod_layout.c:565: error: expected expression before âlayout_confâ
mod_layout.c:565: error: initializer element is not constant
mod_layout.c:565: error: (near initialization for âlayout_cmds[21].cmd_dataâ)
apxs:Error: Command failed with rc=65536
.
make: *** [mod_layout.o] Error 1


im Makefile steht was von

##
## Makefile -- Build procedure for mod_layout Apache module
##
builddir=$(shell pwd)
top_srcdir=/usr/local/apache2
top_builddir=/usr/local/apache2
#include /usr/local/apache2/build/special.mk

# the used tools
#APXS=/usr/local/apache2/bin/apxs
APXS=/usr/sbin/apxs2
APACHECTL=apachectl
CC=`$(APXS) -q CC`
INC=-I`$(APXS) -q INCLUDEDIR` `$(APXS) -q CFLAGS` #-DLAYOUT_FILEOWNER_NAME
LD_SHLIB=`apxs -q LDFLAGS_SHLIB`
VERSION = 4.0.1a
DISTNAME = mod_layout
DISTVNAME = $(DISTNAME)-$(VERSION)

Aber /usr/local/apache2 gibt es doch unter SuSE gar nicht ...

:?:
Post Reply