How to update Apache to latest version?

Steps to update Apache to latest version -

1. Please check the current version of Apache using below command -
/usr/sbin/httpd -v

2. Please use below commands for CustomBuild -
cd /usr/local/directadmin/custombuild
./build update
./build apache
./build php n
./build rewrite_confs

3. Please use below commands for CustomApache - end of life (version 1.3) -
cd /usr/local/directadmin/customapache
./build clean
./build update
./build apache_mod_ssl

Once you will done with one of the above commands, you will need to restart the Apacheservice.

4. Restart the Apache service using below command -
/sbin/service httpd restart ----------------------> For RedHat
/usr/local/etc/rc.d/httpd restart ----------------------> For FreeBSD

That's it!

Note -

1. You will get the details of Apache version using the command in first step and according you will need to fire the commands.
2. When you are using Apache 2.x, use "./build apache_2" instead of apache_mod_ssl while updating CustomApache.

Was this answer helpful?

 Print this Article

Also Read

How to run CGI script using any directory or /~username/cgi-bin?

If you would like to force Apache to allow CGI script then just follow below simple steps - 1....

How to upgrade the php from 5.4 to 5.6?

If you are running php 5.4 on the server and want it to be upgraded to 5.6 . Additionally, your...

How to upgrade mysql with custombuild 2.0?

Before doing any updates of MySQL be sure to create full backups of all databases.Steps to...

How to list all files under directory?

When there is no 'index.php' or 'index.html' file and you'd like to display all the files under...

How to install xmlrpc?

Installing xmlrpc module on Directadmin. Seems simple isn't it ? Might find many articles on the...

Powered by WHMCompleteSolution