Instale o Apache 2.4 no CentOS usando yum

Instale o Apache 2.4 no CentOS usando yum

Preciso do Apache 2.4 no CentOS porque com o Apache 2.2 mod_proxy_wstunnelnão é possível. eu tenteiesse, mas infelizmente é para RHEL. Após a instalação, não consigo executar o Apache 2.4.

Alguém pode me mostrar como instalar um Apache 2.4 completo e funcional no CentOS, por favor?

EDITAR:

# yum list installed | grep httpd
Failed to set locale, defaulting to C
httpd.x86_64                         2.2.15-30.el6.centos       @updates        
httpd-tools.x86_64                   2.2.15-30.el6.centos       @updates        
httpd24.x86_64                       1-6.el6                    @epel-httpd24   
httpd24-apr.x86_64                   1.4.8-2.el6                @epel-httpd24   
httpd24-apr-util.x86_64              1.5.2-5.el6                @epel-httpd24   
httpd24-httpd.x86_64                 2.4.6-5.el6                @epel-httpd24   
httpd24-httpd-tools.x86_64           2.4.6-5.el6                @epel-httpd24   
httpd24-mod_ssl.x86_64               1:2.4.6-5.el6              @epel-httpd24   
httpd24-runtime.x86_64               1-6.el6                    @epel-httpd24   

Responder1

Apache 2.4 no CentOS:

Passo 1:

cd /etc/yum.repos.d/
wget http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-httpd24.repo

Passo 2:

yum install httpd24.x86_64

Etapa 3:

$ /opt/rh/httpd24/root/usr/sbin/httpd -version
Server version: Apache/2.4.6 (Red Hat)
Server built:   Sep 25 2013 05:25:46

NOTA: os arquivos de configuração estão em:/opt/rh/httpd24/root/etc/httpd

$ ls
conf  conf.d  conf.modules.d  logs  modules  run

EDITAR:caso você queira desligar o Apache 2.2

$ chkconfig httpd off
$ chkconfig --list | grep httpd
httpd           0:off   1:off   2:off   3:off   4:off   5:off   6:off
httpd24-httpd   0:off   1:off   2:off   3:off   4:off   5:off   6:off

EDITAR 2: http://wiki.apache.org/httpd/PHP-FPM

yum install php-fpm
/etc/init.d/php-fpm start

informação relacionada