Plesk – Unable to stat entry ‘/usr/local/psa/handlers/info/’

Re: Mail being bounced even though Mailbox exists, bounce message

Hi. This is the qmail-send program at server.mailserver.com.
I’m afraid I wasn’t able to deliver your message to the following addresses.
This is a permanent error; I’ve given up. Sorry it didn’t work out.”

Take a look in the mail log file:

tail -1500 /usr/local/psa/var/log/maillog

You see errors such as this:

Unable to stat entry '/usr/local/psa/handlers/info'

To resolve you need to remove and rebuil all mail handlers as follows:

1. Stop the mail service

    # /usr/local/psa/admin/sbin/mailmng --stop-service

    OR

    # service qmail stop

2. Backup old handlers in a temporary directory

    # mkdir /usr/local/temp

    # cp -a /usr/local/psa/handlers/before-* /usr/local/temp/

    # cp -a /usr/local/psa/handlers/info /usr/local/temp/

3. Remove the handlers

    # rm -rf /usr/local/psa/handlers/before-*/*

    # rm -rf /usr/local/psa/handlers/info/*

4. Recreate handlers using mchk utility

    # /usr/local/psa/admin/sbin/mchk --with-spam

5. Start mail service:

    # /usr/local/psa/admin/sbin/mailmng --start-service

    OR 

    service qmail start

This may take a little time however it will resolve all errors.

Plesk – (28) No space left on device – Apache won’t start

Re: Can’t start Apache, getting error (28) No space left on device

First, don’t panic, this problem is easily fixed. Take a deep breath and now get ready to clear up some semaphores:

1) First let’s kill all httpd process:

# killall -9 httpd

2) Now let’s delete the semaphores:

# ipcs -s | grep apache | perl -e 'while (<STDIN>) {@a=split(/\s+/); print `ipcrm sem $a[1]`}'

3) Now let’s start up Apache

# service httpd start

Problem solved, panic over. One for the toolbox!

Plesk 9 – Enable PHP Pear for a domain

Re: How to enable PHP Pear for a domain in Plesk

1) edit vhost.conf as such:

<Directory /var/www/vhosts/domain.com/httpdocs>
        php_admin_value include_path "/var/www/vhosts/domain.com/httpdocs/:/usr/share/pear/"
        php_admin_value open_basedir "none"
</Directory>

2) /usr/local/psa/admin/sbin/websrvmng – -reconfigure-vhost –vhost-name=domain.com

3) service httpd restart

To test pear, create a php file, eg check_pear.php

<?php
require_once 'System.php';
var_dump(class_exists('System', false));
?>

4) open check_pear.php in a browser, a ‘true’ result confirms pear is working:

bool(true)

That’s all there is to getting PEAR working on Plesk 9 Linux.

Where is email data stored in Plesk?

Re: Where are emails and email files stored in Plesk?

Even though emails account for part of your web space usage, they are actually stored outside of your vhost document root.

You can find all email files here:

# ls -l /var/qmail/mailnames

Each directory relates to a specific POP box, the mailboxes are not grouped by domain or client account.

Plesk Error: The domain is still suspended for the following reason: Domain is temporarily suspended for backing up or restoring.

If you get the error “The domain is still suspended for the following reason: Domain is temporarily suspended for backing up or restoring.” this means that the domain is locked and you will not be able to unsuspend the domain name from the Plesk 9.x control panel.

Some solution show you editing the plesk databases directly, but there is no need for such a risk.

The solution for Plesk 9.x for Linux is as follows:

  1. Open up a command shell with the server
  2. Type the following command to directly unsuspend the domain
  3. # /usr/local/psa/bin/domain –on domain.com

Now you should see “SUCCESS: Changing status of domain ‘domain.com’ complete.”