# Update Apache service httpd stop yum erase httpd rm -f /etc/httpd/conf/httpd.conf.rpmsave yum install pcre-devel wget http://mirror.netcologne.de/apache.org//httpd/httpd-2.2.29.tar.gz tar -xzvf httpd-2.2.29.tar.gz cd httpd-2.2.29 ./configure \ "--prefix=/etc/httpd" \ "--exec-prefix=/etc/httpd" \ "--bindir=/usr/bin" \ "--sbindir=/usr/sbin" \ "--sysconfdir=/etc/httpd/conf" \ "--enable-so" \ "--enable-dav" \ "--enable-dav-fs" \ "--enable-dav-lock" \ "--enable-suexec" \ "--enable-deflate" \ "--enable-unique-id" \ "--enable-mods-static=most" \ "--enable-reqtimeout" \ "--with-mpm=prefork" \ "--with-suexec-caller=apache" \ "--with-suexec-docroot=/" \ "--with-suexec-gidmin=100" \ "--with-suexec-logfile=/var/log/httpd/suexec_log" \ "--with-suexec-uidmin=100" \ "--with-suexec-userdir=public_html" \ "--with-suexec-bin=/usr/sbin/suexec" \ "--with-included-apr" \ "--with-pcre=/usr" \ "--includedir=/usr/include/apache" \ "--libexecdir=/usr/lib/apache" \ "--datadir=/var/www" \ "--localstatedir=/var" \ "--enable-logio" \ "--enable-ssl" \ "--enable-rewrite" \ "--enable-proxy" \ "--enable-expires" \ "--with-ssl=/usr" \ "--enable-headers" make && make install cd /etc/httpd/ find . -type f -exec sed -i 's:/var/logs/:/var/log/httpd/:' {} + nano conf/httpd.conf >>PidFile /var/log/httpd/httpd.pid >>Include conf/extra/httpd-vhosts.conf nano conf/extra/httpd-vhosts.conf >> ServerName localhost DocumentRoot "/var/www/htdocs/" LogLevel warn ErrorLog "/var/logs/httpd/localhost-error_log" CustomLog "/var/logs/httpd/localhost-access_log" common >>Include sites-enabled/* rm -Rf /var/logs apachectl start