Search Results for: 42

/usr/libexec/mysqld: Can’t create/write to file ‘/var/run/mysqld/’ (Errcode: 13)

[error]/usr/libexec/mysqld: Can’t create/write to file ‘/var/run/mysqld/’ (Errcode: 13)[/error]

while starting mysql service on plesk server I was getting above error.

/var/log/mysqld.log was showing logs

101114 12:43:42 mysqld started
101114 12:43:42 InnoDB: Started; log sequence number 9 2286522967
101114 12:43:42 [ERROR] /usr/libexec/mysqld: Can’t create/write to file ‘/var/run/mysqld/’ (Errcode: 13)
101114 12:43:42 [ERROR] Can’t start server: can’t create PID file: Permission denied
101114 12:43:42 mysqld ended


I found directory /var/run/mysqld/ had ownership as root root. I have changed it mysql root

chown mysql /var/run/mysqld/

Post to Twitter

Error logging to cPanel

Error after logging to cPanel:

can’t create /home/username/.cpanel/datastore/all_iplist.db: No such file or directory at /usr/local/cpanel/Cpanel/DIp/ line 198

Carp::croak(‘can\’t create /home/username/.cpanel/datastore/all_iplist.db: No …’) called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/ line 76
Storable::logcroak(‘can\’t create /home/username/.cpanel/datastore/all_iplist.db: No …’) called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/ line 258
Storable::_store(‘CODE(0xa7ad524)’, ‘ARRAY(0xb7a2188)’, ‘/home/username/.cpanel/datastore/all_iplist.db’, 0) called at /usr/lib/perl5/site_perl/5.6.2/i686-linux/ line 218
Storable::nstore(‘ARRAY(0xb7a2188)’, ‘/home/username/.cpanel/datastore/all_iplist.db’) called at /usr/local/cpanel/Cpanel/DIp/ line 198
Cpanel:Ip::MainIP::getconfiguredips() called at /usr/local/cpanel/Cpanel/DIp/ line 39
Cpanel:Ip::MainIP::getmainip() called at /usr/local/cpanel/Cpanel/ line 38
Cpanel:Ip::isdedicatedip(serverip) called at /usr/local/cpanel/Cpanel/ line 398
Cpanel::ExpVar::hasdedicatedip() called at /usr/local/cpanel/Cpanel/ line 277
Cpanel::ExpVar::expvar(‘$hasdedicatedip’) called at cpanel line 1443
main::execiftag(”) called at cpanel line 4043
main::dotag_finished_headers(”, 0) called at cpanel line 3898
main::cpanel_parseblock(‘^J…’) called at cpanel line 3842
main::cpanel_parse(‘GLOB(0xa7d9698)’) called at cpanel line 5331
main::run_standard_mode() called at cpanel line 387

If you get above error after logged into cPanel, then do not panic there is a simple fix for this error.
If you have root access to server then check cPanel logs at

tail -f /usr/local/cpanel/logs/error_log | grep cPanel-username

Note: Replace your actual cpanel user name with cPanel-username and try accessing cPanel which will generate error logs for cPanel.

Logs will show you that you have exceeded your allowed disk quota for domain.

Now you will need to delete unwanted file from your account or increase disk quota for domain which will fix the issue.

Post to Twitter

Cpanel scripts and their use.

1 )Updates the server software:

2) Reinstalls exim:

3) Bandwidth issues

4) To fix problem in webalizer that stop updating stats

5) Self Explanatory

6)Fixing Mail List MailMan

7) Run cpanel backup

8) To try and fix domain controller

9) Quotas

/scripts/initquotas – takes a while to run
/scripts/fixquotas – takes a while to run

10) Add a Dns Entry

11) Install Frontpage Mail Exts

12) Add JavaServlets to an account (jsp plugin required)

13) Add a User

14) Run WHM Lite

15) Add Rlimits (cpu and mem limits) to apache

16) Resync with a master DNS Server

17) Edit A User’s Quota

18) Search For Trojans in /dev

19) Locate Trojan Horses

20) Suggest Usage
/scripts/findtrojans > /var/log/trojans
/scripts/fixtrojans /var/log/trojans

21) Make Interchange work with suexec

22) Fix Most Problems with Interchange

23) Run on a trojans horse file created by findtrojans to remove them

24) Run this if a user’s stats stop working

25) Fix a broken valias file

26) Turn on DMA and 32bit IDE hard drive access (once per boot)

27) Re-scan quotas. Usually fixes Disk space display problems

28) Turn on SUEXEC (probably a bad idea)

29) Display Ipusage Report

29) Terminate an Account

30) Delete “Security Problem Infested RPMS”

31) Fix Various Mail Permission Problems

32) Attempt to Troubleshoot a Mail Problem

33) Change a Mysql Password

34) Kill Potential Security Problem Services

35) Rebuild Ip Address Pool

36) Delete Nasty SSL entry in apache default httpd.conf

37) Restart a Service (valid services: httpd,proftpd,exim,sshd,cppop,bind,mysql)
/scripts/restartsrv (example: /scripts/restartsrv httpd)

38) Syncup Security Updates from RedHat/Mandrake

39) Force a webalizer/analog update

40) Remove non-important suid binaries

41) Install Frontpage 4+ on an account

42) Return a Simple process list. Useful for finding where cgi scripts are running from

43) Suspend an account

44) Syncup Cpanel RPM Updates

45) Unblock an IP

46) UnSuspend an account

47) Update Cpanel

48) Update /scripts

49) Create a New Account

50) Awstats to run manually
/scripts/runweblogs account_username

Post to Twitter