How to update apache to the latest version?

Check the current version of apache by running httpd –v

Then execute the following commands:

How to Rebuild Apache via command line for directadmin

cd /usr/local/directadmin/custombuild/
./build update
./build clean
./build apache

To update and compile everything, run the following:
cd /usr/local/directadmin/custombuild
./build update
./build all d

This should update both the configure options and the version of apache to the most recent version. Once the update is completed, restart apache:

RedHat:/sbin/service httpd restart

FreeBSD:/usr/local/etc/rc.d/httpd restart

cPanel

Login as the root using ssh

Type the following commands:
# cd /scripts
# ./updatenow
# ./easyapache

or

/scripts/easyapache

Just follow on screen instructions to rebuild Apache for Cpanel server under Linux/FreeBSD oses. Please note that you should see a menu on screen asking you which options you would like built into your apache install. Select options as per your requirements. Once it has completed it will automatically restart Apache for you and you will then be able to use the new features.

kbadmin has written 146 articles

Loading Facebook Comments ...

This site uses Akismet to reduce spam. Learn how your comment data is processed.