How to update Apache and PHP using SCL?
Clash Royale CLAN TAG#URR8PPP
I'm testing an upgrade of PHP using SCLs. The testing is happening on a local VM so its OK to break things as we develop a procedure. Following The SCL Repositories I was able to update Python to 2.7.13 and activate it through profiles.d/
. I'm now trying to upgrade Apache and PHP.
According to Apache Downloads the latest is Apache 2.4.29. When I attempt to update Apache with yum install httpd
I am told Package httpd-2.4.6-67.el7.centos.6.x86_64 already installed and the latest. And if I use yum install httpd24
then SCL tries to install Apache 1.18.
yum search httpd
is not that helpful. It lists the packages (and sometimes notes SCL) but it lacks version numbers.
How does one install the latest Apache and PHP when using SCL programs?
centos package-management repository scl
add a comment |
I'm testing an upgrade of PHP using SCLs. The testing is happening on a local VM so its OK to break things as we develop a procedure. Following The SCL Repositories I was able to update Python to 2.7.13 and activate it through profiles.d/
. I'm now trying to upgrade Apache and PHP.
According to Apache Downloads the latest is Apache 2.4.29. When I attempt to update Apache with yum install httpd
I am told Package httpd-2.4.6-67.el7.centos.6.x86_64 already installed and the latest. And if I use yum install httpd24
then SCL tries to install Apache 1.18.
yum search httpd
is not that helpful. It lists the packages (and sometimes notes SCL) but it lacks version numbers.
How does one install the latest Apache and PHP when using SCL programs?
centos package-management repository scl
add a comment |
I'm testing an upgrade of PHP using SCLs. The testing is happening on a local VM so its OK to break things as we develop a procedure. Following The SCL Repositories I was able to update Python to 2.7.13 and activate it through profiles.d/
. I'm now trying to upgrade Apache and PHP.
According to Apache Downloads the latest is Apache 2.4.29. When I attempt to update Apache with yum install httpd
I am told Package httpd-2.4.6-67.el7.centos.6.x86_64 already installed and the latest. And if I use yum install httpd24
then SCL tries to install Apache 1.18.
yum search httpd
is not that helpful. It lists the packages (and sometimes notes SCL) but it lacks version numbers.
How does one install the latest Apache and PHP when using SCL programs?
centos package-management repository scl
I'm testing an upgrade of PHP using SCLs. The testing is happening on a local VM so its OK to break things as we develop a procedure. Following The SCL Repositories I was able to update Python to 2.7.13 and activate it through profiles.d/
. I'm now trying to upgrade Apache and PHP.
According to Apache Downloads the latest is Apache 2.4.29. When I attempt to update Apache with yum install httpd
I am told Package httpd-2.4.6-67.el7.centos.6.x86_64 already installed and the latest. And if I use yum install httpd24
then SCL tries to install Apache 1.18.
yum search httpd
is not that helpful. It lists the packages (and sometimes notes SCL) but it lacks version numbers.
How does one install the latest Apache and PHP when using SCL programs?
centos package-management repository scl
centos package-management repository scl
edited Dec 26 '18 at 11:48
jww
asked Dec 20 '17 at 21:28
jwwjww
1,58232263
1,58232263
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Here are my field notes for the upgrade of Apache, Python and PHP. It also includes mod_ssl
, but lacks mod_security
. I cannot find mod_security
in the SCL.
##################################################
# https://access.redhat.com/solutions/527703
# https://www.hogarthuk.com/?q=node/15
# https://developers.redhat.com/blog/2014/03/19/permanently-enable-a-software-collection/
##################################################
# Enable SCL
##################################################
yum -y install centos-release-scl
yum-config-manager --enable rhel-server-rhscl-7-rpms
##################################################
# Python 2.7
##################################################
yum -y install python27
# Add enable-scl-python27.sh
cat /etc/profile.d/enable-scl-python27.sh
#!/usr/bin/env bash
source scl_source enable python27
##################################################
# PHP 7.1
##################################################
yum -y install rh-php71 rh-php71-php rh-php71-ssl rh-php71-php-mysqlnd
# Config at /etc/opt/rh/rh-php71/php.ini
# Add enable-scl-php71.sh
cat /etc/profile.d/enable-scl-php71.sh
#!/usr/bin/env bash
source scl_source enable rh-php71
##################################################
# Apache 2.4
##################################################
yum -y install httpd24
yum -y install httpd24-httpd-tools httpd24-mod_php httpd24-mod_ssl
# Add enable-scl-php71.sh
cat /etc/profile.d/enable-scl-httpd24.sh
#!/usr/bin/env bash
source scl_source enable httpd24
# Disable old, enable new
systemctl disable httpd.service
systemctl enable httpd24-httpd.service
# Config at /opt/rh/httpd24/root/etc/httpd/httpd.conf
# or /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf
# Config at /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf
##################################################
# httpd-ssl-pass-dialog
# The original ssl.conf probably includes this:
# SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog
# Change it to this:
# /opt/rh/httpd24/root/usr/libexec/httpd-ssl-pass-dialog
##################################################
# !!! TEST APACHE !!!
apachectl configtest
# ps -aux | egrep 'apache|http'
root 1424 0.1 1.2 319644 13376 ? Ss 00:54 0:00 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
apache 1425 0.0 0.8 361184 8400 ? Sl 00:54 0:00 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
...
##################################################
# Backup fresh CONF
##################################################
cp /etc/opt/rh/rh-php71/php.ini /etc/opt/rh/rh-php71/php.ini.bu
cp /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf.bu
cp /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf.bu
##################################################
# Copy old CONF to new CONF
##################################################
# Copy httpd.conf and ssl.conf from /etc/httpd to /opt/rh/httpd24/root/etc/httpd
# Change SERVER_ROOT from /etc/httpd to /opt/rh/httpd24/root/etc/httpd
# Leave DOCUMENT_ROOT unchanged. The new server can serve from the old location.
# Leave mod_ssl unchanged. The old and new mod_ssl use /etc/pki/tls/certs and /etc/pki/tls/private.
# php.ini is too different between version 5 and version 7. Manually copy the hardening.
##################################################
# Hardening
##################################################
# List unneeded functions from PHP in disable_functions
# Comment unneeded modules in /opt/rh/httpd24/root/etc/httpd/conf.modules.d
##################################################
# Important Diff's after cp
##################################################
diff /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf.bu /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf
diff /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf.bu /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f412122%2fhow-to-update-apache-and-php-using-scl%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here are my field notes for the upgrade of Apache, Python and PHP. It also includes mod_ssl
, but lacks mod_security
. I cannot find mod_security
in the SCL.
##################################################
# https://access.redhat.com/solutions/527703
# https://www.hogarthuk.com/?q=node/15
# https://developers.redhat.com/blog/2014/03/19/permanently-enable-a-software-collection/
##################################################
# Enable SCL
##################################################
yum -y install centos-release-scl
yum-config-manager --enable rhel-server-rhscl-7-rpms
##################################################
# Python 2.7
##################################################
yum -y install python27
# Add enable-scl-python27.sh
cat /etc/profile.d/enable-scl-python27.sh
#!/usr/bin/env bash
source scl_source enable python27
##################################################
# PHP 7.1
##################################################
yum -y install rh-php71 rh-php71-php rh-php71-ssl rh-php71-php-mysqlnd
# Config at /etc/opt/rh/rh-php71/php.ini
# Add enable-scl-php71.sh
cat /etc/profile.d/enable-scl-php71.sh
#!/usr/bin/env bash
source scl_source enable rh-php71
##################################################
# Apache 2.4
##################################################
yum -y install httpd24
yum -y install httpd24-httpd-tools httpd24-mod_php httpd24-mod_ssl
# Add enable-scl-php71.sh
cat /etc/profile.d/enable-scl-httpd24.sh
#!/usr/bin/env bash
source scl_source enable httpd24
# Disable old, enable new
systemctl disable httpd.service
systemctl enable httpd24-httpd.service
# Config at /opt/rh/httpd24/root/etc/httpd/httpd.conf
# or /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf
# Config at /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf
##################################################
# httpd-ssl-pass-dialog
# The original ssl.conf probably includes this:
# SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog
# Change it to this:
# /opt/rh/httpd24/root/usr/libexec/httpd-ssl-pass-dialog
##################################################
# !!! TEST APACHE !!!
apachectl configtest
# ps -aux | egrep 'apache|http'
root 1424 0.1 1.2 319644 13376 ? Ss 00:54 0:00 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
apache 1425 0.0 0.8 361184 8400 ? Sl 00:54 0:00 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
...
##################################################
# Backup fresh CONF
##################################################
cp /etc/opt/rh/rh-php71/php.ini /etc/opt/rh/rh-php71/php.ini.bu
cp /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf.bu
cp /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf.bu
##################################################
# Copy old CONF to new CONF
##################################################
# Copy httpd.conf and ssl.conf from /etc/httpd to /opt/rh/httpd24/root/etc/httpd
# Change SERVER_ROOT from /etc/httpd to /opt/rh/httpd24/root/etc/httpd
# Leave DOCUMENT_ROOT unchanged. The new server can serve from the old location.
# Leave mod_ssl unchanged. The old and new mod_ssl use /etc/pki/tls/certs and /etc/pki/tls/private.
# php.ini is too different between version 5 and version 7. Manually copy the hardening.
##################################################
# Hardening
##################################################
# List unneeded functions from PHP in disable_functions
# Comment unneeded modules in /opt/rh/httpd24/root/etc/httpd/conf.modules.d
##################################################
# Important Diff's after cp
##################################################
diff /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf.bu /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf
diff /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf.bu /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf
add a comment |
Here are my field notes for the upgrade of Apache, Python and PHP. It also includes mod_ssl
, but lacks mod_security
. I cannot find mod_security
in the SCL.
##################################################
# https://access.redhat.com/solutions/527703
# https://www.hogarthuk.com/?q=node/15
# https://developers.redhat.com/blog/2014/03/19/permanently-enable-a-software-collection/
##################################################
# Enable SCL
##################################################
yum -y install centos-release-scl
yum-config-manager --enable rhel-server-rhscl-7-rpms
##################################################
# Python 2.7
##################################################
yum -y install python27
# Add enable-scl-python27.sh
cat /etc/profile.d/enable-scl-python27.sh
#!/usr/bin/env bash
source scl_source enable python27
##################################################
# PHP 7.1
##################################################
yum -y install rh-php71 rh-php71-php rh-php71-ssl rh-php71-php-mysqlnd
# Config at /etc/opt/rh/rh-php71/php.ini
# Add enable-scl-php71.sh
cat /etc/profile.d/enable-scl-php71.sh
#!/usr/bin/env bash
source scl_source enable rh-php71
##################################################
# Apache 2.4
##################################################
yum -y install httpd24
yum -y install httpd24-httpd-tools httpd24-mod_php httpd24-mod_ssl
# Add enable-scl-php71.sh
cat /etc/profile.d/enable-scl-httpd24.sh
#!/usr/bin/env bash
source scl_source enable httpd24
# Disable old, enable new
systemctl disable httpd.service
systemctl enable httpd24-httpd.service
# Config at /opt/rh/httpd24/root/etc/httpd/httpd.conf
# or /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf
# Config at /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf
##################################################
# httpd-ssl-pass-dialog
# The original ssl.conf probably includes this:
# SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog
# Change it to this:
# /opt/rh/httpd24/root/usr/libexec/httpd-ssl-pass-dialog
##################################################
# !!! TEST APACHE !!!
apachectl configtest
# ps -aux | egrep 'apache|http'
root 1424 0.1 1.2 319644 13376 ? Ss 00:54 0:00 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
apache 1425 0.0 0.8 361184 8400 ? Sl 00:54 0:00 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
...
##################################################
# Backup fresh CONF
##################################################
cp /etc/opt/rh/rh-php71/php.ini /etc/opt/rh/rh-php71/php.ini.bu
cp /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf.bu
cp /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf.bu
##################################################
# Copy old CONF to new CONF
##################################################
# Copy httpd.conf and ssl.conf from /etc/httpd to /opt/rh/httpd24/root/etc/httpd
# Change SERVER_ROOT from /etc/httpd to /opt/rh/httpd24/root/etc/httpd
# Leave DOCUMENT_ROOT unchanged. The new server can serve from the old location.
# Leave mod_ssl unchanged. The old and new mod_ssl use /etc/pki/tls/certs and /etc/pki/tls/private.
# php.ini is too different between version 5 and version 7. Manually copy the hardening.
##################################################
# Hardening
##################################################
# List unneeded functions from PHP in disable_functions
# Comment unneeded modules in /opt/rh/httpd24/root/etc/httpd/conf.modules.d
##################################################
# Important Diff's after cp
##################################################
diff /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf.bu /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf
diff /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf.bu /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf
add a comment |
Here are my field notes for the upgrade of Apache, Python and PHP. It also includes mod_ssl
, but lacks mod_security
. I cannot find mod_security
in the SCL.
##################################################
# https://access.redhat.com/solutions/527703
# https://www.hogarthuk.com/?q=node/15
# https://developers.redhat.com/blog/2014/03/19/permanently-enable-a-software-collection/
##################################################
# Enable SCL
##################################################
yum -y install centos-release-scl
yum-config-manager --enable rhel-server-rhscl-7-rpms
##################################################
# Python 2.7
##################################################
yum -y install python27
# Add enable-scl-python27.sh
cat /etc/profile.d/enable-scl-python27.sh
#!/usr/bin/env bash
source scl_source enable python27
##################################################
# PHP 7.1
##################################################
yum -y install rh-php71 rh-php71-php rh-php71-ssl rh-php71-php-mysqlnd
# Config at /etc/opt/rh/rh-php71/php.ini
# Add enable-scl-php71.sh
cat /etc/profile.d/enable-scl-php71.sh
#!/usr/bin/env bash
source scl_source enable rh-php71
##################################################
# Apache 2.4
##################################################
yum -y install httpd24
yum -y install httpd24-httpd-tools httpd24-mod_php httpd24-mod_ssl
# Add enable-scl-php71.sh
cat /etc/profile.d/enable-scl-httpd24.sh
#!/usr/bin/env bash
source scl_source enable httpd24
# Disable old, enable new
systemctl disable httpd.service
systemctl enable httpd24-httpd.service
# Config at /opt/rh/httpd24/root/etc/httpd/httpd.conf
# or /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf
# Config at /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf
##################################################
# httpd-ssl-pass-dialog
# The original ssl.conf probably includes this:
# SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog
# Change it to this:
# /opt/rh/httpd24/root/usr/libexec/httpd-ssl-pass-dialog
##################################################
# !!! TEST APACHE !!!
apachectl configtest
# ps -aux | egrep 'apache|http'
root 1424 0.1 1.2 319644 13376 ? Ss 00:54 0:00 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
apache 1425 0.0 0.8 361184 8400 ? Sl 00:54 0:00 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
...
##################################################
# Backup fresh CONF
##################################################
cp /etc/opt/rh/rh-php71/php.ini /etc/opt/rh/rh-php71/php.ini.bu
cp /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf.bu
cp /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf.bu
##################################################
# Copy old CONF to new CONF
##################################################
# Copy httpd.conf and ssl.conf from /etc/httpd to /opt/rh/httpd24/root/etc/httpd
# Change SERVER_ROOT from /etc/httpd to /opt/rh/httpd24/root/etc/httpd
# Leave DOCUMENT_ROOT unchanged. The new server can serve from the old location.
# Leave mod_ssl unchanged. The old and new mod_ssl use /etc/pki/tls/certs and /etc/pki/tls/private.
# php.ini is too different between version 5 and version 7. Manually copy the hardening.
##################################################
# Hardening
##################################################
# List unneeded functions from PHP in disable_functions
# Comment unneeded modules in /opt/rh/httpd24/root/etc/httpd/conf.modules.d
##################################################
# Important Diff's after cp
##################################################
diff /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf.bu /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf
diff /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf.bu /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf
Here are my field notes for the upgrade of Apache, Python and PHP. It also includes mod_ssl
, but lacks mod_security
. I cannot find mod_security
in the SCL.
##################################################
# https://access.redhat.com/solutions/527703
# https://www.hogarthuk.com/?q=node/15
# https://developers.redhat.com/blog/2014/03/19/permanently-enable-a-software-collection/
##################################################
# Enable SCL
##################################################
yum -y install centos-release-scl
yum-config-manager --enable rhel-server-rhscl-7-rpms
##################################################
# Python 2.7
##################################################
yum -y install python27
# Add enable-scl-python27.sh
cat /etc/profile.d/enable-scl-python27.sh
#!/usr/bin/env bash
source scl_source enable python27
##################################################
# PHP 7.1
##################################################
yum -y install rh-php71 rh-php71-php rh-php71-ssl rh-php71-php-mysqlnd
# Config at /etc/opt/rh/rh-php71/php.ini
# Add enable-scl-php71.sh
cat /etc/profile.d/enable-scl-php71.sh
#!/usr/bin/env bash
source scl_source enable rh-php71
##################################################
# Apache 2.4
##################################################
yum -y install httpd24
yum -y install httpd24-httpd-tools httpd24-mod_php httpd24-mod_ssl
# Add enable-scl-php71.sh
cat /etc/profile.d/enable-scl-httpd24.sh
#!/usr/bin/env bash
source scl_source enable httpd24
# Disable old, enable new
systemctl disable httpd.service
systemctl enable httpd24-httpd.service
# Config at /opt/rh/httpd24/root/etc/httpd/httpd.conf
# or /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf
# Config at /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf
##################################################
# httpd-ssl-pass-dialog
# The original ssl.conf probably includes this:
# SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog
# Change it to this:
# /opt/rh/httpd24/root/usr/libexec/httpd-ssl-pass-dialog
##################################################
# !!! TEST APACHE !!!
apachectl configtest
# ps -aux | egrep 'apache|http'
root 1424 0.1 1.2 319644 13376 ? Ss 00:54 0:00 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
apache 1425 0.0 0.8 361184 8400 ? Sl 00:54 0:00 /opt/rh/httpd24/root/usr/sbin/httpd -DFOREGROUND
...
##################################################
# Backup fresh CONF
##################################################
cp /etc/opt/rh/rh-php71/php.ini /etc/opt/rh/rh-php71/php.ini.bu
cp /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf.bu
cp /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf.bu
##################################################
# Copy old CONF to new CONF
##################################################
# Copy httpd.conf and ssl.conf from /etc/httpd to /opt/rh/httpd24/root/etc/httpd
# Change SERVER_ROOT from /etc/httpd to /opt/rh/httpd24/root/etc/httpd
# Leave DOCUMENT_ROOT unchanged. The new server can serve from the old location.
# Leave mod_ssl unchanged. The old and new mod_ssl use /etc/pki/tls/certs and /etc/pki/tls/private.
# php.ini is too different between version 5 and version 7. Manually copy the hardening.
##################################################
# Hardening
##################################################
# List unneeded functions from PHP in disable_functions
# Comment unneeded modules in /opt/rh/httpd24/root/etc/httpd/conf.modules.d
##################################################
# Important Diff's after cp
##################################################
diff /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf.bu /opt/rh/httpd24/root/etc/httpd/conf.d/ssl.conf
diff /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf.bu /opt/rh/httpd24/root/etc/httpd/conf/httpd.conf
edited Sep 21 '18 at 4:53
answered Dec 21 '17 at 5:06
jwwjww
1,58232263
1,58232263
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f412122%2fhow-to-update-apache-and-php-using-scl%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown