After rebuilding Apache in CPanel using easyapache or WHM there are many things that can go wrong even if you use a stable branch of CPanel. For example Tomcat that was installed from CPanel can fail after the build and even if this might look unrelated to the apache build this can happen quite frequently.
If you are running tomcat on a cpanel server here is what you can do to help you from losing your tomcat instance:
Hopefully this information will be useful for other people, and hopefully you will see it before running easyapache.
If you are running tomcat on a cpanel server here is what you can do to help you from losing your tomcat instance:
- backup; newer cpanel versions backup apache, configs, etc. but they will not care about tomcat. This means it is your job to save the tomcat files. Here are some important folders you should save:
/usr/local/jdk – this is a link to the real jdk used on the system (jdk1.5.0_05 or jdk1.6.0_02 for ex.); save the real jdk also, just in case…
/usr/local/jakarta/tomcat - this will contain all your tomcat configs, apps, logs, etc.
/usr/sbin/starttomcat and /usr/sbin/stoptomcat – scripts used to start and stop tomcat (in case you made local changes, memory tunings, etc.)
Hopefully this information will be useful for other people, and hopefully you will see it before running easyapache.