Recompiling apache/PHP in a directadmin server

To recompile apache/PHP on a directAdmin server. ( Like easyapache script in cPanel servers, there is no custom script, need to run the following commands manually ). This will be helpful, if current PHP/apache compilation in the server is broken and this can be found out from the error log (/var/log/httpd/error_log).
For updating apache run the following commands.

#cd /usr/local/directadmin/customapache

#./build clean

#./build update

#./build apache_mod_ssl

For building apache with PHP run the following commands.

#cd /usr/local/directadmin/customapache

#./build php y


Restart apache service.


    0 comments: