Install Apache 2.4.62 in CWP on AlmaLinux 8 / 9


This article is based on Sandeep’s article at AlphaGNU.
CWP – Control Web Panel Install Latest Apache 2.4.62 version – CWP – Control WEB Panel – AlphaGNU

It is meant to be a backup, just in case the other site gives an error.


INTRODUCTION

In this tutorial It will be about updating Apache version to latest possible version in CWP. In CWP, Apache is the main and default web-server by default it will install stable old version of Apache, you can always update it to latest version and stay up to date with the below script, it will download the latest possible version and do the update job.

The Apache HTTP Server, colloquially called Apache, is a free and open-source cross-platform web server software, released under the terms of Apache License 2.0. Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation.

You can check the latest Apache version at: https://httpd.apache.org/

As of the creation of this article it was 2.4.62


READ ME FIRST

This article is provided as a courtesy.
Installing, configuring, and troubleshooting third-party applications is outside the scope of basic support provided by Starburst Services.

We are not liable for any damages and/or data loss.


REQUIRMENTS

  • SSH credentials or File Manager access Logged In as Root

Current version downloaded by this script – 2.4.62

You need to follow this simple commands to update Apache in CWP :

cd /usr/local/src
rm -rf /usr/local/src/apache*
wget --no-cache https://www.alphagnu.com/upload/apache-rebuild.sh
dnf install uuid uuid-devel libuuid-devel pcre-devel -y
chmod 755 apache-rebuild.sh
sh apache-rebuild.sh

IF AlphaGNU is down, you can use:

cd /usr/local/src
rm -rf /usr/local/src/apache*
wget --no-cache https://starburstservices.com/downloads/files/cwp/apache-rebuild.sh
dnf install uuid uuid-devel libuuid-devel pcre-devel -y
chmod 755 apache-rebuild.sh
sh apache-rebuild.sh

After installation of Apache failed to start with below error:

(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80

rebuild the webserver config/vhosts i.e from admin >> webservers settings >> select webservers >> click button save and rebuild configuration


On AlmaLinux 8 run:

dnf module disable httpd

Thanks for learning with Starburst Services.

Make sure to visit AlphaGNU at: https://www.alphagnu.com/

Learn more about our services


KB Article Created: 2024-09-01

people found this article helpful. What about you?