• 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 Magento 2 Error installation

AlessioTholia

New Pleskian
I have Plesk Onyx Version 17.8.11. When i try to install Magento 2.1 as application the installation arrive to 96% and i receive the following errors:
Error: The following error has occurred during the installation of application:

Installation of magento at Example Domain failed. Non-zero exit status returned by script. Output stream: 'PHP Fatal error: Uncaught Exception: Warning: SessionHandler::read(): open(/var/lib/php/session/sess_banno6ranl4lh32b3106li8o62, O_RDWR) failed: Permission denied (13) in /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/Session/SaveHandler/Native.php on line 22 in /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/App/ErrorHandler.php:61

Stack trace:

#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'SessionHandler:...', '/var/www/vhosts...', 22, Array)

#1 /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/Session/SaveHandler/Native.php(22): SessionHandler->read('banno6ranl4lh32...')

#2 /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/Session/SaveHandler.php(93): Magento\Framework\Session\SaveHandler\Native->read('banno6ranl4lh32...')

#3 [internal function]: Magento\Framework\Session\SaveHandler->read('banno6ranl4lh32...')

#4 /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/Session/SessionManager.php(189): sess in /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/App/ErrorHandler.php on line 61

PHP Fatal error: Uncaught Exception: Warning: SessionHandler::write(): open(/var/lib/php/session/sess_banno6ranl4lh32b3106li8o62, O_RDWR) failed: Permission denied (13) in /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/Session/SaveHandler.php on line 105 in /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/App/ErrorHandler.php:61

Stack trace:

#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'SessionHandler:...', '/var/www/vhosts...', 105, Array)

#1 /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/Session/SaveHandler.php(105): SessionHandler->write('banno6ranl4lh32...', '')

#2 [internal function]: Magento\Framework\Session\SaveHandler->write('banno6ranl4lh32...', '')

#3 {main}

thrown in /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/App/ErrorHandler.php on line 61

'. Error stream: 'PHP Fatal error: Uncaught Exception: Warning: SessionHandler::read(): open(/var/lib/php/session/sess_banno6ranl4lh32b3106li8o62, O_RDWR) failed: Permission denied (13) in /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/Session/SaveHandler/Native.php on line 22 in /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/App/ErrorHandler.php:61

Stack trace:

#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'SessionHandler:...', '/var/www/vhosts...', 22, Array)

#1 /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/Session/SaveHandler/Native.php(22): SessionHandler->read('banno6ranl4lh32...')

#2 /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/Session/SaveHandler.php(93): Magento\Framework\Session\SaveHandler\Native->read('banno6ranl4lh32...')

#3 [internal function]: Magento\Framework\Session\SaveHandler->read('banno6ranl4lh32...')

#4 /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/Session/SessionManager.php(189): sess in /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/App/ErrorHandler.php on line 61

PHP Fatal error: Uncaught Exception: Warning: SessionHandler::write(): open(/var/lib/php/session/sess_banno6ranl4lh32b3106li8o62, O_RDWR) failed: Permission denied (13) in /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/Session/SaveHandler.php on line 105 in /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/App/ErrorHandler.php:61

Stack trace:

#0 [internal function]: Magento\Framework\App\ErrorHandler->handler(2, 'SessionHandler:...', '/var/www/vhosts...', 105, Array)

#1 /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/Session/SaveHandler.php(105): SessionHandler->write('banno6ranl4lh32...', '')

#2 [internal function]: Magento\Framework\Session\SaveHandler->write('banno6ranl4lh32...', '')

#3 {main}

thrown in /var/www/vhosts/example.com/httpdocs/vendor/magento/framework/App/ErrorHandler.php on line 61
 
Hi, AlessioTholia!

I reproduced this issue in 17.8.11 and reported bug.
I hope it will be fixed soon in one of next micro-updates or in aps package.
 
This issue investigated. It isn't critical or blocker bug.
This error reproduced only in cases:
- When type incorrect email, first name, last name, etc.
- Install with unsupported (by magento) php versions 7.1 or 7.2

In other cases magento successfully installed.

Please check your php version and credentials during magento install.

Magento Open Source 2.1.0 Release Notes | Magento 2 Developer Documentation
System requirements
Our technology stack is built on PHP and MySQL. Magento 2.1.0 supports:
  • PHP 5.6 We do not support PHP 5.5.x
  • PHP 7.0.2, 7.0.6 up to 7.1
  • MySQL 5.6
  • Apache 2.2 or 2.4
  • nginx 1.8 (or latest mainline version)
 
I have tried again changing email, first name, using pHP 7.0.29 and 5.06.35. I receive always the same error. I have also tried with another domain and same error.
There is something wrong in my server then i suppose. But it's happened only after the upgrade to the last version of Plesk because previusly i have done installation of magento 2 successfully. There is the possibility to have payment support?
 
Hello, After going through this thread I have also gone through and tried resolving it and it got perfect after updating ther version but then the other issue raised up that is the version dosen't support this error. So no I need to go to the Magento website development company which I found the most appropriate to have it worked with.
 
Hi,

I always install Magento 2 without any issues.

*. Download Magento 2x latest zip version from Magento Download.
*. Upload to your subscription.
*. Extract the zip
*. Login to your SSH,

# cd /var/www/vhosts/yourdomain.tld/httpdocs/
# find * -type d -print0 | xargs -0 chmod 0755
# find . -type f -print0 | xargs -0 chmod 0644

(this Zip usually has incorrect file and folder permissions, correct them using above commands.)

*. Create the database.
*. visit the URL and follow the instructions.
 
Back
Top