Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • WP Guardian
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • WP Guardian
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • WP Guardian
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • WP Guardian
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Unable to access phpMyAdmin in Plesk: Failed to store CSRF token in session! Probably sessions are not working properly

 
backupcachecentoscsrfdatabase

Symptoms

  • When accessing phpMyAdmin from Plesk, it fails to load with the message:

    Failed to store CSRF token in session! Probably sessions are not working properly

  • File /usr/local/psa/phpMyAdmin/config.plesk.php does not exist on the server:

    # ls -l /usr/local/psa/phpMyAdmin/config.plesk.php
    ls: cannot access /usr/local/psa/phpMyAdmin/config.plesk.php: No such file or directory

  • Information about failed phpMyAdmin update is logged in /var/log/plesk/install/autoinstaller3.log:

    rpm scriptlet: ***** upgrade problem report *****
    rpm scriptlet: ERROR while trying to execute SQL query, the query was: RENAME TABLE phpmyadmin_PiPsuNrJhtKG.pma_bookmark TO phpmyadmin.pma__bookmark

Cause

phpMyAdmin installation was corrupted during the Plesk/system update.

Resolution

Reinstall phpMyAdmin:

  1. Connect to the Plesk server via SSH.

  2. Check if the phpmyadmin database exists on the server:

    # plesk db "show databases like '%phpmy%'"
    +--------------------+
    | Database (%phpmy%) |
    +--------------------+
    | phpmyadmin         |
    +--------------------+

    Note: Databases with the names like phpmyadmin_XXXXXXXXXXXX are likely to be the customers' databases. Do not remove them.

    If it is, create a backup of this database:

    # plesk db dump phpmyadmin > /root/phpmyadmin.sql

  3. Remove this database from MySQL:

    # plesk db "drop database phpmyadmin"

  4. Check if the phpmyadmin user exists in the mysql.user table:

    # plesk db "select User from mysql.user where User like '%phpmy%'"
    +------------------+
    | User       |
    +------------------+
    | phpmyadmin |
    +------------------+

    If it is, create a backup of the MySQL database:

    # plesk db dump mysql > /root/mysql`date +%F_%H.%M`.sql

    And remove this user:

    # plesk db "DROP USER 'phpmyadmin'@'localhost'"

  5. Restart MariaDB/MySQL:

    # systemctl restart mariadb

  6. Remove the phpMyAdmin package:

    • on CentOS/RHEL-based distributions:

      # rpm -e --nodeps psa-phpmyadmin

    • on Debian/Ubuntu-based distributions:

      # dpkg -r --force-depends psa-phpmyadmin

  7. Install phpMyAdmin back:

    # plesk installer update

  8. Access phpMyAdmin. If it fails to load with the same error message, clear browser cache.

 

 

Read the full article
Related Posts

You Are Always Safe When You Have an Up-To-Date Plesk Backup

Read More »

Plesk with Centralized Database and Network File System

Read More »

Recommended OSs for Plesk

Read More »
Knowledge Base

How to reinstall phpMyAdmin in Plesk for Linux

Read More »

A MySQL/MariaDB query executed in phpMyAdmin/PHP script fails when the ONLY_FULL_GROUP_BY SQL mode is configured

Read More »

Unable to copy/back up a database in Plesk: mysqldump: Error 2013: Lost connection to MySQL server during query when dumping table

Read More »

Unable to start MySQL/MariaDB on a Plesk server: Cannot open tablespace table_name which uses space ID

Read More »

Hosting Wiki

  • Cross Site Request Forgery (CSRF)
  • Server Redundancy
  • CacheFly
  • PostgreSQL
  • Bare Metal Server
  • Backup
  • MySQL
  • PhpMyAdmin
  • phpPgAdmin
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • PHP
  • MSSQL
  • SQL
  • Plesk
  • SQL database
  • NoSQL Database
  • Web Server
  • DNS Server
  • SSH
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family