Archive for the tag 'cpanel'

SBDavid

How do i access cpanel webmail logs

How do i access cpanel webmail logs

If you would like to access webmail logs to see who accessed a certian webmail accounts.

The following log file could be searched to help locate specific access log entries from webmail.

/usr/local/cpanel/logs/access_log

Or use the following.

grep -in username /usr/local/cpanel/logs/access_log

Replace username with the webmail user.

From the grep man pages.

-i, –ignore-case
Ignore case distinctions in both the PATTERN and the input files. (-i is specified by POSIX.)

-n, –line-number
Prefix each line of output with the 1-based line number within its input file. (-n is specified by POSIX.)

SBDavid

Cpanel shows incorrect disk usage

Cpanel shows incorrect disk usage

cPanel shows incorrect disk usage

* Disk usage zero for all the domains in ‘list accounts’
* Mismatch between the disk usage in backend and Cpanel

Check whether /home partition has been mounted with ‘usrquota’ option (defaults,usrquota in /etc/fstab)

# cat /etc/fstab| grep home
LABEL=/home /home ext3 defaults,usrquota 1 2

Run the following command.

# quotacheck -c /home
# quotaon /home

Also Check the option WHM >> Server Configuration >> Tweak Settings >> System — Disable Disk Quota display caching

SBDavid

Fantastico Error in cpanel

Fantastico Error in cpanel

If an error “Fantastico is unable to connect to your MySQL server at this time. Please contact your host for assistance” occurred during fantastico access, make sure the following are correct:-

1. First Check whether mysql server is running or not. You can confirm the same using following command:-

# ps -ef |grep mysql

2. Check mysql.sock path in mysql configuration /etc/my.cnf file.

# vi /etc/my.cnf

3. Then check if the link file is there to point /tmp/mysql.sock to /var/lib/mysql/mysql.sock in /tmp directory.

4. If not create a symbolic link. You can create the same using ‘ln -s’ command:-

# ln -s’ /var/lib/mysql/mysql.sock /tmp/mysql.sock

Then try to access the fantastico.

SBDavid

Account Creation Failed

Account Creation Failed

While creating an account via WHM, you may get an error stating that, cannot create new user.

You can check the cPanel logs for the error.

tail -f /usr/local/cpanel/logs/error_log

Sometimes, you may get the following error.

vipw lockfile (/etc/ptmp) is present!

This means that the “useradd” is locked. You will not be able to add new users unless you remove the following file.

You can also confirm it by executing the useradd command in the konsole. You will receive an error message stating the above.

useradd user1

Check if this file is present.

ls -l /etc/ptmp

/etc/ptmp >> This has a temporary copy of the password file. This file can be removed.

rm -f /etc/ptmp

SBDavid

Cpanel WHM: License expired error

Cpanel WHM: License expired error

If “License expired” error is encountered while accessing the cpanel/whm, it can be fixed by following below mentioned steps:

1. Check whether the license is expired.

This is the most obvious cause and simple to verify. Access the URL ‘http://verify.cpanel.net/’ and check the IP of the server.

2. If it is “active”, Run the following command:

$ /usr/local/cpanel/cpkeyclt

This should promptly return to the command line with no messages. If it takes a while, then there is likely a connectivity issue between your server and the licensing server.

3. In that case, check whether the firewall is blocking connections to the licensing server.

Verify that port 2089 TCP outgoing traffic is allowed in the firewall rules.

4. If you’re not sure that your firewall is properly configured, then the best thing to do is temporarily flush your firewall rules. Before flushing the firewall rules, you need to save the firewall rules enabled in the server.

$ /etc/init.d/iptables save

After that you can flush your firewall rules using the command

$ iptables -F

« Prev - Next »