• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Unable to create domain after Plesk update up to version 12.0.18

KonstantinT

New Pleskian
Hi there

There are some problems with the creation new domain after Plesk Panel upgrade. Every time when I create new domain, I get the following issue:

Code:
[2014-09-04 23:06:28] ERR [panel] Step failed 'applyCreateSubscription'. phpinimng failed: Cannot parse php.ini: (<class 'php_ini.PhpIniSyntaxError'>, PhpIniSyntaxError('[<stdin>:13] Invalid configuration line. Are there excessive leading spaces?',))

Here is output from log file more detail /usr/local/psa/admin/logs/panel.log:
Code:
[2014-09-04 21:23:36] ERR [panel] New configuration files for the Apache web server were not created due to the errors in configuration 
templates: Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = Template_Exception: N
o data.<br />
file: /usr/local/psa/admin/plib/Template/Processor.php<br />
line: 28<br />
code: 0<br />
Previous error: Template_Variable_Exception: No data.<br />
file: /usr/local/psa/admin/plib/Template/Variable/AbstractCachedData.php<br />
line: 67<br />
code: 0. &lt;a target=&quot;_blank&quot; href=&quot;http://kb.parallels.com/en/products/?id=52&amp;qprod=52&quot;&gt;Search in KB&lt;/a&
gt;
[2014-09-04 23:06:25] ERR [util_exec] proc_close() failed
[04-Sep-2014 23:06:25 UTC] PleskUtilException: '/usr/local/psa/admin/bin/phpinimng' '--virtual-host' 'DOMAIN.TLD' '--override' '/var
/www/vhosts/system/DOMAIN.TLD/conf/php.ini' '--type' 'cgi' '--global-config' '/usr/local/lib/php.ini' failed with code 1.

stdout:


stderr:
Cannot parse php.ini: (<class 'php_ini.PhpIniSyntaxError'>, PhpIniSyntaxError('[<stdin>:13] Invalid configuration line. Are there excessive leading spaces?',))

file: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
line: 57
code: 0
trace: #0 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(60): Service_Agent_Transport_Local_Exec->process(0, Object(Service_Agent_Command_Exec), Object(Service_Agent_Transport_LocalTransaction))
#1 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(26): Service_Agent_Transport_Local->_command(0, Object(Service_Agent_Command_Exec), Object(Service_Agent_Transport_LocalTransaction))
#2 /usr/local/psa/admin/plib/Service/Agent.php(172): Service_Agent_Transport_Local->process('edf81dd26412a96...', Array)
#3 /usr/local/psa/admin/plib/Service/Agent.php(241): Service_Agent->commit()
#4 /usr/local/psa/admin/plib/PHosting/Apache.php(645): Service_Agent->execAndGetResponse('phpinimng', Array, ';\n; This is an ...')
#5 /usr/local/psa/admin/plib/PHostingManager/Abstract.php(794): PHosting_Apache->updatePhpConfiguration(';\n; This is an ...', 'fastcgi')
#6 /usr/local/psa/admin/plib/PHostingManager/Apache.php(249): PHostingManager_Abstract->_configurePhpSettings()
#7 [internal function]: PHostingManager_Apache->transactionalUpdate(Object(Transaction_Rollback))
#8 /usr/local/psa/admin/plib/Transaction/Rollback.php(17): call_user_func(Array, Object(Transaction_Rollback))
#9 /usr/local/psa/admin/plib/PHostingManager/Apache.php(216): Transaction_Rollback->commit(Array)
#10 /usr/local/psa/admin/plib/DSWeb.php(217): PHostingManager_Apache->update()
#11 /usr/local/psa/admin/plib/Commands/CreateSubscription.php(436): DSWeb->update()
#12 /usr/local/psa/admin/plib/Commands/CreateSubscription.php(229): Commands_CreateSubscription->_createHosting(Object(BsDomain))
#13 /usr/local/psa/admin/plib/Transactional.php(210): Commands_CreateSubscription->applyCreateSubscription()
#14 /usr/local/psa/admin/plib/Transactional.php(139): Transactional->apply()
#15 /usr/local/psa/admin/plib/Commands/CreateSubscription.php(133): Transactional->execute()
#16 /usr/local/psa/admin/plib/AdminPanel/Form/Subscription.php(198): Commands_CreateSubscription->create()
#17 /usr/local/psa/admin/plib/AdminPanel/Form/Final/CreateSubscription.php(95): AdminPanel_Form_Subscription->processForm()
#18 /usr/local/psa/admin/plib/AdminPanel/Controller/Action/Subscription.php(155): AdminPanel_Form_Final_CreateSubscription->processForm()
#19 /usr/local/psa/admin/application/admin/controllers/CustomerController.php(304): AdminPanel_Controller_Action_Subscription->_processCreateSubscriptionAction('overview/id/34')
#20 /usr/local/psa/admin/externals/Zend/Controller/Action.php(516): Admin_CustomerController->newSubscriptionAction()
#21 /usr/local/psa/admin/externals/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('newSubscription...')
#22 /usr/local/psa/admin/externals/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#23 /usr/local/psa/admin/plib/Application/Web.php(38): Zend_Controller_Front->dispatch(NULL)
#24 /usr/local/psa/admin/htdocs/application.php(15): Plesk\Application_Web->run()
#25 {main}

[2014-09-04 23:06:28] ERR [panel] Step failed 'applyCreateSubscription'. phpinimng failed: Cannot parse php.ini: (<class 'php_ini.PhpIniSyntaxError'>, PhpIniSyntaxError('[<stdin>:13] Invalid configuration line. Are there excessive leading spaces?',))

=== Trace ===
#0 /usr/local/psa/admin/plib/PHosting/Apache.php(645): Service_Agent->execAndGetResponse('phpinimng', Array, ';\n; This is an ...')
#1 /usr/local/psa/admin/plib/PHostingManager/Abstract.php(794): PHosting_Apache->updatePhpConfiguration(';\n; This is an ...', 'fastcgi')
#2 /usr/local/psa/admin/plib/PHostingManager/Apache.php(249): PHostingManager_Abstract->_configurePhpSettings()
#3 [internal function]: PHostingManager_Apache->transactionalUpdate(Object(Transaction_Rollback))
#4 /usr/local/psa/admin/plib/Transaction/Rollback.php(17): call_user_func(Array, Object(Transaction_Rollback))
#5 /usr/local/psa/admin/plib/PHostingManager/Apache.php(216): Transaction_Rollback->commit(Array)
#6 /usr/local/psa/admin/plib/DSWeb.php(217): PHostingManager_Apache->update()
#7 /usr/local/psa/admin/plib/Commands/CreateSubscription.php(436): DSWeb->update()
#8 /usr/local/psa/admin/plib/Commands/CreateSubscription.php(229): Commands_CreateSubscription->_createHosting(Object(BsDomain))
#9 /usr/local/psa/admin/plib/Transactional.php(210): Commands_CreateSubscription->applyCreateSubscription()
#10 /usr/local/psa/admin/plib/Transactional.php(139): Transactional->apply()
#11 /usr/local/psa/admin/plib/Commands/CreateSubscription.php(133): Transactional->execute()
#12 /usr/local/psa/admin/plib/AdminPanel/Form/Subscription.php(198): Commands_CreateSubscription->create()
#13 /usr/local/psa/admin/plib/AdminPanel/Form/Final/CreateSubscription.php(95): AdminPanel_Form_Subscription->processForm()
#14 /usr/local/psa/admin/plib/AdminPanel/Controller/Action/Subscription.php(155): AdminPanel_Form_Final_CreateSubscription->processForm()
#15 /usr/local/psa/admin/application/admin/controllers/CustomerController.php(304): AdminPanel_Controller_Action_Subscription->_processCreateSubscriptionAction('overview/id/34')
#16 /usr/local/psa/admin/externals/Zend/Controller/Action.php(516): Admin_CustomerController->newSubscriptionAction()
#17 /usr/local/psa/admin/externals/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('newSubscription...')
#18 /usr/local/psa/admin/externals/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#19 /usr/local/psa/admin/plib/Application/Web.php(38): Zend_Controller_Front->dispatch(NULL)
#20 /usr/local/psa/admin/htdocs/application.php(15): Plesk\Application_Web->run()
#21 {main}
=== Dump ===
Array
(
    [validationErrors] => Array
        (
        )

)
[2014-09-04 23:06:28] ERR [panel] phpinimng failed: Cannot parse php.ini: (<class 'php_ini.PhpIniSyntaxError'>, PhpIniSyntaxError('[<stdin>:13] Invalid configuration line. Are there excessive leading spaces?',))

