Archive for the tag 'error'

cPanel FTP and MySQL General Information and Error Log files

FTP: Logins and General Errors.

/var/log/messages

General information and login attempts are logged here

FTP Transactions

/var/log/xferlog

This is a symbolic link in most cases to /usr/local/apache/domlogs/ftpxferlog, which contains a history ofthe transactions made by FTP users.

MySQL: General Information and Errors

/var/lib/mysql/$(hostname).err

This path could vary, but is generally located in /var/lib/mysql. Could also be located at /var/log/mysqld.log

If we get an error given below while accessing phpMyAdmin.

Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

There can be error in writing session files. Either the owner do not have ‘write’ permission or the owner is different.

Solution

Normally tmp directories are used to dump sessions. And phpMyAdmin has its own tmp folder. Check the permission and ownership of this folder. Change it to the following

Location : /var/cpanel/userhomes/cpanel-phpmyadmin

cd /var/cpanel/userhomes/cpanel-phpmyadmin

1)Permission of tmp must be 700

chmod 700 -R tmp

2)Ownership must be cpanel-phpmyadmin

chown cpanel-phpmyadmin: -R *

The output should look similar to as given below

ll /var/cpanel/userhomes/cpanel-phpmyadmin/
total 16
drwx–x–x 4 cpanel-phpmyadmin cpanel-phpmyadmin 4096 Mar 10 23:56 ./
drwx–x–x 5 root root 4096 Mar 10 23:53 ../
drwxr-x— 2 cpanel-phpmyadmin cpanel-phpmyadmin 4096 Mar 10 23:53 mail/
drwx—— 2 cpanel-phpmyadmin cpanel-phpmyadmin 4096 Mar 10 23:56 tmp/

Plesk error: “gzip: stdout: Broken pipe” when attempting to backup domains

Reason: Backup utility failed to write data to disk for some reasons.

Check permissions on backup folder and it’s sub folders. Right permissions are:

grep DUMP_D /etc/psa/psa.conf | awk ‘{print “ls -ld “$2}’ | sh
drwxr-x— 7 psaadm psaadm /var/lib/psa/dumps

Make sure that is is enough free disk space on dump partition.

Reference: http://kb.parallels.com/en/

SBDavid

Error: “PEAR: command not found”

Error: “PEAR: command not found”

If you build PHP with PEAR, and the script pear does not exist on your server, this is what happened:

At some point, /usr/local/bin/pear and/or /usr/bin/pear were manually removed.

The directories /usr/local/lib/php/.registry and/or /usr/lib/php/.registry exist.

During PHP’s make install, the existence of those .registry directories cause the PEAR shell archive to think PEAR is already installed, so it skips the remainder of the PEAR build. Therefore, the bin/ files are not rebuilt.

However, if you move or delete the .registry files so that the build will complete, you lose the data about PEAR modules installed on the system.

How to resolve this issue.

The best course of action is to download the PEAR tarball from http://pear.php.net/package/PEAR/download to obtain the bin/ that is missing on your server, and place it in the proper location on your system.

Reference : http://cpanel.net & http://pear.php.net/

500 error in Ensim interface if python-kid is upgraded

To resolve this issue.

For RHEL4, Cent OS 4.1, Cent OS 4.2, Cent OS 4.3, Cent OS 4.4:

Download:

http://download.pro.parallels.com/download/pro/linux/kb/2441/rhel4/removeTemplateBytecode.pyc

Installation Procedure:

Get the binary from the locations mentioned above.

Execute the binary

python removeTemplateBytecode.pyc
service epld restart

Reference: http://parallels.com

« Prev - Next »