I was getting the following error when trying to browse the icingaweb2 website in the browser
Fatal error: Uncaught ErrorException: Uncaught ErrorException: session_name(): Cannot change session name when session is active in /usr/share/php/Icinga/Web/Session/PhpSession.php:97 Stack trace: #0 [internal function]: Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}(2, 'session_name():...', '/usr/share/php/...', 97, Array) #1 /usr/share/php/Icinga/Web/Session/PhpSession.php(97): session_name('Icingaweb2') #2 /usr/share/php/Icinga/Web/Session/PhpSession.php(152): Icinga\Web\Session\PhpSession->open() #3 /usr/share/php/Icinga/Web/Controller/ActionController.php(540): Icinga\Web\Session\PhpSession->write() #4 /usr/share/php/Icinga/Web/Controller/ActionController.php(490): Icinga\Web\Controller\ActionController->shutdownSession() #5 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(512): Icinga\Web\Controller\ActionController->postDispatch() #6 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch('errorAction') #7 /usr/share/icingaweb2/library/vendor/Z in /usr/share/icingaweb2/library/vendor/Zend/Controller/Plugin/Broker.php on line 25
I went through to find the solution for the above problem. After trying the many solutions that spread in the internet the following steps will be solved the problem
Two soultions :
Solution 1
- Go to the following directory
cd /var/lib/php/sessions/
- Remove all session files in the directory using the following command
rm -rf sessionfilename
- Restart server that you used
Ex : NGINX or APACHE
service nginx restart
Solution 2
- Execute the following command in the terminal
service phpsessionclean start
Note : This command clears the session files in /var/lib/php/sesssions/
- Restart server that you used
Ex : NGINX or APACHE
service nginx restart
Now enter the website address that you were facing the above issue. It should works fine !!.
I hope the answer will help you to resolve your problem
Please leave your comments that may encourage me to post more
Fatal error: Uncaught ErrorException: Uncaught ErrorException: session_name(): Cannot change session name when session is active in /usr/share/php/Icinga/Web/Session/PhpSession.php:97 Stack trace: #0 [internal function]: Icinga\Application\ApplicationBootstrap->Icinga\Application\{closure}(2, 'session_name():...', '/usr/share/php/...', 97, Array) #1 /usr/share/php/Icinga/Web/Session/PhpSession.php(97): session_name('Icingaweb2') #2 /usr/share/php/Icinga/Web/Session/PhpSession.php(152): Icinga\Web\Session\PhpSession->open() #3 /usr/share/php/Icinga/Web/Controller/ActionController.php(540): Icinga\Web\Session\PhpSession->write() #4 /usr/share/php/Icinga/Web/Controller/ActionController.php(490): Icinga\Web\Controller\ActionController->shutdownSession() #5 /usr/share/icingaweb2/library/vendor/Zend/Controller/Action.php(512): Icinga\Web\Controller\ActionController->postDispatch() #6 /usr/share/php/Icinga/Web/Controller/Dispatcher.php(76): Zend_Controller_Action->dispatch('errorAction') #7 /usr/share/icingaweb2/library/vendor/Z in /usr/share/icingaweb2/library/vendor/Zend/Controller/Plugin/Broker.php on line 25
I went through to find the solution for the above problem. After trying the many solutions that spread in the internet the following steps will be solved the problem
Two soultions :
Solution 1
- Go to the following directory
cd /var/lib/php/sessions/
- Remove all session files in the directory using the following command
rm -rf sessionfilename
- Restart server that you used
Ex : NGINX or APACHE
service nginx restart
Solution 2
- Execute the following command in the terminal
service phpsessionclean start
Note : This command clears the session files in /var/lib/php/sesssions/
- Restart server that you used
Ex : NGINX or APACHE
service nginx restart
Now enter the website address that you were facing the above issue. It should works fine !!.
I hope the answer will help you to resolve your problem
Please leave your comments that may encourage me to post more
Comments
Post a Comment