Issue: If you are trying to add the email account using the cpanel (or using /scripts/addpop) , the following error will occur:
error: flock timeout at /usr/local/cpanel/SafeFile.pm line 37.
SafeFile::__ANON__('ALRM') called at /usr/local/cpanel/SafeFile.pm line 40
eval {...} called at /usr/local/cpanel/SafeFile.pm line 39
SafeFile::safeopen('GLOB(0x8395ce4)', '<', '/var/cpanel/cpanel.config') called at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 1708
Cpanel::cPanelFunctions::loadConfig('/var/cpanel/cpanel.config', 'HASH(0x82f7f88)') called at /usr/local/cpanel/Cpanel/cPanelFunctions.pm line 1232
Check the ownership of the .contactemail and do the following to the fix the issue:
chown root:root /home/username/.contactemail
If you see any incorrect group or user in the home directory, do the following also:
cd /home/username
chown -R username .
chown root:root .contactemail .bash_logout .bashrc .bash_profile
find ./ -group AnothergroupName > abc.txt (or find /home/username/ -group AnothergroupName > abc.txt)
for i in `cat abc.txt`; do chown username:username $i; done
Cpanel error occurred while adding email account
Wednesday, November 7, 2007
Posted in: cpanel | 0 Comments | Email This
Cpanel "Mail Account Maintenance" section: mail account listing
The email accounts are listed, according to the entry in the /home/username/etc/domainName/passwd. The corresponding entry for the email account will not be present in it (/home/username/etc/domainName/passwd).
Before adding the entry, check whether the encrypted password in /home/username/etc/domainName/shadow
emailaccount:$1$UvZsG9RG$sU3foxu9NHgrtH8IrHAsn1:::::::
You need to add the entry in the /home/username/etc/domainName/passwd like: emailaccount:x:34115:34115::/home/username/mail/domainName/emailaccount:/usr/local/cpanel/bin/noshell
The entry "34115:34115" can be obtained from the :
id username
Note: Replace the username, domainName, emailaccount by the corresponding values.
Posted in: cpanel | 0 Comments | Email This
Cpanel horde - Internal Server Error
Issue:
Internal Server Error
Unable to open engine binary (php) at cpsrvd-ssl.pl line 4971
main::phpHandler() called at cpsrvd-ssl.pl line 3697
main::dodoc_webmaild() called at cpsrvd-ssl.pl line 674
main::dodoc() called at cpsrvd-ssl.pl line 576
Fix:
To fix this issue do the following: Edit the file /usr/local/cpanel/bin/update-horde
hordever="3.1.3p2"
to
hordever="3.1.3"
After this modification, run the script
/usr/local/cpanel/bin/update-horde
Check whether the horde database is connecting properly using the configuration file (/usr/local/
cpanel/base/horde/config/conf.php). If it is not connecting then do " /scripts/fullhordereset " O
R grant privilege on the horde database to horde user according to /usr/local/cpanel/base/horde/c
onfig/conf.php.
Posted in: cpanel | 0 Comments | Email This
Move deleted messages (in webmail) to the trash folder
Aim : Move deleted messages (in webmail) to the trash folder, instead of leaving them (or marking
deleted) in the inbox.
Modify the "value" from 0 to 1 in the pref.php code. The location of the pref.php differs in the control panel.
Cpanel : /usr/local/cpanel/base/horde/config/prefs.php (most probably)
Plesk : /etc/psa-horde/horde/prefs.php (Differs according to the setting)
// moving messages to a trash folder instead of just marking
// them as deleted?
// a value of 0 = no, 1 = yes
$_prefs['use_trash'] = array(
'value' => 1,
'locked' => false,
'shared' => false,
'type' => 'checkbox',
'desc' => _("When deleting messages, move them to your Trash folder instead of marking them as deleted?")
);
Note: If this is not present add the above code in the prefs.php to fix this issue. Be careful in handling this, this is serverwide horde setting. Do backup of the file, before editing it.
Posted in: cpanel | 0 Comments | Email This
Cpanel domain name is not showing
Issue: Cpanel of the domain shows :
Welcome yourdomain.com!
[an error occurred while processing this directive] [an error occurred while processing this directive]
OR
The following error occurred while trying to add email account in the domain:
# /scripts/addpop test123@domainName password
Unable to open /var/cpanel/username: Permission denied at /usr/local/cpanel/Cpanel.pm line 152. Sorry, you do not have access to the domain domainName
Check whether any extra blank line line in the /var/cpanel/cpanel.config
Check the ownership of the file /var/cpanel/users/username
chown cpanel:username /var/cpanel/users/username
This will fix the issue.
Posted in: cpanel | 0 Comments | Email This
How to Change the "Welcome to Horde" message at the login page to "Welcome to domainName"
This can be done in the file imp/login.php in the horde. The path will be different. In cpanel it
is /usr/local/cpanel/base/horde/imp/login.php, like that the path veriies according to the horde
setting.
Replace the
$title = sprintf(_("Welcome to %s"), $registry->get('name', ($imp_auth) ? 'horde' : null));
by
$domain = substr($_SERVER['SERVER_NAME'], 8);
$title = sprintf(_("Welcome to %s"), $registry->get('name', ($imp_auth) ? 'horde' : null) . " - "
. $domain);
This will change it to "Welcome to domainName". The domainName will be replaced by corresponding
domain name.
Posted in: cpanel | 0 Comments | Email This
FTP error 530 Login incorrect
First of all check which FTP is using the Cpanel proftpd or pureftpd
If it is using the proftpd, do the folowing to fix the 530 error
1. First of all try the /scripts/ftpupdate
2. grep
3. If it is not present there then grep
4. Check details and cat >> /etc/proftpd/passwd.vhosts
5. Paste the main ftp account details in this file
6. /scripts/restartsrv_ftpserver
Note: please be careful in doing it. If you have specified cat > /etc/proftpd/passwd.vhosts, it w
ill overwrite the whole content.
If it is pureftpd:
Do the above 6 steps
7. Sometimes you need to rum "/usr/sbin/pure-uploadscript -B -r /usr/local/bin/ftpfilter" also
Posted in: cpanel | 0 Comments | Email This
Error : 550-The recipient cannot be verified
While checking the exim_mainlog, you can find the error message like:
H=(nf-out-0910.google.com) [IP] F=
Such User Here
The bounce back error message will look like:
Technical details of permanent failure:
PERM_FAILURE: SMTP Error (state 9): 550-"The recipient cannot be verified. Please check all recip
ients of this
550 message to verify they are valid.
Please run the following to fix the issue:
/scripts/updateuserdomains
/scripts/mailperm
Also check the /etc/localdomains file and verify that the domainName is present in it. The "DNS="
line in /var/cpanel/users/userName should contain the domainName.
Note : Replace domainName, userName and emailAccount by corresponding values.
Posted in: cpanel | 0 Comments | Email This
Unable to delete filter rule from the cpanel
Issue:
The deleted filter rule is still displaying in the cpanel "spamfilter option".
On verification you can find that the rule have been deleted from "/etc/vfilters/domainName". But
that filter rule is still displaying in the cpanel.
Check whether any .filter file in the home directory of the domain (/home/username/.filter). Dele
te the corresponding rule entry from the .filter file. This will fix the issue.
Posted in: cpanel | 0 Comments | Email This
Manually modifying Counter value in Cpanel
The Cpanel counters are mainly created using the "CGI Center -> Counter" section. This will creat
e the file called userName.dat in the /var/cpanel/Counters/ .
You need to edit the value in the file /var/cpanel/Counters/userName.dat . The value should end with $ .
This will look like as follows (counter value - 12):
# cat /var/cpanel/Counters/userName.dat
12$
Note: Replace the userName by corresponding username of the domain.
Posted in: cpanel | 0 Comments | Email This
PhpMyAdmin Error: No input file specified
This issue is occurring due to the incorrect ownership of the phpMyAdmin. The ownership of the phpMyAdmin must be cpanel (both user and group)
chown -R cpanel:cpanel /usr/local/cpanel/base/3rdparty/phpMyAdmin
This will fix the phpMyAdmin issue.
Posted in: cpanel | 0 Comments | Email This
FileManager Produces error while uploading the file
FileManager Produces error while uploading the file
If you are trying to upload the file using the File manger in the CPanel, the following error wil
l occur: "Virus Detected; File not Uploaded! (lstat() failed. ERROR)"
Solution:
1. Comment the line "User clamav" in the /etc/clamd.conf
2. Restart the clamd using "/etc/rc.d/init.d/clamd restart"
This will fix the issue.
Posted in: cpanel | 0 Comments | Email This
Horde Error when logging in ( Warning: fopen(/tmp/horde NUMBER.log): failed to ope n stream: Permission denied )
The most common reasons for this error are the following.
1. /tmp has wrong permissions(chmod 777 /tmp) 2. /tmp/horde_12345.log is not owned by the proper user/group (chown cpanel.cpanel /tmp/horde_12345.log) 3. /tmp/horde_12345.log has the wrong permissions (chmod 0644 /tmp/horde_12345.log)
Do the following to fix the above common problems... (as root)
chmod 777 /tmp
chown cpanel.cpanel /tmp/horde_12345.log
chmod 0644 /tmp/horde_12345.log
Note: Replace horde_12345.log by corresponding '.log'file.
Posted in: cpanel | 0 Comments | Email This
Installation of cpanel in the server
cPanel now uses a universal install script which can be found at http://layer1.cpanel.net/. You can use the following commands in the root shell to download and start the installation script:
mkdir /home/cpins
cd /home/cpins
wget http://layer1.cpanel.net/latest
sh latest
Posted in: cpanel | 0 Comments | Email This
Cpanel- How can we solve the problem "Unable to login FAQMasterFlex admin area" ?
Tuesday, November 6, 2007
How can we solve the problem "Unable to login FAQMasterFlex admin area" ?
This might be due to 'register globals =off'. Because of that, the server variables must be expli
citly pulled into the script in order for the authentication to work. Add the following two state
ments to admin_authorize.php, just above the "if" statement that tests their values:
$PHP_AUTH_USER = $_SERVER['PHP_AUTH_USER'];
$PHP_AUTH_PW = $_SERVER['PHP_AUTH_PW'];
Posted in: cpanel | 0 Comments | Email This