cancel
Showing results for 
Search instead for 
Did you mean: 

could not open mcrypt module

could not open mcrypt module

Hi, I am trying to install magento2.1.1 on rhel 7.2 with apache2.4, php 7.0.11 and mysql 5.7.

i am facing following issues.

 

[ERROR] Exception: Warning: mcrypt_module_open(): Could not open encryption module in /var/www/html/magento2/vendor/magento/framework/Encryption/Crypt.php on line 54 in /var/www/html/magento2/vendor/magento/framework/App/ErrorHandler.php:61
Stack trace:
#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'mcrypt_module_o...', '/var/www/html/m...', 54, Array)
#1 /var/www/html/magento2/vendor/magento/framework/Encryption/Crypt.php(54): mcrypt_module_open('blowfish', '', 'ecb', '')
#2 /var/www/html/magento2/vendor/magento/framework/Encryption/Encryptor.php(401): Magento\Framework\Encryption\Crypt->__construct('3dde7860897ead9...', 'blowfish', 'ecb', false)
#3 /var/www/html/magento2/vendor/magento/framework/Encryption/Encryptor.php(313): Magento\Framework\Encryption\Encryptor->getCrypt('3dde7860897ead9...', 0, false)
#4 /var/www/html/magento2/vendor/magento/module-config/Model/Config/Backend/Encrypted.php(107): Magento\Framework\Encryption\Encryptor->decrypt('PayPal')
#5 /var/www/html/magento2/var/generation/Magento/Config/Model/Config/Backend/Encrypted/Interceptor.php(37): Magento\Config\Model\Config\Backend\Encrypted->processValue('PayPal')
#6 /var/www/html/magento2/vendor/magento/framework/App/Config/MetadataProcessor.php(86): Magento\Config\Model\Config\Backend\Encrypted\Interceptor->processValue('PayPal')
#7 /var/www/html/magento2/vendor/magento/framework/App/Config/Data.php(33): Magento\Framework\App\Config\MetadataProcessor->process(Array)
#8 /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(99): Magento\Framework\App\Config\Data->__construct(Object(Magento\Framework\App\Config\MetadataProcessor), Array)
#9 /var/www/html/magento2/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(89): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array)
#10 /var/www/html/magento2/vendor/magento/framework/ObjectManager/ObjectManager.php(57): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...', Array)
#11 /var/www/html/magento2/vendor/magento/framework/App/Config/DataFactory.php(46): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Framewo...', Array)
#12 /var/www/html/magento2/vendor/magento/framework/App/Config/ScopePool.php(90): Magento\Framework\App\Config\DataFactory->create(Array)
#13 /var/www/html/magento2/var/generation/Magento/Framework/App/Config/ScopePool/Proxy.php(95): Magento\Framework\App\Config\ScopePool->getScope('default', NULL)
#14 /var/www/html/magento2/vendor/magento/module-store/Model/Config/Reader/Website.php(67): Magento\Framework\App\Config\ScopePool\Proxy->getScope('default')
#15 /var/www/html/magento2/vendor/magento/framework/App/Config/ScopePool.php(86): Magento\Store\Model\Config\Reader\Website->read('base')
#16 /var/www/html/magento2/var/generation/Magento/Framework/App/Config/ScopePool/Proxy.php(95): Magento\Framework\App\Config\ScopePool->getScope('website', 'base')
#17 /var/www/html/magento2/vendor/magento/module-store/Model/Config/Reader/Store.php(71): Magento\Framework\App\Config\ScopePool\Proxy->getScope('website', 'base')
#18 /var/www/html/magento2/vendor/magento/framework/App/Config/ScopePool.php(86): Magento\Store\Model\Config\Reader\Store->read('default')
#19 /var/www/html/magento2/vendor/magento/framework/App/Config.php(45): Magento\Framework\App\Config\ScopePool->getScope('store', 'default')
#20 /var/www/html/magento2/vendor/magento/framework/App/Config.php(58): Magento\Framework\App\Config->getValue('catalog/fronten...', 'store', NULL)
#21 /var/www/html/magento2/vendor/magento/module-catalog/Model/Indexer/AbstractFlatState.php(57): Magento\Framework\App\Config->isSetFlag('catalog/fronten...', 'store')
#22 /var/www/html/magento2/vendor/magento/module-catalog/Model/Indexer/Product/Flat/Plugin/IndexerConfigData.php(43): Magento\Catalog\Model\Indexer\AbstractFlatState->isFlatEnabled()
#23 [internal function]: Magento\Catalog\Model\Indexer\Product\Flat\Plugin\IndexerConfigData->aroundGet(Object(Magento\Indexer\Model\Config\Data\Interceptor), Object(Closure), NULL, NULL)
#24 /var/www/html/magento2/vendor/magento/framework/Interception/Chain/Chain.php(67): call_user_func_array(Array, Array)
#25 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\Interception\Chain\Chain->invokeNext('Magento\\Indexer...', 'get', Object(Magento\Indexer\Model\Config\Data\Interceptor), Array, 'indexerCategory...')
#26 /var/www/html/magento2/vendor/magento/module-catalog/Model/Indexer/Category/Flat/Plugin/IndexerConfigData.php(40): Magento\Indexer\Model\Config\Data\Interceptor->Magento\Framework\Interception\{closure}(NULL, NULL)
#27 [internal function]: Magento\Catalog\Model\Indexer\Category\Flat\Plugin\IndexerConfigData->aroundGet(Object(Magento\Indexer\Model\Config\Data\Interceptor), Object(Closure), NULL, NULL)
#28 /var/www/html/magento2/vendor/magento/framework/Interception/Interceptor.php(142): call_user_func_array(Array, Array)
#29 /var/www/html/magento2/var/generation/Magento/Indexer/Model/Config/Data/Interceptor.php(39): Magento\Indexer\Model\Config\Data\Interceptor->___callPlugins('get', Array, Array)
#30 /var/www/html/magento2/var/generation/Magento/Indexer/Model/Config/Data/Proxy.php(103): Magento\Indexer\Model\Config\Data\Interceptor->get(NULL, NULL)
#31 /var/www/html/magento2/vendor/magento/module-indexer/Model/Config.php(32): Magento\Indexer\Model\Config\Data\Proxy->get()
#32 /var/www/html/magento2/vendor/magento/module-indexer/Setup/Recurring.php(90): Magento\Indexer\Model\Config->getIndexers()
#33 /var/www/html/magento2/setup/src/Magento/Setup/Model/Installer.php(844): Magento\Indexer\Setup\Recurring->install(Object(Magento\Setup\Module\Setup), Object(Magento\Setup\Model\ModuleContext))
#34 /var/www/html/magento2/setup/src/Magento/Setup/Model/Installer.php(756): Magento\Setup\Model\Installer->handleDBSchemaData(Object(Magento\Setup\Module\Setup), 'schema')
#35 [internal function]: Magento\Setup\Model\Installer->installSchema()
#36 /var/www/html/magento2/setup/src/Magento/Setup/Model/Installer.php(333): call_user_func_array(Array, Array)
#37 /var/www/html/magento2/setup/src/Magento/Setup/Controller/Install.php(103): Magento\Setup\Model\Installer->install(Array)
#38 /var/www/html/magento2/vendor/zendframework/zend-mvc/src/Controller/AbstractActionController.php(82): Magento\Setup\Controller\Install->startAction()
#39 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#40 /var/www/html/magento2/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#41 /var/www/html/magento2/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#42 /var/www/html/magento2/vendor/zendframework/zend-mvc/src/Controller/AbstractController.php(118): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#43 /var/www/html/magento2/vendor/zendframework/zend-mvc/src/DispatchListener.php(93): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#44 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#45 /var/www/html/magento2/vendor/zendframework/zend-eventmanager/src/EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#46 /var/www/html/magento2/vendor/zendframework/zend-eventmanager/src/EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#47 /var/www/html/magento2/vendor/zendframework/zend-mvc/src/Application.php(314): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure))
#48 /var/www/html/magento2/setup/index.php(31): Zend\Mvc\Application->run()
#49 {main}

How can i solve these errors....