Failed domain creation: Unable to update domain data

January 22, 2010    |   Posted by admin   |    Category: Plesk Management

You may come across the “Failed domain creation” error message while adding a domain from the Plesk control panel.

Failed domain creation: Unable to update domain data: Failed setting of domain parameters: Cannot change Webmail on domain: webmail
0: DomainPropertiesUIPointer.php:267
DomainPropertiesUIPointer->accessItem_create(string ‘POST’)
1: DomainPropertiesUIPointer.php:59
DomainPropertiesUIPointer->accessItem(string ‘POST’, NULL null)
2: UIPointer.php:596
UIPointer->access(string ‘POST’)
3: plesk.php:38

The fix provided across the internet is to install the psa-hotfix3 but it doesn’t work. In order to resolve the Plesk domain creation issue, run the autoinstaller in order to upgrade the installed components. The autoinstaller is use to install the new components offered by Plesk OR to upgrade the existing ones.

/usr/local/psa/admin/sbin/autoinstaller –select-release-current –upgrade-installed-components –debug

Comments Off on Failed domain creation: Unable to update domain data

howto: turn off open_basedir in Plesk

December 3, 2009    |   Posted by admin   |    Category: Plesk Management

How to turn off open_basedir in Plesk?

By default Plesk applies open_basedir restriction for all the domains on the server. You can remove the open_basedir restriction lines from the httpd.include file located at /home/httpd/vhosts/example.com/conf/ directory but Plesk will overwrite the file again once it rebuild the include files.

To permanently remove the open_basedir restrictions for a domain, create a vhost.conf file

vi /home/httpd/vhosts/example.com/conf/vhost.conf

and place the following lines:

<Directory /home/httpd/vhosts/example.com/httpdocs/>
php_admin_value open_basedir none
</Directory>

Once done, rebuild the include file with the command:

/usr/local/psa/admin/bin/websrvmng -a

and restart the Apache service:

service httpd restart

To verify the new settings, place a phpinfo.php file under the account, browse the file and check the “Local Value” column.

Comments Off on howto: turn off open_basedir in Plesk

Error: Unable to create the domain because a DNS record exists

November 28, 2009    |   Posted by admin   |    Category: Plesk Management

Error:

Error message “Error: Unable to create the domain example.com because a DNS record pointing to the host example.com already exists.”

The error message is displayed when you add a domain from Plesk control panel and it fails. The reason it fails is because the DNS records of the domain already exist in the psa database. The tables dns_recs and dns_zone holds the DNS records for a domain.

In order to add the domain example.com, you will have to remove the DNS entries from the tables dns_recs and dns_zone.

1) Goto Mysql prompt:

root@host [~]# mysql -uadmin -p `cat /etc/psa/.psa.shadow`

2) Use the psa database

mysql>  use psa;

3) Remove the DNS entries from the dns_recs and dns_zone tables:

mysql> delete from dns_recs where dns_zone_id=10;
mysql> delete from dns_zone where id=10;

where, 10 is the dns_zone_id of the domain example.com.

4) Restart the mysql service:

root@host [~]# service mysqld restart

You should now be able to add the domain from Plesk control panel successfully.

call_handlers: DEFER during call ‘/usr/local/psa/handlers/info/05-grey-tqyVhg/executable’ handler OR Message cannot be delivered and error “Unable to stat entry

November 11, 2009    |   Posted by admin   |    Category: Plesk Management

Error:

call_handlers: DEFER during call ‘/usr/local/psa/handlers/info/05-grey-tqyVhg/executable’ handler

OR

Message cannot be delivered and error “Unable to stat entry ‘/usr/local/psa/handlers/info/10-spam-0gemCa/executable’

You see the above error message in the mail logs because the configuration of the handlers i.e. 10-spam-0gemCa are broken. In this case, you need to either delete them OR move them elsewhere so that you can recreate the configuration by using the ‘mchk’ utility of Plesk

Solution:

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

BTW, the path to mailogs is /usr/local/psa/var/log/maillog.

Comments Off on call_handlers: DEFER during call ‘/usr/local/psa/handlers/info/05-grey-tqyVhg/executable’ handler OR Message cannot be delivered and error “Unable to stat entry

Plesk webmail + DB Error: connect failed

October 31, 2009    |   Posted by admin   |    Category: Plesk Management

You may receive the following error message while accessing Webmail on a Plesk server:

A fatal error has occurred
DB Error: connect failed

You need to make sure the ‘horde’ user is able to connect to the ‘horde’ database using the password mentioned in the file “/etc/psa/.webmail.shadow”. You have to create the file and specify a random password if the file is missing.

To set the password for user ‘horde’ , go to the mysql prompt.

#mysql -uadmin -p`cat /etc/psa/.psa.shadow` mysql

On the mysql prompt, execute:

mysql> update user set password=password(password-from-.webmail.shadow) where user=’horde’;

Also make sure sql.safe_mode is set to off in /etc/php.ini file:

sql.safe_mode=Off

Restart Apache server once you save the file.

If the problem persists, use the password from “/etc/psa/webmail/horde/.horde.shadow” file. Go through the following steps:

#cp /etc/psa/webmail/horde/.horde.shadow /etc/psa/.webmail.shadow

#mysql -uadmin -p`cat /etc/psa/.psa.shadow` mysql

mysql> update user set password=password(password-from-/etc/psa/webmail/horde/.horde.shadow) where user=’horde’;

You should now be able to access Webmail client.

Comments Off on Plesk webmail + DB Error: connect failed