|
|||
|
mod_layout
Does anybody know how to set up mod_layout?
What I'm wanting to do is have a header and footer at the top and bottom of each page that is created by a client. Mod_Layout does just that but if anyone knows another way, that would be great too. cPanel.net Support Ticket Number: |
|
|||
|
The problem is actually with APXS. cPanel installs Apache to a non default directory so APXS can't find it to query it's version info creating errors when you try to install mod_layout.
Here's how I got it installed... 1) Download and extract the latest version of mod_layout to a temp directory on your server (http://software.tangent.org/download...out-3.2.tar.gz) 2) Edit the file /usr/sbin/apxs Look for the lines... my $CFG_PREFIX = q(/etc/httpd); # substituted via APACI install my $CFG_SBINDIR = q(/usr/sbin); # substituted via APACI install my $CFG_INCLUDEDIR = q(/usr/include/apache); # substituted via APACI install my $CFG_LIBEXECDIR = q(/usr/lib/apache); # substituted via APACI install my $CFG_SYSCONFDIR = q(/etc/httpd/conf); # substituted via APACI install And change them to... my $CFG_PREFIX = q(/usr/local/apache); # substituted via APACI install my $CFG_SBINDIR = q(/usr/local/apache/bin); # substituted via APACI install my $CFG_INCLUDEDIR = q(/usr/local/apache/include); # substituted via APACI install my $CFG_LIBEXECDIR = q(/usr/local/apache/libexec); # substituted via APACI install my $CFG_SYSCONFDIR = q(/usr/local/apache/conf); # substituted via APACI install 3) Save apxs and return to your mod_layout install directory. 4) make 5) make install It should install just fine.. cPanel.net Support Ticket Number: cPanel.net Support Ticket Number: |
|
|||
|
Quote:
cPanel.net Support Ticket Number: |
|
|||
|
Quote:
|
|
|||
|
I hate to bother, anyone think they could help me a bit here.
My apxs is installed /usr/local/apache/bin/apxs My apxs shows the right paths but this is what I get when I try to make `apxs -q CC` -I`apxs -q INCLUDEDIR` `apxs -q CFLAGS` -c mod_layout.c -Wall -DDEBUG /bin/sh: apxs: command not found /bin/sh: apxs: command not found /bin/sh: apxs: command not found /bin/sh: -I: command not found make: *** [mod_layout.o] Error 127 apxs command not found in /bin/sh is what I dont get here. any one know how to work around this? I would greatly appreciate any input, Thank You Rave Knights |
|
|||
|
I want to setup some free hosting, that would include banners...... is it possible to get WHM to configure httpd.conf depending on the package chosen to be installed, to add the mod_layout headers and footers to the virtualhost part? or am i going to have to add it manually each time?
|
|
|||
|
I have make installed OK. But when I trying to use it, I got segmentation error, anyone knows why ?
BTW, I install it by make a link in /usr/sbin to /usr/local/apache/bin/apxs so that it won't said apxs not found. I don't know if this is OK, but I did pass the make and make install. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|