Mod_layout installed but not in phpinfo

aedges

Member
Jun 9, 2008
9
0
51
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 :)
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
25
143
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