jimlongo

Well-Known Member
Mar 20, 2008
253
21
68
I have a module that requires mod_substitute to be installed.

The installer script does something along these lines (after checking if the module is already installed, and which version of Apache) . . . error checking etc., removed

Code:
wget -N http://www-us.apache.org/dist/httpd/httpd-2.4.34.tar.gz
tar zxf httpd-2.4.34.tar.gz
cp httpd-2.4.34/modules/filters/mod_substitute.c /opt
/usr/bin/apxs -cia httpd-2.4.34/modules/filters/mod_substitute.c
If I look at my EasyApache4 profile it does not indicate that mod_substitute is installed.

My questions are:

1. If I were to enable it in the config and reprovision will that cause a problem?
2. Is there a way to install that i'm not aware of that would communicate with EA4 and "register" that the module was installed?

Any ideas or documentation would be great, thank you.
 

jimlongo

Well-Known Member
Mar 20, 2008
253
21
68
yum install ea-apache24-mod_substitute.x86_64
That seems promising, thanks.

What do I need to check first.
Should I query `yum list` to see what's available?

What if the server isn't using EA4?

Just trying to imagine the scenarios that might exist on a cPanel server.

On my servers
Code:
yum search substitute -q
=========================================== N/S matched: substitute ===========================================
ea-apache24-mod_substitute.x86_64 : Response body substitution module for the Apache HTTP Server
what are the other possibilities?
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
What if the server isn't using EA4?
Hello @jimlongo,

EasyApache 3 is quickly approaching end-of-life status. If you're server isn't using EasyApache 4, you should look into upgrading as soon as possible. You can read more about this at:

The Beginning is The End is The Beginning (of EasyApache) | cPanel Blog

Building custom packages for EasyApache 4 is possible, but requires an advanced level of system administration experience. We document more information about how it works at:

Tutorial - Building Custom Packages For EasyApache 4

Thus, the easier approach is to simply install the mod_substitute package that we already provide for use with EasyApache 4 by running the following command:

Code:
yum install ea-apache24-mod_substitute
Thank you.
 
  • Like
Reactions: jimlongo

jimlongo

Well-Known Member
Mar 20, 2008
253
21
68
Thanks Michael.

Is it possible to be using EA4 with apache22?
Do I need to check for apache version and either use
Code:
yum install ea-apache24-mod_substitute
or
yum install ea-apache22-mod_substitute
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Is it possible to be using EA4 with apache22?
Do I need to check for apache version and either use
Hello,

No, EasyApache 4 only supports Apache version 2.4.

Thank you.