Page 1 of 1
mod_layout Installation Apache 2.2 Debian Etch.
Posted: 2008-04-24 12:53
by iroot
Ich Probiere momentan verzweifelt mod_layout auf meinem Apache 2.2 --- Debian Etch zu installieren. Da es ja noch kein Debain Package für Etch und Apache2 gibt muss ich das wohl selber Compilieren.
Ich hab mir die Sources für Apache 2.2 heruntergeladen und mit make zuerst Compiliertu und dann mit make install die Dateien in die richtigen Verzeichnisse kopieren lassen, soweit schon und gut.
Danach hab ich in /etc/apache2/httpd.conf folgenden Eintrag gemacht und Apache neugestartet.
LoadModule layout_module /usr/lib/apache2/modules/mod_layout.so
Danach hab ich in der vhost Datei folgendes eingefügt:
Code: Select all
ServerName mail.meineseite.de
ServerAlias mail.meineseite.de *.mail.meineseite.de
DocumentRoot /var/www/projekt/mail
[color=#FF0000]
#LayoutDefaultHandlers On
LayoutFooter "Copyright Foobar, 2000"[/color]
Danach apache neugestartet und die Seite in der Hoffunung das unten auf der Seite der Text eingefügt wird aufgerufen, aber nichts ist die Seite wird unverändert ausgegeben :(
Kleine Nachbemerkung die vlt. wichtig sein könnte:
Wenn ich #LayoutDefaultHandlers On einkommentiere bekomme ich einen Error beim Neustart von Apache:
Invalid command 'LayoutDefaultHandlers', perhaps misspelled or defined by a module not included in the server configuration
failed!
Ich hoffe jemand kann mir helfen.
Freundliche Grüssse
IRoot
Re: mod_layout Installation Apache 2.2 Debian Etch.
Posted: 2008-04-24 17:15
by Roger Wilco
Dein mod_layout wurde nicht geladen.
Re: mod_layout Installation Apache 2.2 Debian Etch.
Posted: 2008-04-24 17:27
by iroot
Ja, tolle Antwort und wie bekomme ich es hin dass es geladen wird?
Aber wenn es nicht geladen wurde wieso kann ich denn folgenden Eintrag in der vhost Datei gebrauchen: LayoutFooter "Copyright Foobar, 2000" ohne das Apache beim Neustart reklamiert?
Re: mod_layout Installation Apache 2.2 Debian Etch.
Posted: 2008-04-24 17:51
by Joe User
Re: mod_layout Installation Apache 2.2 Debian Etch.
Posted: 2008-04-24 18:47
by iroot
Ja, es wird geladen :?
Code: Select all
Loaded Modules:
core_module (static)
log_config_module (static)
logio_module (static)
mpm_prefork_module (static)
http_module (static)
so_module (static)
alias_module (shared)
auth_basic_module (shared)
authn_file_module (shared)
authz_default_module (shared)
authz_groupfile_module (shared)
authz_host_module (shared)
authz_user_module (shared)
autoindex_module (shared)
cgi_module (shared)
dir_module (shared)
env_module (shared)
fcgid_module (shared)
mime_module (shared)
negotiation_module (shared)
rewrite_module (shared)
setenvif_module (shared)
status_module (shared)
suexec_module (shared)
layout_module (shared)
Syntax OK
Ich bin echt am verzweifeln keine Ahnung wieso es nicht funktioniert. :(
Freundliche Grüsse
IRoot
Re: mod_layout Installation Apache 2.2 Debian Etch.
Posted: 2008-04-24 18:58
by Joe User
Re: mod_layout Installation Apache 2.2 Debian Etch.
Posted: 2008-04-24 19:15
by iroot
Meinst du ich hätte mir das noch nicht durchgelesen :?
Das Problem ist ich kann einige Direktvien wie ich im ersten post schon geschildert habe nicht mal brauchen.... (z.b LayoutDefaultHandlers On). Sobald ich diese einsetzte startet Apache nicht mehr, die Fehlermeldung steht auch im ersten Post.
Die FAQ bringt mir doch nix wenns noch nicht mal richtig läuft bzw. geladen wird.
Freundliche Grüsse
IRoot
Re: mod_layout Installation Apache 2.2 Debian Etch.
Posted: 2008-04-24 19:37
by Joe User
Hast Du Version 5.0 oder 5.1? Wie schimpft sich denn Dein APXS? apxs oder apxs2? Bei letzterem muss das Makefile angepasst werden...
Re: mod_layout Installation Apache 2.2 Debian Etch.
Posted: 2008-04-24 20:00
by iroot
Also ich habe die Version 5.1 und apxs2.
Hier der Auszug aus meinem Makefile den ich geändert habe(APXS Pfad angepasst):
Code: Select all
APXS=/usr/bin/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 = 5.1
DISTNAME = mod_layout
DISTVNAME = $(DISTNAME)-$(VERSION)
Freundliche Grüsse
IRoot
Re: mod_layout Installation Apache 2.2 Debian Etch.
Posted: 2008-04-24 20:07
by Joe User
Funktioniert denn Version 5.0?
Re: mod_layout Installation Apache 2.2 Debian Etch.
Posted: 2008-04-24 20:50
by iroot
Wo bekomme ich die her? Ich hab nur die 5.1 gesehen :)
Re: mod_layout Installation Apache 2.2 Debian Etch.
Posted: 2008-04-24 21:01
by Joe User
Re: mod_layout Installation Apache 2.2 Debian Etch.
Posted: 2008-04-24 21:05
by Joe User
Code: Select all
diff -ur mod_layout-5.0/directives.h mod_layout-5.1/directives.h
--- mod_layout-5.0/directives.h 2007-02-21 23:43:43.000000000 +0100
+++ mod_layout-5.1/directives.h 2007-12-26 00:07:20.000000000 +0100
@@ -10,31 +10,16 @@
#define LayoutHandler "Enter either a mime type or a handler type. This type will then be handled by mod_layout."
#define LayoutIgnoreURI "Enter a URI that should be ignored, regular expressions are allowed."
#define LayoutIgnoreHeaderURI "Enter a URI that should be ignored by the header, regular expressions are allowed."
-#define LayoutIgnoreHTTPHeaderURI "Enter a URI that should be ignored by the HTTPHeader, regular expressions are allowed."
#define LayoutIgnoreFooterURI "Enter a URI that should be ignored by the footer, regular expressions are allowed."
#define LayoutComment "This can either be On or Off (default it Off). It places HTML comments in the outbound text describing when and where mod_layout has been inserting text."
-#define LayoutProxy "This can either be On or Off (default it Off). This is both experimental and probably quite broke."
#define LayoutDisplayOriginal "This can either be On or Off (default it On). When off the original document is not displayed."
-#define LayoutDefaultHandlers "Turns On (default) or Off a list of standard types to handle."
#define LayoutTimeFormat "This takes a SSI style timme format that can be used to change the output by mod_layout's internal TIME environmental variables that it introduces."
-#define LayoutHTTPHeader "Takes a URI to call for the HTTP Header."
-#define LayoutHTTPOverrideHandler "Specify handlers that mod_layout should produce HTTP headers for."
-#define LayoutHTTPOverrideURI "Specify URI's that mod_layout should produce HTTP headers for."
#define LayoutFooterOff "This takes no arguments. If found it will turn off the footer."
#define LayoutHeaderOff "This takes no arguments. If found it will turn off the header."
-#define LayoutHTTPHeaderOff "This takes no arguments. If found it will turn off the http header."
-#define LayoutPostAsync "Turns on and off asynchronous POSTs (AKA everything can see the post data)."
-#define LayoutCache "This moves the default cache from /tmp to another directory(or a RAM disk)."
#define LayoutAppend "Turning this On or Off afffects whether or not headers and footers are appended when creating subsections."
#define LayoutMerge "Turning this on and off will tell mod_layout to attempt to resolve conten (do a merger of the footer, body and header text"
-#define LayoutMergeBeginTag "Use this to change the default begin tag to use during merges (the default string is "<HTML>""
-#define LayoutMergeEndTag "Use this to change the default end tag to use during merges (the default string is "<\HTML>""
-#define LayoutHeaderAppend "Use this to change the default end tag to use during merges (the default string is "<\HTML>""
-#define LayoutFooterAppend "Use this to change the default end tag to use during merges (the default string is "<\HTML>""
-#define LayoutMergeErrorIgnore "When enabled (it takes on and off flags) mod_layout will not try to wrap any errors. Merge must be enabled for this to work. The default for this is off."
#define LayoutIgnoreTag "If this tag is found during a merge, no footer or header will be inserted into the document"
#define LayoutIgnoreTagFooter "If this tag is found during a merge, no footer will be inserted into the document"
#define LayoutIgnoreTagHeader "If this tag is found during a merge, no header will be inserted into the document"
#define LayoutHTMLHandler "This turns on mod_layout's own text/html and text/plain handler"
-#define LayoutReplaceTags "If this is enabled and you are doing a merge, the tags used for the merge will be replaced."
#define LayoutNotes "If you want applications to do notes (a set of directives to control actions inside apache)."
Re: mod_layout Installation Apache 2.2 Debian Etch.
Posted: 2008-04-26 11:36
by iroot
Mit Version 5.0 Funktionierts auch nicht immernoch die selben Fehler....
Die vhost Datei die ich zum testen verwende:
Code: Select all
<VirtualHost *:80>
ServerName mail.projekt.de
ServerAlias mail.projekt.de *.mail.projekt.de
DocumentRoot /var/www/projekt/mail
LayoutHandler application/x-httpd-php
LayoutFooter "Copyright Foobar, 2000"
SuexecUserGroup benutzer benutzer
<Directory /var/www/projekt/mail>
AddHandler fcgid-script .php
FCGIWrapper /var/www/projekt/php_wrappers/projekt/projekt.de .php
<Files *.php>
Options ExecCGI
</Files>
AllowOverride All
</Directory>
</VirtualHost>
Beim starten von Apache kommt folgender fehler:
Code: Select all
Forcing reload of web server (apache2)... waiting Syntax error on line 6 of /etc/apache2/sites-enabled/mail.projekt.de:
Invalid command 'LayoutHandler', perhaps misspelled or defined by a module not included in the server configuration
failed!
Wenn ich LayoutHandler auskommentiere startet Apache, aber der Footer wird nicht auf mail.projekt.de angezeigt.
Langsam verzweifle ich an diesem mod.
Freundliche Grüsse
IRoot
Re: mod_layout Installation Apache 2.2 Debian Etch.
Posted: 2008-04-26 23:15
by iroot
keiner mehr eine Idee?
Re: mod_layout Installation Apache 2.2 Debian Etch.
Posted: 2009-02-11 08:58
by menkisys
Hast du das Problem irgendwie lösen können? Und wie ?
Ich habe ähnliche Probleme.
Es gibt dazu keine richtige Anleitung passend zu der Version 5.2.
MENKI