#1 (permalink)  
Old 06-11-2003, 05:27 PM
Registered User
 
Join Date: Sep 2002
Posts: 123
phantom
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:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-04-2003, 10:05 PM
JSD JSD is offline
Registered User
 
Join Date: Feb 2003
Posts: 15
JSD
im having problems as well installing mod_layout....any help?

cPanel.net Support Ticket Number:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-04-2003, 10:40 PM
Registered User
 
Join Date: Sep 2002
Posts: 123
phantom
I would love to see it as part of the RPM's


cPanel.net Support Ticket Number:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-05-2003, 03:02 AM
Registered User
 
Join Date: Dec 2002
Posts: 2
showmantec
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:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 07-05-2003, 09:53 AM
JSD JSD is offline
Registered User
 
Join Date: Feb 2003
Posts: 15
JSD
nice!

you are a genius! works perfectly for me.

cPanel.net Support Ticket Number:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 07-05-2003, 04:09 PM
Registered User
 
Join Date: Sep 2002
Posts: 282
perlchild
Quote:
Originally posted by showmantec
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:
I've actually had a good experience removing the apache that comes with redhat first... so there is no /usr/sbin/apxs and /usr/local/apache/bin/apxs being in the path, is found just fine

cPanel.net Support Ticket Number:
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 10-28-2003, 09:29 PM
Registered User
 
Join Date: Jun 2002
Posts: 118
Valetia
Quote:
Originally posted by perlchild
I've actually had a good experience removing the apache that comes with redhat first... so there is no /usr/sbin/apxs and /usr/local/apache/bin/apxs being in the path, is found just fine
How do you do that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-04-2004, 02:31 PM
Registered User
 
Join Date: Nov 2003
Location: Some Where Out There!
Posts: 87
RaveKnights
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-27-2004, 06:22 PM
Registered User
 
Join Date: Jul 2003
Posts: 138
I-Web
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-16-2004, 08:43 PM
Registered User
 
Join Date: Dec 2003
Location: USA
Posts: 56
Optical
yay i got mod_layout installed ! and i had the same errors as 2 post above me but! i fixed it
__________________
Jamie Havens

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 04-20-2004, 09:24 AM
Registered User
 
Join Date: Oct 2001
Posts: 338
jameshsi
Sorry to bother you guys, but can someone shows me how to use it ?? Is there some examples or instructions how to make the banners shows for some hosting accounts (not all).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 04-20-2004, 09:34 AM
casey's Avatar
Registered User
 
Join Date: Jan 2003
Location: If there is trouble, it will find me
Posts: 2,336
casey is an unknown quantity at this point
Quote:
Originally posted by Optical
yay i got mod_layout installed ! and i had the same errors as 2 post above me but! i fixed it
And you don't want to share what you did to fix the problem?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 04-20-2004, 10:45 AM
Registered User
 
Join Date: Dec 2003
Location: USA
Posts: 56
Optical
I do all i did was edit the make file, and put in the EXACT paths to apex or what ever it was
__________________
Jamie Havens

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 04-20-2004, 10:56 AM
Registered User
 
Join Date: Oct 2001
Posts: 338
jameshsi
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 04-20-2004, 09:01 PM
Registered User
 
Join Date: Oct 2001
Posts: 338
jameshsi
Although I pass the make, and apache works fine, but when I add :
LayoutFooter /home/xxx/public_html/footer.txt
and restart apache, I see segmentation error.
Why ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:58 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc