Upgrading the Apache Web Server to 2.4.xx (Linux)
1. Log into the Customer Portal to retrieve the distribution files that are used in these instructions:
• Copy the Apache binary distribution (httpd-2.4.xx.tar.gz) to your Linux Portal server.
2. Verify that the necessary libraries exist on your system, using the following:
rpm -q binutils glibc libstdc++ cpp make libaio elfutils-libelf expat-devel --qf '%{name}.%{arch}\n'|sort
The list of libraries should include:
binutils.x86_64
elfutils-libelf.x86_64
expat-devel
glibc.i686
glibc.x86_64
libaio.i686
libaio.x86_64
libstdc++.i686
libstdc++.x86_64
make.x86_64
As user root, execute the following steps.
3. Stop Apache:
/opt/aptare/bin/apache stop
4. Untar the distribution into /opt on the Portal server.
cd /opt
gtar -zxvf <path to file>/httpd-2.4.xx.tar.gz
5. A new folder is created named: httpd-2.4.xx.
6. Copy the current Apache configuration files:
cd /opt/apache/conf
cp -p httpd.conf workers.properties /opt/httpd-2.4.xx/conf
cp -p extra/httpd-ssl.conf /opt/httpd-2.4.xx/conf/extra
7. If SSL is enabled (applicable to Apache version 2.4.25 and 2.4.33):
vi /opt/apache/conf/extra/httpd-ssl.conf
8. Note where the certificate and key files are located. If the certificate and key files are located under
/opt/apache/ copy them to equivalent directories /opt/httpd-2.4.xx
9. Remove and recreate the symbolic link to the new directory
rm /opt/apache
ln -s /opt/httpd-2.4.xx/opt/apache
10. Start Apache:
/opt/aptare/bin/apache start