This is the Apache upgrade Procedure for all shared servers. Please obey the following steps,

PS : Don’t copy and paste all line ,just type it in shell , because due to special charecters

All upgrades should begin at 12:00 AM EST / 9:00 AM IST .

  • Send list of servers being upgraded to orl.office@hostdime.com and hdtechs@hostdime.com before beginning upgrades
  • Login to server as ssh, please check server status.
  • Be sure check servers motd for any important details and do not proceed if unsure.
  • Now do the following steps…
  wget  -c http://www.sherin.co.in/l3up/hdupgrade.yaml mv -vf hdupgrade.yaml /var/cpanel/easy/apache/profile/custom/ /scripts/easyapache --profile=hdupgrade --build
  • Check apache version and php configurations as follows

$/usr/local/apache/bin/httpd -v
Server version: Apache/2.2.11 (Unix)
Server built: Jan 24 2009 00:59:30
Cpanel::Easy::Apache v3.2.0 rev4596

$/usr/local/cpanel/bin/rebuild_phpconf --current

Available handlers: suphp dso fcgi cgi none
DEFAULT PHP: 5
PHP4 SAPI: suphp
PHP5 SAPI: suphp
SUEXEC: enabled

  • Edit httpd.conf and add the line Include “/usr/local/apache/conf/extra/httpd-mpm.conf” before php.conf as follows
Include "/usr/local/apache/conf/extra/httpd-mpm.conf"
Include "/usr/local/apache/conf/php.conf"
  • Now edit /usr/local/apache/conf/extra/httpd-mpm.conf and add the MaxClients limit in preforker session as follows ,
<IfModule mpm_prefork_module>
StartServers          5
MinSpareServers       5
MaxSpareServers      10
ServerLimit         500
MaxClients          450
MaxRequestsPerChild   0
</IfModule>
  • Now execute the following command for updating cpanel aapche main template.

 

/usr/local/cpanel/bin/apache_conf_distiller --update

 

  • Restart apache and verify some websites hosted in current server
  • If all ok set daily mod security2 cron as follows
rm -vf   /etc/cron.daily/mod_sec_upd
wget -c  http://legal.hostdime.com/modsec2_upd_new
chmod 750 modsec2_upd_new
mv -v modsec2_upd_new  /etc/cron.daily/
/etc/cron.daily/modsec2_upd_new
  • Now set a cron for cleating /tmp/eaccelator as follows

# wget http://downloads.sherin.co.in/eaccelerator.sh

# mv eaccelerator.sh /etc/cron.daily/eaccelerator

# chmod 750 /etc/cron.daily/eaccelerator

  • Now execute the following script in nohup
# wget  http://downloads.sherin.co.in/Comment_out_all_SecFilter_222.sh

# nohup   sh Comment_out_all_SecFilter_222.sh  &
  • Restart apache and test it
  • Send message to orl.office@hostdime.com and hdtechs@hostdime.com after upgrade with report

Leave a Reply

Your email address will not be published. Required fields are marked *