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 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 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 mysql with custombuild 2.0?

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

MySql Database has gone away

You may come across the error "MySql Database has gone away". I came across this error while...

How to update Direct Admin skin to Evolution Theme?

Here are very simple steps to update the DIRECT ADMIN skin to the Evolution Theme - 1. cd...

Powered by WHMCompleteSolution