Close Menu
    Facebook X (Twitter) Instagram
    • Articles
    • How it Works
    • Our Story
    • Contact Us
    Facebook X (Twitter) Instagram Pinterest Vimeo
    IT Beginner
    • Home
    • Blog
      • Happiness
      • Productivity
      • Leadership
    • About us
    • Contact us
    IT Beginner
    Uncategorized

    How to fix phpMyAdmin session error

    17/07/2017Updated:19/07/2017No Comments2 Mins Read

    here is what i get when i run phpMyAdmin on my newly setup server

    phpMyAdmin – Error
    Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.

    To test and find out where is session.save path

    http://wiki.phpmyadmin.net/pma/session.save_path

    run this script on your web server

    <?php
    // save as "session_test.php" inside your webspace
    ini_set('display_errors', 'On');
    error_reporting(6143);

    session_start();

    $sessionSavePath = ini_get(‘session.save_path’);

    echo ‘<br><div style=”background:#def;padding:6px”>’
    , ‘If a session could be started successfully <b>you should’
    , ‘ not see any Warning(s)</b>, otherwise check the path/folder’
    , ‘ mentioned in the warning(s) for proper access rights.<hr>’;

    if (empty($sessionSavePath)) {
    echo ‘A “<b>session.save_path</b>” is currently’,
    ‘ <b>not</b> set.<br>Normally “<b>’;
    if (isset($_ENV[‘TMP’])) {
    echo  $_ENV[‘TMP’], ‘</b>” ($_ENV[“TMP”]) ‘;
    } else {
    echo ‘/tmp</b>” or “<b>C:tmp</b>” (or whatever’,
    ‘ the OS default “TMP” folder is set to)’;
    }
    echo ‘ is used in this case.’;
    } else {
    echo ‘The current “session.save_path” is “<b>’,
    $sessionSavePath, ‘</b>”.’;
    }

    echo ‘<br>Session file name: “<b>sess_’, session_id()
    , ‘</b>”.</div><br>’;
    ?>

    Here is the output i have

    The current “session.save_path” is “/var/lib/php/session”.

    If the folder doesn’t exist, create one.

    You may have to change ownership of the directly

    chown user:group /var/lib/php/session

    Or just need to change the permissions to readable and writable for the directory

    chmod 0777 /var/lib/php/session

    phpmyadmin session
    Previous ArticleKill All Processes PIDS For a Single User
    Next Article How to install Nvidia CUDA 5.5 on Ubuntu

    Related Posts

    Uncategorized

    fds

    30/01/2019
    Uncategorized

    What Makes Linux the Most Adopted Operating System

    05/08/2017
    Uncategorized

    Tracking centos server with bash script

    29/07/2017
    Subscribe
    Notify of
    guest

    guest

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    0 Comments
    Oldest
    Newest Most Voted
    Inline Feedbacks
    View all comments
    • Productivity
    • Leadership

    No posts

    No posts

    Subscribe to Newsletter
    Our Socials
    • Instagram
    • Facebook
    • Twitter
    • YouTube
    • LinkedIn

    Archives

    • April 2025
    • May 2024
    • March 2023
    • July 2022
    • March 2022
    • July 2020
    • January 2019
    • August 2018
    • July 2018
    • August 2017
    • July 2017
    • September 2016

    Categories

    • Business
    • CCNA 1 Instructor Materials
    • CentOS
    • Database
    • Debian
    • Fedora
    • Firefox
    • Happiness
    • Hardware
    • ICND1 Labs
    • ICND2 Labs
    • Leadership
    • Linux Essentials
    • Linux Mint
    • Marketing
    • My SQL
    • Netflix
    • Networking
    • Productivity
    • Resources
    • Security
    • SEO
    • Server
    • Social Media
    • Software
    • Tips – Tricks
    • Ubuntu
    • Uncategorized
    • User Experience
    • WordPress
    • Xubuntu

    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna accumsan in scelerisque.

    Facebook X (Twitter) Instagram Pinterest

    Type above and press Enter to search. Press Esc to cancel.

    wpDiscuz