Plesk shows the error:(/opt/psa/admin/plib/modules/plesk-mobile/library/EventListener.php): failed to open stream: Permission denied

Created:

2016-11-16 12:42:05 UTC

Modified:

2017-08-16 17:20:35 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Plesk shows the error:(/opt/psa/admin/plib/modules/plesk-mobile/library/EventListener.php): failed to open stream: Permission denied

Applicable to:

  • Plesk 11.x for Linux

Symptoms

Plesk Panel shows the below error instead of login page:

PHP Warning: require_once(/opt/psa/admin/plib/modules/plesk-mobile/library/EventListener.php) [function.require-once]: failed to open stream: Permission denied
Line: 140
File: /opt/psa/admin/plib/interfaces/InterfacesManager.php
Stack Trace:
#0 Smb_Exception_Syntax::handleError(2, require_once(/opt/psa/admin/plib/modules/plesk-mobile/library/EventListener.php) [function.require-once]: failed to open stream: Permission denied, /opt/psa/admin/plib/interfaces/InterfacesManager.php, 140, Array ([fileName] => /opt/psa/admin/plib/modules/plesk-mobile/library/EventListener.php)) called at [/opt/psa/admin/plib/interfaces/InterfacesManager.php:140]
#1 InterfacesManager::_loadImplFile() called at [/opt/psa/admin/plib/interfaces/InterfacesManager.php:140]
#2 InterfacesManager::_loadImplFile(/opt/psa/admin/plib/modules/plesk-mobile/library/EventListener.php) called at [/opt/psa/admin/plib/interfaces/InterfacesManager.php:86]
#3 InterfacesManager::getImpls(EventListener) called at [/opt/psa/admin/plib/interfaces/InterfacesManager.php:126]
#4 InterfacesManager::callImpls(EventListener, handleEvent, Array ([0] => cp_user,[1] => 0,[2] => cp_user_login_failed,[3] => Array ([Login Name] => admin),[4] => Array ([Login Name] => ))) called at [/opt/psa/admin/plib/class.ActionLog.php:826]
#5 ActionLog->callEventListeners() called at [/opt/psa/admin/plib/class.ActionLog.php:689]
#6 ActionLog->submit() called at [/opt/psa/admin/plib/cmd_loginup.php:287]
#7 createSessionAdmin(admin, cQSO4,I-9b, defaultAdminPasswordChecker, ) called at [/opt/psa/admin/plib/cmd_loginup.php:74]
#8 createSession(admin, cQSO4,I-9b) called at [/opt/psa/admin/htdocs/login_up.php3:40]

Cause

Wrong permissions for /opt/psa/admin/plib/modules/plesk-mobile .

Resolution

Apply permissions as below:

chmod 644 /opt/psa/admin/plib/modules/plesk-mobile/*
Have more questions? Submit a request
Please sign in to leave a comment.