Plesk for Windows
Plesk for Linux
kb: technical
Applicable to:
- Plesk for Linux
- Plesk for Windows
Symptoms
Plesk update fails or Plesk panel cannot be accessed with the following message:
PLESK_ERROR: PHP Fatal error: Class Laminas\ServiceManager\ServiceLocatorInterface cannot implement previously implemented interface Psr\Container\ContainerInterface in /opt/psa/admin/plib/modules/monitoring/vendor/laminas/laminas-servicemanager/src/ServiceLocatorInterface.php on line 18
Cause
The outdated version of the Monitoring extension is installed on the server.
Comments
14 comments
i can't login to the plesk dashbord , when i try to login an error message : ERROR: Class Laminas\ServiceManager\ServiceLocatorInterface cannot implement previously implemented interface Psr\Container\ContainerInterface (ServiceLocatorInterface.php:18)
so how can i do this with ssh ?
Connect to the server via SSH.
Update the Monitoring extension to the latest version with the command below:
plesk bin extension --upgrade monitoring
@ismael thank you , is there a possibility to connect to the server without loging on my plesk ?
i didnt install ssh on plesk
The other possibility is to connect directly through root to the server. (also by ssh)
when i tried with ssh :
connection closed by port 22
Hello dev it,
Please contact your hosting provider to obtain SSH access. As soon as this is done, execute the command from the article to update the Monitoring extension.
# plesk bin extension --upgrade monitoring
this was used recently by me in windows 2016 server + plesk (RDP login) and it worked properly under CMD, thanx for your support :)
Hello dev it,
All the Plesk related-commands should be executed under user root or with root privileges. Try using the command below:
# sudo plesk bin extension --upgrade monitoring
thank you , the problem is resolved
i connect to ssh as debian user, then i change to a root
then i executed the command and it worked thanks
I have problems, I have followed the steps , the result is
"the extension was successfully upgraded"
But still the access to the plesk server is still failing:
"ERROR: Class Laminas\ServiceManager\ServiceLocatorInterface cannot implement previously implemented interface Psr\Container\ContainerInterface (ServiceLocatorInterface.php:18)"
Solved as well!
plesk bin extension --upgrade monitoring
Logged by ssh , solved!
Thank you
it works! 🔥
Please sign in to leave a comment.