On my server, three different versions of php:
Code:
            id:  display name:  full version:  version:    type:                      cgi-bin:  php-cli:                      php.ini:  custom:
  5.4.16-custom         5.4.25         5.4.25       5.4  fastcgi  /usr/local/php54/bin/php-cgi            /usr/local/php54/lib/php.ini     true
   5.5.3-custom          5.5.9          5.5.9       5.5  fastcgi        /usr/local/bin/php-cgi                  /usr/local/lib/php.ini     true
            cgi         5.3.28         5.3.28       5.3      cgi              /usr/bin/php-cgi                            /etc/php.ini    false
        fastcgi         5.3.28         5.3.28       5.3  fastcgi              /usr/bin/php-cgi                            /etc/php.ini    false
         module         5.3.28         5.3.28       5.3   module              /usr/bin/php-cgi                            /etc/php.ini    false
But not in one of the configuration files of PHP, I have not found errors.


Please help !!!
 
[04-Sep-2014 23:06:25 UTC] PleskUtilException: '/usr/local/psa/admin/bin/phpinimng' '--virtual-host' 'DOMAIN.TLD' '--override' '/var
/www/vhosts/system/DOMAIN.TLD/conf/php.ini' '--type' 'cgi' '--global-config' '/usr/local/lib/php.ini' failed with code 1.

Check this php.ini regarding:

Invalid configuration line. Are there excessive leading spaces?
 
Hi IgorG

Thanks for replying

Previously, I have checked the configuration file /usr/local/lib/php.ini, no any errors found
Also, I tried to copied a different configuration file php.ini from another production Plesk server (Plesk 11), but unfortunately the same error



System directory is created, but not all the files are present:
[root@ lib]# ll /var/www/vhosts/system/DOMAIN.TLDl/*
/var/www/vhosts/system/DOMAIN.TLDl/conf:
total 24
-rw-r--r--. 1 root root 24135 Sep 5 12:18 webalizer.conf

/var/www/vhosts/system/DOMAIN.TLDl/logs:
total 0
-rw-r--r--. 1 root root 0 Sep 5 12:18 error_log

/var/www/vhosts/system/DOMAIN.TLDl/statistics:
total 16
drwxr-xr-x. 2 root root 4096 Sep 5 12:18 anon_ftpstat
drwxr-xr-x. 2 root root 4096 Sep 5 12:18 ftpstat
lrwxrwxrwx. 1 root root 7 Sep 5 12:18 logs -> ../logs
drwxr-xr-x. 2 root root 4096 Sep 5 12:18 webstat
drwxr-xr-x. 2 root root 4096 Sep 5 12:18 webstat-ssl
[root@ lib]#

But content directory does not exist:
[root@ lib]# ll /var/www/vhosts/
ls: cannot access /var/www/vhosts/DOMAIN.TLDl: No such file or directory
[root@s lib]#
 
Previously, I have checked the configuration file /usr/local/lib/php.ini, no any errors found
Also, I tried to copied a different configuration file php.ini from another production Plesk server (Plesk 11), but unfortunately the same error

System directory is created, but not all the files are present:
Code:
[root@ lib]# ll /var/www/vhosts/system/DOMAIN.TLDl/*
/var/www/vhosts/system/DOMAIN.TLDl/conf:
total 24
-rw-r--r--. 1 root root 24135 Sep  5 12:18 webalizer.conf

/var/www/vhosts/system/DOMAIN.TLDl/logs:
total 0
-rw-r--r--. 1 root root 0 Sep  5 12:18 error_log

/var/www/vhosts/system/DOMAIN.TLDl/statistics:
total 16
drwxr-xr-x. 2 root root 4096 Sep  5 12:18 anon_ftpstat
drwxr-xr-x. 2 root root 4096 Sep  5 12:18 ftpstat
lrwxrwxrwx. 1 root root    7 Sep  5 12:18 logs -> ../logs
drwxr-xr-x. 2 root root 4096 Sep  5 12:18 webstat
drwxr-xr-x. 2 root root 4096 Sep  5 12:18 webstat-ssl
[root@ lib]#
Code:
But content directory does not exist: 
[root@ lib]# ll /var/www/vhosts/
ls: cannot access /var/www/vhosts/DOMAIN.TLDl: No such file or directory
[root@s lib]#
 
Sorry guys, I found bug

Bug was in my configuration of Service Plans --> Some Service Plan --> PHP settings --> and scroll down to the bottom:

Additional directives:
<available_updates_text><available_updates_list><installed_updates_text><installed_updates_list><requirements_updates_text><requirements_updates_list>


Deleted these unidentified directives and after that I was able to create a domain

RESOLVED

Thanks !
 
Back
Top