• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Error creating domains

D

dvparejaII

Guest
Error creating domains (SOLVED)

PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Plesk version: 10.4.4
CentOS 6 64bits
Apache version: Apache/2.2.15 (Unix)
PHP version: 5.3.10 (cli) (built: Feb 3 2012 08:17:28)
MySQL: 5.5.21-cll MySQL Community Server (GPL)

PROBLEM DESCRIPTION AND STEPS TO REPRODUCE
When a client logs into their plesk and tries to create a domain (or subdomain or change the name of a domain) they
get the following error

ACTUAL RESULT
Error: Unable to determine preferred php handler

EXPECTED RESULT
Create Domain

ANY ADDITIONAL INFORMATION
The error is client wide.
The apache log file shows:
[Wed Mar 07 18:37:19 2012] [notice] caught SIGTERM, shutting down
[Wed Mar 07 18:37:20 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Mar 07 18:37:20 2012] [warn] No JkShmFile defined in httpd.conf. Using default /etc/httpd/logs/jk-runtime-status
[Wed Mar 07 18:37:20 2012] [notice] Digest: generating secret for digest authentication ...
[Wed Mar 07 18:37:20 2012] [notice] Digest: done
[Wed Mar 07 18:37:20 2012] [warn] No JkShmFile defined in httpd.conf. Using default /etc/httpd/logs/jk-runtime-status
[Wed Mar 07 18:37:20 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_fcgid/2.3.6 mod_jk/1.2.31 mod_ssl/2.2.15 OpenSSL/1.0.0-fips configured -- resuming normal operations

/var/log/sw-cp-server/error_log

2012-03-07 20:33:40: (mod_fastcgi.c.2588) FastCGI-stderr: PleskFatalException: Unable to determine preferred php ha
ndler
file: /usr/local/psa/admin/plib/Hosting/Options/Availability.php
line: 121
code: 0
trace: #0 /usr/local/psa/admin/smb/application/library/Smb/Plesk/Bridge/Hosting.php(753): Hosting_Options_Availabil
ity->getPreferredPhpHandler()
#1 /usr/local/psa/admin/smb/application/library/Smb/Plesk/Bridge/Hosting.php(714): Smb_Plesk_Bridge_Hosting::getAva
ilableHostingOptions(Object(Db_Table_Row_ServiceNode))
#2 /usr/local/psa/admin/smb/application/library/Smb/Plesk/Bridge/Hosting.php(692): Smb_Plesk_Bridge_Hosting->_creat
eHostingForAdditionalDomain(Object(Webspace), 'pcimysite.net')
#3 /usr/local/psa/admin/smb/application/library/Smb/Plesk/Bridge/Domain.php(737): Smb_Plesk_Bridge_Hosting->setupAd
ditionalDomain(Object(Webspace), 'pcimysite.net')
#4 /usr/local/psa/admin/smb/application/library/Smb/Form/Final/Web/AddDomain.php(95): Smb_Plesk_Bridge_Domain::crea
teAdditionalDomain(Object(Webspace), 'pcimysite.net', 'master', Array, 0)
#5 /usr/local/psa/admin/smb/application/controllers/WebController.php(127): Smb_Form_Final_Web_AddDomain->processFo
rm()
#6 /usr/local/psa/admin/plib/Zend/Controller/Action.php(513): WebController->addDomainAction()
#7 /usr/local/psa/admin/plib/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('addDom
ainAction')
#8 /usr/local/psa/admin/plib/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Z
end_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#9 /usr/local/psa/admin/smb/application/library/Smb/Application/Web.php(48): Zend_Controller_Front->dispatch(NULL)
#10 /usr/local/psa/admin/smb/application/public/index.php(15): Smb_Application_Web->run()
#11 {main}


2012-03-07T20:33:52+01:00 ERR (3): Unable to determine preferred php handler

However when I login as admin every works correctly.

Thanks for your help

SOLUTION

Thanks to Parallels for their invaluable help (irony)

1. Switch off VPS-Optimized
2. Clean at tables dns_recs and domains for erroneous alias entries as per found in psa database. (not necessary but recommended if you know what you're doing).

Good Luck !
 
Last edited by a moderator:
I also have this exact same error - although everything works fine via the administrator account
 
Back
Top