Skip to main content

Posts

Showing posts from June, 2013

What are cPanel release tiers & How can we change that?

We are all at least generally familiar with the software development cycles, and different software developers use different release schedules according to the testing phase the software is in at the time. For example, some developers use an alpha, beta, release candidate (RC) type of release schedule, and each of these may have varying levels of releases. The cPanel release schedule is very similar to the manner in which Linux distributions are released. cPanel updates in a variety of release tiers. Server administrators may then choose which release version is applicable to their system requirements. The following are cPanel’s current release tiers: ########################################### Stable Release Current Edge Long-term support Each of the above cPanel release tiers represents various stages of the software development cycle. While the final decision to which release version to deploy is entirely up to the organizational decision-makers, i

Script to check the load and email you the details if the load is greater than given threshold.

#!/bin/bash LoadFloat=$(uptime | gawk -F 'load average:' '{print $2}' | awk '{print $1}' | sed -e 's/,//g') Load=${LoadFloat/\.*} LoadLimit=6 # This is the Load threshold that is to be set by your server requirements. if [ $Load -lt $LoadLimit ] then exit 1 else echo "Load is High " $Load # email subject SUBJECT="LOAD is $LoadFloat in CP6!!!" # Email To ? EMAIL="9207421@way2sms.com" # Email text/message EMAILMESSAGE="/tmp/emailmessage.txt" echo "Hi Team, " > $EMAILMESSAGE echo " " >> $EMAILMESSAGE echo " " >> $EMAILMESSAGE echo "The Load in CP6 is $LoadFloat">> $EMAILMESSAGE echo "Please Login and Have a check Immediately!!!!" >>$EMAILMESSAGE echo " " >> $EMAILMESSAGE echo " " >> $EMAILMESSAGE echo "Regards," >> $EMAILMESSAGE echo "System Ad

Setting preview links in CMS

In Wordpress : ############## phpmyadmin >> take the database >> take the wp_users table >> Edit the "siteurl" and "home" fields to http://ipaddress/~username Now login to wp-admin and go to Settings >> permalink >> change to default >> click save >> then change to post >> Then save again. In Joomla : ########### Edit the "$mosConfig_live_site" field in the configuration file to http://ipaddress/~username