+2 votes
in Operating Systems by (71.8k points)
The version of the Apache server installed on my machine is 2.4.6 whereas the current Apache version is 2.4.41. How can I upgrade the Apache on my machine?

1 Answer

+1 vote
by (349k points)
selected by
 
Best answer

You can use CodeIT repository to update the Apache server on your machine. They seem to have the version of the Apache. Here are the steps:

  • To add EPEL repository to use CodeIT's builds of Apache HTTPd, type the following command on the terminal. 
yum install -y epel-release
  • Use the following command that will determine the system version and will download the proper file:
cd /etc/yum.repos.d && wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)`.repo
  • To install the latest Apache, use the following command:
yum install httpd
  • Restart the Apache to enable the latest version:
systemctl start httpd
  • Enable systemd to start the Apache automatically at boot:
systemctl enable httpd

    Related questions


    ...