Home Backend Development PHP Tutorial phpmyadmin error: Cannot start session without errors_PHP Tutorial

phpmyadmin error: Cannot start session without errors_PHP Tutorial

Jul 13, 2016 am 10:43 AM
errors phpmyadmin session start use exist Report an error question

I found a solution to the problem of Cannot start session without errors when using phpmyadmin. I hope this article can help you.

Solution 1, nginx environment

In a new environment, installed a phpmyadmin
I found a prompt when opening it: Cannot start session without errors….
Then when I logged in, I also found errors in styles, etc.
Solution:
It’s a permission access issue with the session storage directory in the PHP environment
First open php.ini
Find: session.save_path
Check whether the owner of the directory under the path is normal:
root apache 4096 Mar 15 23:07 session
If this is the case, it is obviously abnormal
It should be changed to:
apache apache 4096 Mar 15 23:07 session
or
nginx nginx 4096 Mar 15 23:07 session
etc.
Also please note! , if it is nginx + php-fpm, in addition to checking the settings of /etc/php.ini, you must also check:
/etc/php-fpm.d/www.conf

php_value[session.save_path] = /var/lib/php/session

The storage path of this session must be consistent with php.ini! ! !


Solution 2

Environment: linux, apache2, php5
Question:
The following error appears when opening phpmyadmin:

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

Solution:

vim /etc/php5/apache2/php.ini

Look for session.save_path and remove the comment symbol in the sentence session.save_path=/var/lib/php5.
If it still doesn’t work properly, change the value of session.auto_start to 1 (start), the default is 0 (disable)


Solution 3

Windows Server 2003 + IIS6 (ISAPI mode php +zend)

Create a folder Temp in the php directory, and set the Temp attribute to all permissions of the IIS_Users group except full control. (IIS_Users is the IIS anonymous user group)

Find the session.save_path line in php.ini and set it to session.save_path = “D:/host/php/Temp” (remove the semicolon).

Solution:

Change the value of session.auto_start in php.ini to 1 (start), the default is 0 (disable),
Find the session.save_path line in php.ini and set it to session.save_path = “D:/host/php/Temp” (remove the semicolon)

Found in phpmyadmin, config.sample.inc.php, changed to config.inc.php,
Find $cfg['blowfish_secret'] and add a combination of numbers and letters to the subsequent assignment.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/633176.htmlTechArticleI found a solution to the problem of Cannot start session without errors when using phpmyadmin. I hope this article can help you. . Solution 1, nginx environment In a new environment,...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to set primary key in phpmyadmin How to set primary key in phpmyadmin Apr 07, 2024 pm 02:54 PM

The primary key of a table is one or more columns that uniquely identify each record in the table. Here are the steps to set a primary key: Log in to phpMyAdmin. Select database and table. Check the column you want to use as the primary key. Click "Save Changes". Primary keys provide data integrity, lookup speed, and relationship modeling benefits.

Where is the phpmyadmin log? Where is the phpmyadmin log? Apr 07, 2024 pm 12:57 PM

Default location for PHPMyAdmin log files: Linux/Unix/macOS:/var/log/phpmyadminWindows: C:\xampp\phpMyAdmin\logs\ Log file purpose: Troubleshooting Audit Security

How to add foreign keys in phpmyadmin How to add foreign keys in phpmyadmin Apr 07, 2024 pm 02:36 PM

Adding a foreign key in phpMyAdmin can be achieved by following these steps: Select the parent table that contains the foreign key. Edit the parent table structure and add new columns in "Columns". Enable foreign key constraints and select the referencing table and key. Set update/delete operations. save Changes.

Where does the wordpress database exist? Where does the wordpress database exist? Apr 15, 2024 pm 10:39 PM

The WordPress database is housed in a MySQL database that stores all website data and can be accessed through your hosting provider’s dashboard, FTP, or phpMyAdmin. The database name is related to the website URL or username, and access requires the use of database credentials, including name, username, password, and hostname, which are typically stored in the "wp-config.php" file.

What is the password for the phpmyadmin account? What is the password for the phpmyadmin account? Apr 07, 2024 pm 01:09 PM

The default username and password for PHPMyAdmin are root and empty. For security reasons, it is recommended to change the default password. Method to change password: 1. Log in to PHPMyAdmin; 2. Select "privileges"; 3. Enter the new password and save it. When you forget your password, you can reset it by stopping the MySQL service and editing the configuration file: 1. Add the skip-grant-tables line; 2. Log in to the MySQL command line and reset the root password; 3. Refresh the permission table; 4. Delete skip-grant-tables line, restart the MySQL service.

why phpmyadmin access denied why phpmyadmin access denied Apr 07, 2024 pm 01:03 PM

Reasons and solutions for access denied by phpMyAdmin: Authentication failed: Check whether the username and password are correct. Server configuration error: adjust firewall settings and check whether the database port is correct. Permissions issue: Granting users access to the database. Session timeout: Refresh the browser page and reconnect. phpMyAdmin configuration error: Check the configuration file and file permissions to make sure the required Apache modules are enabled. Server issue: Wait for a while and try again or contact your hosting provider.

How to delete data table in phpmyadmin How to delete data table in phpmyadmin Apr 07, 2024 pm 03:00 PM

Steps to delete a data table in phpMyAdmin: Select the database and data table; click the "Action" tab; select the "Delete" option; confirm and perform the deletion operation.

How to use NetEase Mailbox Master How to use NetEase Mailbox Master Mar 27, 2024 pm 05:32 PM

NetEase Mailbox, as an email address widely used by Chinese netizens, has always won the trust of users with its stable and efficient services. NetEase Mailbox Master is an email software specially created for mobile phone users. It greatly simplifies the process of sending and receiving emails and makes our email processing more convenient. So how to use NetEase Mailbox Master, and what specific functions it has. Below, the editor of this site will give you a detailed introduction, hoping to help you! First, you can search and download the NetEase Mailbox Master app in the mobile app store. Search for "NetEase Mailbox Master" in App Store or Baidu Mobile Assistant, and then follow the prompts to install it. After the download and installation is completed, we open the NetEase email account and log in. The login interface is as shown below

See all articles