install apache module by script
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
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.
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.
-
why not just install it with yum yum install ea-apache24-mod_substitute.x86_64 :) 0 -
update I just looked mod_substitute comes up just fine in EA4 0 -
[quote]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 serversyum 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?0 -
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: 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:yum install ea-apache24-mod_substitute
Thank you.0 -
Thanks Michael. Is it possible to be using EA4 with apache22? Do I need to check for apache version and either use yum install ea-apache24-mod_substitute or yum install ea-apache22-mod_substitute0 -
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.0
Please sign in to leave a comment.
Comments
6 comments