Archive for the ‘Basic Linux’ Category

cPanel log to check when hosting created and deleted

In the recent days, we all are facing the hacking issue at that time, we always see problem like account termination from the serve at that time, we can use the following log file to investigate the issue as its providing when hosting account was created, owner changed or account deleted from the server.

For example we are checking logs for the domain test123.com and as per the following logs the hosting account for domain test123.com is created by using the root owner on dated Wed Jan 11 08:19:40 2012 and onwership is under root

root@linux7802 [~]# cat /var/cpanel/accounting.log | grep test123.com
Wed Jan 11 08:19:40 2012:CREATE:root:root:test123.com:115.124.103.126:admin111


Now we have changed the ownership for the domain test123.com hosting account to linux780 reseller ownership therefore check the following logs

root@linux7802 [~]# cat /var/cpanel/accounting.log | grep test123.com 
Wed Jan 11 08:22:51 2012:CHANGEOWNER:root:root:test123.com:admin111:root:linux780


Now we have terminated the hosting account for the domain test123.com by using the root user and its also recorded in the accounting.log

root@linux7802 [~]# cat /var/cpanel/accounting.log | grep test123.com
Wed Jan 11 08:25:14 2012:REMOVE:root:root:test123.com:admin111

So we can similarly check the logs for all the domains when they have created/modified or removed from the server and its always to better to maintain the accounting.log for future reference.


Tag

.htaccess .htaccess file /etc/ssh/sshd_config /var/cpanel/cpanel.config Access denied for user 'root'@'localhost' cgi script clear cache cPanel access logs cPanel error logs cPanel exim logs cPanel logs cPanel servers logs Create new FTP account from cPanel Disable directory listing exim logs find command how to block referrer install mailx mysql from WHM mysql has failed mysql service mysql service from WHM nameserver setup Network File System NFS Server php form phpmail() form phpmail function please contact the sysadmin plesk panel issue roundcube roundcube error roundcube error logs Safari browser Safari browser + AddHandler application/x-httpd-php5 Safari browser downloading .html pages. Safari browser downloading pages Safari downloading pages simple php form simple phpmail() form simple phpmail function form sshd restart suexec trueuserdomains using the NFS Server

.htaccess (15)
Basic Linux (57)
Browser problems (3)
Common errors (10)
cPanel + cPanel scripts (29)
Cron jobs issue (5)
Dedicated Server Issue (21)
Definition / Explanation (5)
E-mails issue (18)
Enable private PHP (5)
Few good queries and suggestions (12)
FTP / Frontpage / Dreamweaver (10)
General (3)
HTML/PHP issue (1)
Install server side software / script (16)
Linux Administrator Interview Questions (73)
Linux Permissions (8)
Mailman (1)
Mysql + phpmyadmin (19)
New updates/release (1)
NFS server (6)
PHP (7)
Plesk (13)
scripts (5)
Server Security (20)
Third party script issue (17)
Tomcat/Ruby Rail (2)
Uncategorized (20)
VPS (61)

WP-Cumulus by Roy Tanck and Luke Morton requires Flash Player 9 or better.

Calendar
May 2012
M T W T F S S
« Apr    
 123456
78910111213
14151617181920
21222324252627
28293031  
Blogroll