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.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

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 forward the website to another URL?

Forwarding the website to another URL - 1. Using index.php file - 1. Create the page as...

How to reset and retrieve directadmin admin password using shell?

Steps to reset the direct admin password -1. Login to SSH with root user -#passwd admin 2. This...

MySql Database has gone away

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

Powered by WHMCompleteSolution