Thursday, January 5, 2012

C-panel license expired

Please refer to the following link to confirm that the CPanel License is active: -
http://verify.cpanel.net/

***********

Please refer to the following link to confirm that the CPanel License is active: -
http://verify.cpanel.net/

***********

Try running the program /usr/local/cpanel/cpkeyclt
to re-initialize the license again if you encounter any other licensing errors. 


***********

Lastly : Flush your iptables and try again. Or disable your firewall.
------------------------------------------------------------------

Tuesday, January 3, 2012

how to install RMP

Rmp:--
----------------------

To install RMP:--
[root@deep] /#rpm -ivh foo-1.0-2.i386.rpm
--------------

To uninstall rmp:--
[root@deep] /#rpm -e foo
----------------

To upgrade rmp:--
[root@deep] /#rpm -Uvh foo-1.0-2.i386.rpm
----------------

To check rmp:--
[root@deep] /#rpm -q foo


-----------------------------------------------

Monday, January 2, 2012

Change Hostname in < FreeBSD >

** Simple steps are given to change Host name is given below :--


******************
To change your hostname to example myhostname.mydomain.com 

Run the command 'hostname myhostname.mydomain.com' 

Edit the file /etc/hosts 

Edit the file /etc/rc.conf 



*******************


Done ...

Friday, December 30, 2011

How to Deleting mails from mail queue

* Just fire the following command  * :--
------------
rm -rf /var/spool/exim/input/

------------

Thursday, December 29, 2011

How to Modify LogWatch

<< Logwatch is a customizable log analysis system It parses through your system's logs for a given period of time and creates a report analyzing areas that you specify, in as much detail as you require. Logwatch is already installed on most CPanel servers. >>

---------------------
To modify LogWatch, SSH into server and login as root.

At command prompt type: pico -w /etc/log.d/conf/logwatch.conf 


Scroll down to

MailTo = root

and change to

Mailto = your@email.com

<Note >: Set the e-mail address to an offsite account incase you get hacked.


Now scroll down to 

Detail = Low

Change that to Medium, or High...

Detail = 5 or Detail = 10

Note: High will give you more detailed logs with all actions. 

Save and exit.


-----------------------------------

Sunday, December 18, 2011

Server e-mail everytime someone logs in as root

** < Just follow the steps given below >**--   :--

-----------------

To have the server e-mail you everytime someone logs in as root, SSH into server and login as root.
---------------------------------
At command prompt type: pico .bash_profile
---------------------------------
Scroll down to the end of the file and add the following line:
---------------------------------
echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | awk '{print $6}'`" your@email.com
---------------------------------
Save and exit
*-------*******------------******---*****-----------*******-------*