HowTO Update Apache (HTTPD) in Centos Topic is solved
HowTO Update Apache (HTTPD) in Centos
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
Step 2 - Enable the CodeIT repository.
Step 3
Step 4
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
Step 5 - Finish
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...
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
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
Code: Select all
sudo yum install httpd
Code: Select all
systemctl start httpd
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
Code: Select all
systemctl enable httpd
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
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
httpd -v
Server version: Apache/2.4.39 (codeit)
Server built: Apr 3 2019 18:54:14
Best
-
- Posts: 8
- Joined: Mon Jun 10, 2019 4:38 am
- Os: CentOS 6x
- Web: apache + nginx
Re: HowTO Update Apache (HTTPD) in Centos
Works great! just updated.
Thanks for the guide :)
Thanks for the guide :)
-
- Posts: 5
- Joined: Sat Feb 06, 2016 6:51 am
Re: HowTO Update Apache (HTTPD) in Centos
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.
-
- Posts: 31
- Joined: Wed Jul 13, 2016 1:35 pm
Re: HowTO Update Apache (HTTPD) in Centos
Instead codeit you can use https://www.softwarecollections.org/en/ ... l/httpd24/