The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mod_layout installed but not in phpinfo

Discussion in 'General Discussion' started by aedges, Nov 10, 2010.

  1. aedges

    aedges Member

    Joined:
    Jun 9, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I have installed mod_layout following the guide below.

    Code:
    If you are using Apache 1.3 then you need mod_layout-3.1
    If you are using Apache 2 then you need mod_layout-4.1
    If you are using Apache 2.2 then you need mod_layout-5.1
    
    How to Install for CPanel
    
    1. Navigate to temp folder
    
    cd /tmp
    
    2. Download mod_layout
    
    wget http://download.tangent.org/mod_layout-5.1.tar.gz
    
    3. Decompress it
    
    tar xvfz mod_layout-5.1.tar.gz
    
    4. Goto mod_layout-5.1
    
    cd mod_layout-5.1
    
    5. Edit Makefile
    
    pico Makefile
    
    6. Ensure APXS path is correct. For CPanel:
    
    Find Code:
    
    # the used tools
    APXS=apxs
    APACHECTL=apachectl
    CC=`apxs -q CC`
    INC=-I`apxs -q INCLUDEDIR` `$(APXS) -q CFLAGS` #-DLAYOUT_FILEOWNER_NAME
    LD_SHLIB=`apxs -q LDFLAGS_SHLIB`
    
    Replace with Code:
    
    # the used tools
    APXS=/usr/local/apache/bin/apxs
    APACHECTL=apachectl
    CC=`/usr/local/apache/bin/apxs -q CC`
    INC=-I`/usr/local/apache/bin/apxs -q INCLUDEDIR` `$(APXS) -q CFLAGS` #-DLAYOUT_FILEOWNER_NAME
    LD_SHLIB=`/usr/local/apache/bin/apxs -q LDFLAGS_SHLIB`
    
    7. Save the file Makefile
    
    ctrl+x
    
    Type 'Yes' and then press 'Enter'.
    
    8. Start the installation
    
    make
    
    make install
    I see no errors but when i check phpinfo there is no mod_layout.

    Do i need to add anything anywhere?
    i am a complete novice with VPS so it could even be something simple :)
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    An Apache module will not be listed in phpinfo() output. phpinfo() only reports on PHP options and extensions, not Apache modules.

    To see what Apache modules are loaded, query Apache directly. The following command:

    Code:
    # /usr/local/apache/bin/httpd -l
    will list all of the compiled-in Apache modules (those that are part of Apache but do not have a LoadModule entry in the httpd.conf file). The following command:

    Code:
    # /usr/local/apache/bin/httpd -M
    will list all of the loaded modules.

    Since the instructions you listed include APXS, mod_layout should be listed in the output of httpd -M. However, I do not see anything in the instructions you provided instructing you to add a LoadModule entry for mod_layout to the httpd.conf file. Is there any such entry in your httpd.conf file? You can use this command to check:

    Code:
    # grep mod_layout /usr/local/apache/conf/httpd.conf
     
  3. aedges

    aedges Member

    Joined:
    Jun 9, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Great it is loaded in

    Code:
    # /usr/local/apache/bin/httpd -M
    Thank you very much for that i reinstalled my whole cpanel twice as i thought i did something wrong :)

    Also i got the loadfile entry from another site and forgot to list it

    Thank you very much!
     
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You are very welcome. I am glad I was able to help.
     
Loading...

Share This Page