Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

HowTO Update Apache (HTTPD) in Centos Topic is solved

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
daniluski
Posts: 8
Joined: Sun Jul 30, 2017 10:41 pm

HowTO Update Apache (HTTPD) in Centos
  • Quote

Post by daniluski » 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

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...
Top

difallah
Posts: 2
Joined: Thu Dec 27, 2018 12:12 pm

Os: CentOS 6x
Web: apache
Re: HowTO Update Apache (HTTPD) in Centos
  • Quote

Post by difallah » Thu Apr 04, 2019 10:08 am

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
Top

salvatorenz
Posts: 8
Joined: Mon Jun 10, 2019 4:38 am

Os: CentOS 6x
Web: apache + nginx
Re: HowTO Update Apache (HTTPD) in Centos
  • Quote

Post by salvatorenz » Mon Jun 17, 2019 8:21 am

Works great! just updated.

Thanks for the guide :)
Top

nikitin_ivan
Posts: 5
Joined: Sat Feb 06, 2016 6:51 am

Re: HowTO Update Apache (HTTPD) in Centos
  • Quote

Post by nikitin_ivan » Mon Jun 17, 2019 3:16 pm

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.
Top

DarthVader
Posts: 31
Joined: Wed Jul 13, 2016 1:35 pm

Re: HowTO Update Apache (HTTPD) in Centos
  • Quote

Post by DarthVader » Sun Jun 23, 2019 7:49 pm

Instead codeit you can use https://www.softwarecollections.org/en/ ... l/httpd24/
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password