• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Issue Magento Installation

othmaqsa

Regular Pleskian
Server operating system version
Ubuntu
Plesk version and microupdate number
Last version
Hello,

I'm trying to test the Magento installation on a temporary domain. During the installation, I encountered the following error:

PHP extension
The 'mcrypt' extension was not found.

What do I need to do to resolve this?

Thanks!
 
Hello,

Thank you for your message.

I'm now encountering another error during the installation.


Code:
The following error has occurred during the installation of application: Installation of magento at https://staging-magento.xxxxxxxxxxx.com/ failed. Non-zero exit status returned by script. Output stream: 'PHP Fatal error:  During inheritance of Countable: Uncaught Exception: Deprecated Functionality: Return type of Zend\Stdlib\PriorityQueue::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-stdlib/src/PriorityQueue.php on line 128 in /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/magento/framework/App/ErrorHandler.php:61
Stack trace:
#0 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-stdlib/src/PriorityQueue.php(28): Magento\Framework\App\ErrorHandler->handler()
#1 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/composer/ClassLoader.php(412): include('...')
#2 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/composer/ClassLoader.php(301): Composer\Autoload\includeFile()
#3 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-eventmanager/src/EventManager.php(278): Composer\Autoload\ClassLoader->loadClass()
#4 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-modulemanager/src/Listener/ModuleLoaderListener.php(63): Zend\EventManager\EventManager->attach()
#5 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-eventmanager/src/EventManager.php(302): Zend\ModuleManager\Listener\ModuleLoaderListener->attach()
#6 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-eventmanager/src/EventManager.php(256): Zend\EventManager\EventManager->attachAggregate()
#7 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-modulemanager/src/Listener/DefaultListenerAggregate.php(46): Zend\EventManager\EventManager->attach()
#8 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-eventmanager/src/EventManager.php(302): Zend\ModuleManager\Listener\DefaultListenerAggregate->attach()
#9 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-eventmanager/src/EventManager.php(256): Zend\EventManager\EventManager->attachAggregate()
#10 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-mvc/src/Service/ModuleManagerFactory.php(132): Zend\EventManager\EventManager->attach()
#11 [internal function]: Zend\Mvc\Service\ModuleManagerFactory->createService()
#12 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(939): call_user_func()
#13 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(1097): Zend\ServiceManager\ServiceManager->createServiceViaCallback()
#14 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(638): Zend\ServiceManager\ServiceManager->createFromFactory()
#15 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(598): Zend\ServiceManager\ServiceManager->doCreate()
#16 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(530): Zend\ServiceManager\ServiceManager->create()
#17 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-mvc/src/Application.php(253): Zend\ServiceManager\ServiceManager->get()
#18 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/magento/framework/Console/Cli.php(57): Zend\Mvc\Application::init()
#19 /opt/psa/var/apspackages/adiptepd8n2unhu3TmmGI6.zip34a16661-e/cache/scripts/Magento.php(24): Magento\Framework\Console\Cli->__construct()
#20 /opt/psa/var/apspackages/adiptepd8n2unhu3TmmGI6.zip34a16661-e/cache/scripts/MagentoInstaller.php(39): Magetno->doCommand()
#21 /opt/psa/var/apspackages/adiptepd8n2unhu3TmmGI6.zip34a16661-e/cache/scripts/configure(43): MagentoInstaller->doSetupInstall()
#22 {main} in /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-stdlib/src/PriorityQueue.php on line 28
'. Error stream: 'PHP Fatal error:  During inheritance of Countable: Uncaught Exception: Deprecated Functionality: Return type of Zend\Stdlib\PriorityQueue::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-stdlib/src/PriorityQueue.php on line 128 in /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/magento/framework/App/ErrorHandler.php:61
Stack trace:
#0 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-stdlib/src/PriorityQueue.php(28): Magento\Framework\App\ErrorHandler->handler()
#1 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/composer/ClassLoader.php(412): include('...')
#2 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/composer/ClassLoader.php(301): Composer\Autoload\includeFile()
#3 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-eventmanager/src/EventManager.php(278): Composer\Autoload\ClassLoader->loadClass()
#4 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-modulemanager/src/Listener/ModuleLoaderListener.php(63): Zend\EventManager\EventManager->attach()
#5 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-eventmanager/src/EventManager.php(302): Zend\ModuleManager\Listener\ModuleLoaderListener->attach()
#6 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-eventmanager/src/EventManager.php(256): Zend\EventManager\EventManager->attachAggregate()
#7 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-modulemanager/src/Listener/DefaultListenerAggregate.php(46): Zend\EventManager\EventManager->attach()
#8 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-eventmanager/src/EventManager.php(302): Zend\ModuleManager\Listener\DefaultListenerAggregate->attach()
#9 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-eventmanager/src/EventManager.php(256): Zend\EventManager\EventManager->attachAggregate()
#10 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-mvc/src/Service/ModuleManagerFactory.php(132): Zend\EventManager\EventManager->attach()
#11 [internal function]: Zend\Mvc\Service\ModuleManagerFactory->createService()
#12 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(939): call_user_func()
#13 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(1097): Zend\ServiceManager\ServiceManager->createServiceViaCallback()
#14 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(638): Zend\ServiceManager\ServiceManager->createFromFactory()
#15 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(598): Zend\ServiceManager\ServiceManager->doCreate()
#16 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(530): Zend\ServiceManager\ServiceManager->create()
#17 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-mvc/src/Application.php(253): Zend\ServiceManager\ServiceManager->get()
#18 /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/magento/framework/Console/Cli.php(57): Zend\Mvc\Application::init()
#19 /opt/psa/var/apspackages/adiptepd8n2unhu3TmmGI6.zip34a16661-e/cache/scripts/Magento.php(24): Magento\Framework\Console\Cli->__construct()
#20 /opt/psa/var/apspackages/adiptepd8n2unhu3TmmGI6.zip34a16661-e/cache/scripts/MagentoInstaller.php(39): Magetno->doCommand()
#21 /opt/psa/var/apspackages/adiptepd8n2unhu3TmmGI6.zip34a16661-e/cache/scripts/configure(43): MagentoInstaller->doSetupInstall()
#22 {main} in /var/www/vhosts/xxxxxxxxxxx.com/staging-magento.xxxxxxxxxxx.com/vendor/zendframework/zend-stdlib/src/PriorityQueue.php on line 28
'.

