Community Forums
Connect with us on LinkedIn
Community Notice
  
+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 39
  1. #1
    Member
    Join Date
    Sep 2002
    Posts
    123

    Default 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:

  2. #2
    JSD
    JSD is offline
    Member
    Join Date
    Feb 2003
    Posts
    15

    Default

    im having problems as well installing mod_layout....any help?

    cPanel.net Support Ticket Number:

  3. #3
    Member
    Join Date
    Sep 2002
    Posts
    123

    Default

    I would love to see it as part of the RPM's


    cPanel.net Support Ticket Number:

  4. #4
    Registered User
    Join Date
    Dec 2002
    Posts
    2

    Default

    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:

  5. #5
    JSD
    JSD is offline
    Member
    Join Date
    Feb 2003
    Posts
    15

    Default

    nice!

    you are a genius! works perfectly for me.

    cPanel.net Support Ticket Number:

  6. #6
    Member
    Join Date
    Sep 2002
    Posts
    282

    Default

    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:

  7. #7
    Member
    Join Date
    Jun 2002
    Posts
    132

    Default

    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?

  8. #8
    Member
    Join Date
    Nov 2003
    Location
    Some Where Out There!
    Posts
    87

    Default

    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

  9. #9
    Member
    Join Date
    Jul 2003
    Posts
    138

    Default

    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?

  10. #10
    Member
    Join Date
    Dec 2003
    Location
    USA
    Posts
    56

    Default

    yay i got mod_layout installed ! and i had the same errors as 2 post above me but! i fixed it
    Jamie Havens


  11. #11
    Member
    Join Date
    Oct 2001
    Posts
    348

    Default

    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).

  12. #12
    Member casey's Avatar
    Join Date
    Jan 2003
    Location
    If there is trouble, it will find me
    Posts
    2,336

    Default

    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?

  13. #13
    Member
    Join Date
    Dec 2003
    Location
    USA
    Posts
    56

    Default

    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


  14. #14
    Member
    Join Date
    Oct 2001
    Posts
    348

    Default

    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.

  15. #15
    Member
    Join Date
    Oct 2001
    Posts
    348

    Default

    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 ?

Similar Threads & Tags
Similar threads

  1. Please help me with mod_layout
    By hexstar in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-23-2006, 05:02 PM
  2. mod_layout...how to use?
    By Spirid in forum New User Questions
    Replies: 3
    Last Post: 11-02-2004, 10:48 PM
  3. How do you install mod_layout?
    By Valetia in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-29-2003, 08:24 AM
  4. Mod_layout
    By mbarb in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 12-17-2002, 04:51 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube