HowTO Update Apache (HTTPD) in Centos
Posted: Tue Oct 09, 2018 12:32 am
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...