Install Latest Apache 2.4.43 version In CWP – Control Web Panel

by Sandeep B.

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.

Apache is now old, shift to “nginx + php-fpm” for greater speed and it will fix the issue with performance and security, Apache is more vulnerable and hackers loves it .

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.mysterydata.com/upload/apache-rebuild.sh
chmod 755 apache-rebuild.sh
sh apache-rebuild.sh

Current version downloaded by this script : 2.4.43

After installation if 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

**Let me know if i missed the update for Apache, I’ll update it asap.

It is very short tutorial regarding Apache update in cwp, If you want to request for more tutorials like this visit our forum :

If you’ve any questions regarding the CWP don’t hesitate to open a forum topic @ https://forum.mysterydata.com/

If this post helps you in any way please consider a donation

Donate with PayPal :

md-donate

Donate with Paytm :

md-donate

You may also like

12 comments

Mike June 17, 2020 - 1:32 am

Hi Sandeep,
Im running cwp pro. i have all latest updates. i installed apache update as you described above but after rebooting no change and still running apache 2.4.41. in every place where i usual can change the version i no where have the option to choose 43. what went wrong ?

im running fpm-php. i cant get the new 7.4 neither installed through the panel . i installed it as u described in your tutorial here https://www.mysterydata.com/install-php-7-4-on-cwp-control-panel-manual-installation-guide/ but then my cpw panel is running on 7.4 but i cant select it for the websites and i cant make choises in the ini file.

Reply
Sandeep B. June 18, 2020 - 7:13 pm

apache script fixed rerun all the commands,
php switcher by default it will be available for all user account. Anyways php 7.4 is now released in cwp.

Reply
Joseph June 17, 2020 - 2:24 am

about this comment:
“Apache is now old, shift to “nginx + php-fpm” for greater speed and it will fix the issue with performance and security, Apache is more vulnerable and hackers loves it ”
I guess you will be updating web server performance benchmark score/setup on CWP7 as NGINX + APACHE + VARNISH has the highest score (65%).
Also, when is CWP8 being release to support Centos 8?

Reply
Sandeep B. June 18, 2020 - 8:09 pm

cwp 8 will be probably next year.

Reply
Automata June 17, 2020 - 7:21 am

Hi Sandeep B. this guide not work, Apache remain on v2.4.41 and does not update to the latest Apache version 2.4.43

Please help me to solve this problem.

Thanks in advance for the support.

Reply
Joseph June 18, 2020 - 8:41 am

It didn’t update because the version is the same. Somehow Sandeep “missed the update” as he comments.
I just updated it following this:
https://crosp.net/blog/administration/install-latest-apache-server-centos-7/

Reply
Sandeep B. June 18, 2020 - 8:08 pm

joseph cwp apache is different don’t use that tutorial it will break many things. I’ve fixed the command try to update now.

Reply
Sandeep B. June 18, 2020 - 8:04 pm

fixed re-run all the commands.

Reply
Joseph June 18, 2020 - 8:23 pm

Thanks Sandeep. I found out the hard way CWP Apache is different and had to revert the update. I Will try the fix now.
Thanks.
Sandeep. Do you personally offer custom support? I want to tune my VPS Servers (two running on CWP7 PRO) for performance & Security and I opened a paid ticket on CWP support and was very, very disappointed to the point of asking them to cancel the ticket and to credit my account for future renewal fees (a complete waste of time).

Joseph

Reply
automata June 19, 2020 - 6:03 am

Hi Sandeep B.,

It would be nice if this update to apache v2.4.43 were integrated into CWP and CWP Pro.

Apache v2.4.43 is installed but not run and this is the error log:

● httpd.service – Web server Apache
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2020-06-19 07:58:20 CEST; 13s ago
Process: 2620 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=1/FAILURE)

Jun 19 07:58:20 your.server.com systemd[1]: Starting Web server Apache…
Jun 19 07:58:20 your.server.com apachectl[2620]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Jun 19 07:58:20 your.server.com apachectl[2620]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Jun 19 07:58:20 your.server.com apachectl[2620]: no listening sockets available, shutting down
Jun 19 07:58:20 your.server.com apachectl[2620]: AH00015: Unable to open logs
Jun 19 07:58:20 your.server.com systemd[1]: httpd.service: control process exited, code=exited status=1
Jun 19 07:58:20 your.server.com systemd[1]: Failed to start Web server Apache.
Jun 19 07:58:20 your.server.com systemd[1]: Unit httpd.service entered failed state.
Jun 19 07:58:20 your.server.com systemd[1]: httpd.service failed.

Please help me to solve this problem.

Thanks in advance for the support.

Reply
Fabio Perri June 19, 2020 - 6:38 am

Hi @sandeep, i followed your advice, i have rebuild the webserver config and all works perfectly.
Thanks for the support, you are the number one !

Reply
Automata June 19, 2020 - 6:41 am

Hello, same for me, i have rebuilded the webserver and all it’s ok, thank you !

Reply

Leave a Comment