• 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

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