Introduction: In the world of web hosting, staying updated is crucial to ensure optimal performance, security, and compatibility. Apache, one of the most widely used web servers, constantly evolves with new features and security patches. DirectAdmin, a popular web hosting control panel, simplifies server management but requires occasional manual updates for software components like Apache. In this guide, we’ll walk you through the process of updating Apache to the latest version within a DirectAdmin environment.
You can check the current version of apache by running
/usr/sbin/httpd -v
CustomBuild – current
If you’re using custombuild (as most new boxes are), run the following
cd /usr/local/directadmin/custombuild ./build update ./build apache ./build php n ./build rewrite_confs
CustomApache – end-of-life
If you are using customapache with the 1.3 version of apache to the most recent, run the following:
cd /usr/local/directadmin/customapache
./build clean
./build update
./build apache_mod_ssl
If you’re using apache 2.x, use “./build apache_2” instead of apache_mod_ssl.
This should update both the configure options and the version of apache to the most recent version. Once the update has completed, you’ll need to restart apache:
RedHat:
/sbin/service httpd restart
FreeBSD:
/usr/local/etc/rc.d/httpd restart