Do you have any idea what might be causing it?
 
Please provide additional context. What actions were performed when the error was observed?
 
Have you found out the solution?

It is not a good idea to install mcrypt until you identify the source of the error. If you are installing Magento 2.4.x, the error is a reason to investigate the installation package or installer rather than changing the server's PHP configuration.

Which Magento version are you installing?
Which PHP version is assigned to the domain?
How are you installing Magento?

The correct solution depends on your Magento version and PHP version. So, if you are installing Magento 2.4.x, you generally should not install mcrypt to resolve this error. The extension is not a standard requirement for current Magento releases, and it was deprecated in PHP 7.1 and removed from PHP 7.2 onward.

Instead, this error may indicate that you are using an outdated Magento installer, an incompatible installation package, or an old third-party extension that checks for mcrypt.

Check the Magento version against Adobe's official requirements.

If you are using Magento 2.4.x, please check the installation package and ensure that your PHP version is compatible. Do not install mcrypt solely to pass this check.

If you are using Magento 2.3.x or earlier, confirm the specific Magento release you have and its PHP requirements. It's possible that the installer or an old dependency is checking for mcrypt.

If you are on Magento 1.x, make sure to use a compatible legacy PHP environment, as some older Magento installations require mcrypt.

If your project genuinely requires mcrypt, the solution is different. The extension was deprecated in PHP 7.1 and removed from PHP 7.2. Therefore, simply enabling it in a modern PHP configuration will not work.

If your server has multiple PHP versions installed, confirm that the temporary domain is using the PHP version supported by your Magento release.

Besides, make sure that:

The temporary domain points to the correct server.
The domain has a document root configured for the Magento installation.
The required PHP version is assigned to the domain.
A database and database user have been created.
The Magento files are uploaded to the correct directory.
The required PHP extensions and other dependencies are available.
 
Back
Top