• 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.

Issue using plesk_password_changer.php

Joe Deegan

New Pleskian
Hi, i'm having issues running the plesk_password_changer script detailed on your KB 113391.

After running the following i receive many strict standards errors...

Code:
[root@mail ~]# php -d open_basedir= -d safe_mode=0 plesk_password_changer.php `cat /etc/psa/.psa.shadow` --domains
PHP Strict Standards:  Non-static method PleskPasswordChanger::isCbmIntegration() should not be called statically in /root/plesk_password_changer.php on line 27
PHP Strict Standards:  Non-static method PleskDb::getInstance() should not be called statically in /root/plesk_password_changer.php on line 219
PHP Strict Standards:  Non-static method Util::getPleskDbType() should not be called statically in /root/plesk_password_changer.php on line 1171
PHP Strict Standards:  Non-static method Util::isWindows() should not be called statically in /root/plesk_password_changer.php on line 1699
PHP Strict Standards:  Non-static method Util::getPleskDbName() should not be called statically in /root/plesk_password_changer.php on line 1172
PHP Strict Standards:  Non-static method Util::isWindows() should not be called statically in /root/plesk_password_changer.php on line 1681
PHP Strict Standards:  Non-static method Util::getPleskDbPort() should not be called statically in /root/plesk_password_changer.php on line 1173
PHP Strict Standards:  Non-static method Util::isWindows() should not be called statically in /root/plesk_password_changer.php on line 1719
PHP Strict Standards:  Non-static method Util::getPleskDbLogin() should not be called statically in /root/plesk_password_changer.php on line 1174
PHP Strict Standards:  Non-static method Util::isWindows() should not be called statically in /root/plesk_password_changer.php on line 1690
PHP Strict Standards:  Non-static method Util::getPleskDbHost() should not be called statically in /root/plesk_password_changer.php on line 1176
PHP Strict Standards:  Non-static method Util::isWindows() should not be called statically in /root/plesk_password_changer.php on line 1708
PHP Strict Standards:  Non-static method Util::getPleskRootPath() should not be called statically, assuming $this from incompatible context in /root/plesk_password_changer.php on line 871
PHP Strict Standards:  Non-static method Util::isLinux() should not be called statically, assuming $this from incompatible context in /root/plesk_password_changer.php on line 1664
PHP Strict Standards:  Non-static method Util::isWindows() should not be called statically, assuming $this from incompatible context in /root/plesk_password_changer.php on line 1490
PHP Strict Standards:  Non-static method PleskOS::isDebLike() should not be called statically, assuming $this from incompatible context in /root/plesk_password_changer.php on line 1665
PHP Strict Standards:  Non-static method PleskOS::_detectOS() should not be called statically, assuming $this from incompatible context in /root/plesk_password_changer.php on line 2019
PHP Strict Standards:  Non-static method PleskOS::catEtcIssue() should not be called statically, assuming $this from incompatible context in /root/plesk_password_changer.php on line 2088
PHP Strict Standards:  Non-static method Util::exec() should not be called statically, assuming $this from incompatible context in /root/plesk_password_changer.php on line 2099
PHP Strict Standards:  Non-static method Util::isWindows() should not be called statically, assuming $this from incompatible context in /root/plesk_password_changer.php on line 1866
PHP Strict Standards:  Non-static method PleskOS::_detectOS() should not be called statically, assuming $this from incompatible context in /root/plesk_password_changer.php on line 2020
PHP Strict Standards:  Non-static method PleskOS::catEtcIssue() should not be called statically, assuming $this from incompatible context in /root/plesk_password_changer.php on line 2088
PHP Strict Standards:  Non-static method Util::exec() should not be called statically, assuming $this from incompatible context in /root/plesk_password_changer.php on line 2099
PHP Strict Standards:  Non-static method Util::isWindows() should not be called statically, assuming $this from incompatible context in /root/plesk_password_changer.php on line 1866
PHP Strict Standards:  Non-static method Util::isWindows() should not be called statically, assuming $this from incompatible context in /root/plesk_password_changer.php on line 1671
PHP Strict Standards:  Non-static method Log::step() should not be called statically, assuming $this from incompatible context in /root/plesk_password_changer.php on line 881

[2016-01-04 11:18:15][INFO] ==> Validate given db password

And goes on like this for each domain...

php -d open_basedir= -d safe_mode=0 plesk_password_changer.php `cat /etc/psa/.psa.shadow` --domains

PHP 5.4.44 (cli) (built: Aug 6 2015 07:41:49)
disable_functions is disabled...

Can someone advise? Thanks.
 
Please can someone help? Hiding Strcit notices changes the output, now i get the following for each domain:

Code:
[2016-01-04 01:54:10][WARNING] Unable to execute: /usr/local/psa/bin/domain -u domainname.tld -passwd m7CiK0#4wtgF8^%OJ@3 Return code is: 1
PHP Notice: Undefined index: login; File: /usr/local/psa/admin/plib/api-common/AbstractCu.php, Line: 491

Exception: PHP Notice: Undefined index: login; File: /usr/local/psa/admin/plib/api-common/AbstractCu.php, Line: 491

file: /usr/local/psa/admin/plib/Smb/Exception/Syntax.php
line: 56
code: 0
trace: #0 /usr/local/psa/admin/plib/api-common/AbstractCu.php(491): Smb_Exception_Syntax::handleError(8, 'Undefined index...', '/usr/local/psa/...', 491, Array)
#1 [internal function]: AbstractCu->_validateSysUserPassword('s9c^Jp53*WuVR4@...')
#2 /usr/local/psa/admin/plib/api-common/AbstractCu.php(404): call_user_func(Array, 's9c^Jp53*WuVR4@...')
#3 /usr/local/psa/admin/plib/api-common/AbstractCu.php(2035): AbstractCu->_validateOptionValue(Array, 's9c^Jp53*WuVR4@...', true)
#4 /usr/local/psa/admin/plib/api-common/cu.php(385): AbstractCu->_validateParam(Array, 's9c^Jp53*WuVR4@...')
#5 /usr/local/psa/admin/plib/api-common/AbstractCuDomain.php(85): cu->readOptions()
#6 /usr/local/psa/admin/plib/api-common/cuDomain.php(428): AbstractCuDomain->readOptions()
#7 /usr/local/psa/admin/plib/api-common/AbstractCu.php(1137): cuDomain->readOptions()
#8 /usr/local/psa/admin/plib/api-common/AbstractCuDomain.php(52): AbstractCu->getOptions()
#9 /usr/local/psa/admin/plib/api-common/AbstractCuExecutor.php(55): AbstractCuDomain->__construct(NULL)
#10 /usr/local/psa/admin/plib/api-common/CuExecutor.php(32): AbstractCuExecutor->_execUtil('cuDomain', NULL)
#11 /usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php(23): CuExecutor->run()
#12 /usr/local/psa/admin/plib/api-cli/CliUtilityRunner.php(61): CliUtilityRunner->run()
#13 /usr/local/psa/admin/plib/api-cli/domain.php(4): require_once('/usr/local/psa/...')
#14 {main}
 
Back
Top