Posts

safe_userchgid error or IP MISSING in WHM on VPS containers

Issue: While creating an account in WHM, sometime following error occurs: safe_userchgid: chown Permission denied at /usr/local/cpanel/Cpanel/SafetyBits.pm Although, the account has created but IP will be MISSING in the List Accounts section in WHM FIX: You should try to add an user in your VPS to confirm the error: # useradd cptesting001 Setting mailbox file permissions: Disk quota exceeded You can also get the details of error using the following command: # grep vzfs /usr/local/cpanel/logs/error_log edquota: Cannot set quota for user 828 from kernel on /dev/vzfs: No such process edquota: Can't write quota for 828 on /dev/vzfs: No such process In this case, the problem is that quotaugidlimit has been reset to its default for some reason and it's causing the container not to be able to manage users and groups correctly anymore. An easy fix is to simply increase the quotaugidlimit to something above the total of the number of users and groups currently configured. Have a look...

How to enable the html display for horde webmail?

To enable the html display for horde webmail you need to modify /usr/local/cpanel/base/horde/imp/config/mime_drivers.php file. Open the /usr/local/cpanel/base/horde/imp/config/mime_drivers.php file in your favorite editor and change the following line from false to true  /* HTML driver settings */     'html' => array(         /* NOTE: Inline HTML display is turned OFF by default. */         'inline' => false,   <==== true         'handles' => array(             'text/html'         ), Save the changes and restart the cPanel # service cpanel restart or # /etc/init.d/cpanel restart As well as restart the Imap server, # /scripts/restartsrv courier Now, check your emails in Horde. :)

Mail server does not work in Plesk

Issue:   Sometimes, you are not able to login to all the email accounts associated with the domain. The following error you get on the Webmail or other mail client. Login failed because your username or password was entered incorrectly. Fix: You can fix the issue by repairing mail server configuration in Plesk. Use mchk utility to repair/rebuild mail server configuration and restore settings for all mailboxes created in Parallels Plesk Panel. You need to run the following command in order to fix the issue in the server: # /usr/local/psa/admin/sbin/mchk  ==> Checking for: mailsrv_conf_init... ok ==> Checking for: mail_handlers_init... ok ==> Checking for: mailsrv_entities_dump... ok ==> Checking for: mail_admin_aliases... ok ==> Checking for: mail_auth_dump... ok ==> Checking for: mailman_lists_dump... ok ==> Checking for: mail_kav8_restore... ok ==> Checking for: mail_responder_restore... ok ==> Checking for: ma...

The server's system package manager, 'YUM', failed

Issue: Sometimes, you encountered through the following error while running Easyapache in a cPanel server : !! The server's system package manager, 'YUM', failed. !! Fix: You can fix the issue by removing openssl library in your server using the following command: # rpm -e openssl --nodeps --justdb --allmatches Now run Easyapache. It should run successfully.

File not Found error in Plesk while exporting database through PHPMyAdmin

Issue: Sometimes, exporting database from WebAdmin in Plesk, you might end up with following error: File not Found can’t find the file at https://xx.xx.xx.xx:8443/domains/databases/phpMyAdmin/export.php  Fix: The issue occurs when you try to export large size database with low "memory_limit" in your server. You need to increase the "memory_limit" module in the 'php.ini' file, in order to fix the issue. You can follow the steps mentioned below to increase the "memory_limit" value in your server: 1) Login to the server as root user. 2) Go to /usr/local/psa/admin/conf/ # cd /usr/local/psa/admin/conf/ 3) Open php.ini file in any of your editor # vi php.ini 4) Increase the memory_limit say 512MB and save the file 5) restart plesk service # /etc/init.d/psa restart Try exporting the database now. The issue should have fixed. :)

404 Error or Too many redirects error on WP password protected directory

Issue: When you password protect your WordPress admin (wp-admin) directory, Wordpress Admin URL will shows 404 Error or Too many redirects error in browser. Fix: To fix this issue, open your main WordPress .htaccess file and add the following code there before the WordPress rules start. ErrorDocument 401 default Now check your Wordpress Admin URL. It will load with double authentication for your WordPress admin area. :)

Fatal error: Incompatible file format in livesite application

Error: Fatal error: Incompatible file format: The encoded file has format major ID 65540, whereas the Optimizer expects 2 in /home/user/public_html/livesite/get_page.php on line 0 Fix:  The issue occurred due to misconfiguration in PHP version and Zend optimizer. In order to fix the issue, you need to upgrade your PHP version from 5.2 to 5.3 or 5.4 and remove the old Zend Loader version code from the php.ini file add the correct Zend Loader version code. If Zend Guard/Optimizer is not installed in the server, you can install it through the following steps: 1. Login to your server via SSH 2. Run:  /scripts/installzendopt The issue should have fixed now. :)

Webmail (Roundcube/Squirrelmail/Horde) is not showing emails

Sometimes you face the issue in which Webmail (Roundcube/Squirrelmail/horde) won't show emails in mail boxes for some particular account(s). Reason: The issue is with the Dovecot and may be due to Dovecot cache. Fix: Follow the steps mentioned below to fix the issue: 1. SSH the server with root access and change the current directory to the mail directory of the affected account using cd command: # cd /home/<user>/mail 2. Run the following script to find the dovecot related files and moved those to backup file. # find -type f -name "dovecot*" -exec mv -f {}{,.bak.`date +%m-%d-%Y`} \; 3. Restart dovecot with the following command: # /etc/init.d/dovecot restart Now check the mails on your Webmail account. The emails will be shown now. :)

Website shows default Apache test page

Issue : The website shows default Apache test page(not the Plesk default page) instead of the website contents. Resolution : 1. Make sure that the domain name resolves to the same IP address on which the domain's hosting is set up in Parallels Plesk Panel. If a mismatch is found, either change the DNS records or re-assign the domain to correct the IP address. 2.  Check if index file is missing from the document root in the server. Probably you don't have an index page, or this page is not listed in the DirectoryIndex directive in the main Apache configuration file (httpd.conf). You can modify DirectoryIndex in httpd.conf to match your needs, e.g.: DirectoryIndex index.html index.htm index.shtml index.php Then restart Apache for the changes to take effect. 3. Try rebuilding Apache configuration files for the domain: /usr/local/psa/admin/bin/httpdmng --reconfigure-domain <domain_name> If the issue occurs for all domains, you may run this command: /usr/loc...

Cron of wget command is not working

Error:  /usr/bin/wget: line 1: ////centos/5/x86_64/wget-1.11.4-3.el5_8.2.x86_64/usr/bin/wget: No such file or directory Fix: You need to re-install wget and GET packages with "perl-libwww-perl" in the server in order to fix this issue. You can follow the steps mentioned below to do the same: 1. Login to your server as root. 2. Run the following command: root@server[~]# yum -y reinstall wget perl-libwww-perl 3. Once the above command is executed without any error, the issue should be fixed. Sometimes, you will get the following error while installing the package "perl-libwww-perl": Excluding Packages in global exclude list Finished No Match for argument: perl-libwww Nothing to do In such scenario, you need to install "perl-libwww-perl" using the following command: root@server [~]# yum -y --disableexcludes=all reinstall perl-libwww-perl I believe, the above command will execute successfully and your issue sh...