Steps to update Apache to latest version -
1. Please check the current version of Apache using below command -
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
./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
./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
/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.