Page 1 of 1

HowTO Update Apache (HTTPD) in Centos

Posted: Tue Oct 09, 2018 12:32 am
by daniluski
Hi guys... some time ago i was trying a lot to update my Apache in Centos...
After a lot searching a solution I found how to Update it.

First... My VPS is consuming 2 or 3x more memory... So think if it is a good idea to you...
I'm using in 3 different VPS and it is working fine...

Let's go!
How to update HTTPD (APACHE)

In your terminal (Centos)

Step 1

Code: Select all

sudo yum install -y epel-release
Step 2 - Enable the CodeIT repository.

Code: Select all

cd /etc/yum.repos.d && wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)`.repo
Step 3

Code: Select all

sudo yum install httpd
Step 4

Code: Select all

systemctl start httpd
Attention here! Probably you'll get an error here!
Cause this is importing the proxy h2 - Don't worry!
You need go to
/etc/httpd/conf.modules.d/
and comment or rename this file
10-proxy_h2.conf to 10-proxy_h2.conf_ (underscore) cause i don't want to remove (delete) this file.

So if you got this error, you need do it... so
Step 4 - Again

Code: Select all

systemctl start httpd
Step 5 - Finish

Code: Select all

 systemctl enable httpd
I did it 4x... All is working great...

Now if you are doing it to work with HTTP2 are easy mode to active it is including this line

Protocols h2 h2c http/1.1
in your httpd.conf
/etc/httpd/conf/httpd.conf

Put it in the end of your file.

like it


<IfModule remoteip_module>
RemoteIPHeader X-Real-IP
LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%a %l %u %t \"%r\" %>s %b" common
</IfModule>


IncludeOptional conf.d/*.conf

Protocols h2 h2c http/1.1

You need to be SSL to active HTTP2 to...
Is it...

Re: HowTO Update Apache (HTTPD) in Centos

Posted: Thu Apr 04, 2019 10:08 am
by difallah
Thanks I followed it today and now I have :

httpd -v
Server version: Apache/2.4.39 (codeit)
Server built: Apr 3 2019 18:54:14



Best

Re: HowTO Update Apache (HTTPD) in Centos

Posted: Mon Jun 17, 2019 8:21 am
by salvatorenz
Works great! just updated.

Thanks for the guide :)

Re: HowTO Update Apache (HTTPD) in Centos

Posted: Mon Jun 17, 2019 3:16 pm
by nikitin_ivan
It's very bad idea to update httpd from 2.4.6 to 2.4.* (codeit) if you use fastcgi. You'll get a brick and error suexec command not in docroot, because codeit compiles httpd with parameter -D AP_DOC_ROOT="/var/www", it's not as vestacp need -D AP_DOC_ROOT="/". It's very difficult to change without turning the whole server upside down.

Re: HowTO Update Apache (HTTPD) in Centos

Posted: Sun Jun 23, 2019 7:49 pm
by DarthVader