Archive for September 2010

How to enable custom php.ini settings for particular domain in Plesk ?

Most of the time it is observed that a particular domain requires php.ini variables other than those set in the server’s main php.ini file, so it is not possible to change the server php.ini variables for a particular domain. In that case we can enable those custom variables required for a particular domain from the httpd.include file.
To enable this you need to make the required changes :

[email protected][#] cd /var/www/vhosts/yourdomain.com/conf

[email protected][#] vi httpd.include

Search for the Directory tab

8) Directory /var/www/vhosts/yourdomain.com/httpdocs

and here you will find the sapi_apache2.c and mod_php5.c modules entries under the directory tab


php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir “/var/www/vhosts/allbuyart.com/httpdocs:/tmp”


php_admin_flag engine on
php_admin_flag safe_mode off
php_admin_value open_basedir “/var/www/vhosts/allbuyart.com/httpdocs:/tmp”

Now you just need to change/set the variables in those modules

for example if you want to enable the safe_mode on then make the below changes :


php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir “/var/www/vhosts/allbuyart.com/httpdocs:/tmp”


php_admin_flag engine on
php_admin_flag safe_mode on
php_admin_value open_basedir “/var/www/vhosts/allbuyart.com/httpdocs:/tmp”

Then restart the apache service

[email protected][#] /etc/init.d/httpd restart

That’s all you are done.

Plesk Unable to load object of type IPAddress failed

Many times when you try to add a new domain in plesk you may encounter the error :

Unable to load object of type IPAddress with id=8: Table->select() failed: no such row in the table
0: common_func.php3:3159
objectMakerEx(string ‘IPAddress’, integer ‘8’)
1: IPPoolManager.php:968
IPPoolManager::toString(integer ‘8’, string ‘exclusive’)
2: class.CreateDomainForm.php:31
ip_pool_slist(array)
3: class.CreateDomainForm.php:271
CreateDomainForm->assign(boolean false, boolean false, string ”, object of type Client, array, array, integer ‘0’, boolean true, boolean false, boolean false, boolean false, boolean false, array, array, array, boolean false, object of type plesk__client__domain__properties)
4: DomainPropertiesUIPointer.php:437
DomainPropertiesUIPointer->accessItem_create(string ‘GET’)
5: DomainPropertiesUIPointer.php:59
DomainPropertiesUIPointer->accessItem(string ‘GET’, NULL null)
6: UIPointer.php:596
UIPointer->access(string ‘GET’)
7: plesk.php:38

To fix the issue you need to add a new ip to the plesk control panel from :

Plesk >> Home >> IP addresses management >> Add IP Address

and then remove the IP from :

Plesk >> Home >> IP addresses management >> Add IP Address

Now try to add the domain you will be able to add a new domain without any error.

That’s all you are done.

How to check the CPanel version ?

If you want to check the Version of CPanel installed on the server then just run the below command on the server

[email protected][#] /usr/local/cpanel/cpanel -V

You will get the output as :

11.26.9-RELEASE_48422

That’s all you are done.