Solution to phpmyadmin 403 error

Solution to phpmyadmin 403 error
Nginx + PHP-fpm File not found. Problem solved
Handling of nginx+php php-fpm “File not found” , 403 and other issues

Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.

The reason is that the php.ini file does not have a mechanism file for session saving
Solution:
Find the corresponding version of php, modify the session.save_path path under php.ini and remove the previous semicolon

====================
After deploying phpmyadmin, visit the homepage and report an error:
Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.
Modify php.ini, open session.save_path = “/var/lib/php/session”
Determine the permissions of /var/lib/php/session
#ll -d /var/lib/php/session/
#chown root.nginx /var/lib/php/session
Refresh the page after restarting nginx, and the access is restored.
=====================
View the current status of selinux.
If SELinux status: enabled

Change SELINUX=enforcing to SELINUX=disabled state.
vi /etc/selinux/config

#SELINUX=enforcing
SELINUX=disabled

Restart to take effect. reboot
=====================

Was this article helpful?

Related Articles

Leave A Comment?

You must be logged in to post a comment.