Phpmyadmin not functioning in xampp - php

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.
session_start(): open(SESSION_FILE, O_RDWR) failed: Permission denied (13)
session_start(): Failed to read session data: files (path: /opt/lampp/temp/)
Things tried:
Changing file permissions and ownership.
Removing cookies from browser
Different browser
Things to note:
using ubuntu 18
mssql installed
uninstalled mysql previously and reinstalled again
mysql save installation also done

Related

PHP Randomly Warning Permission denied (13) on session_start()

I have randomly this issue:
WARNING: FILE: [PATH_PROJECT]\class\session.class.php
MESSAGE: session_start(): open([PATH_SESSION]\sess_966tkue45v5mm6ftvqgqhnd21r, O_RDWR) failed: Permission denied (13)
I write without problem in [PATH_SESSION]
For example this issue It shows up 10 times in day and in the other cases working fine.
I use PHP 8.0 on Windows Server.
I think you will need to change your session.save_path php.ini directive
You can do that using session_save_path
for more information: https://www.php.net/manual/en/function.session-save-path.php

PHP session_start() permissions problems CentOS 8

I'm getting the following error when using session_start() on CentOS 8, PHP 7.2 system.
Warning: session_start(): open(/var/lib/php/session/sess_ikk0j7e15bveibgk0crj508ki5, O_RDWR) failed: Permission denied (13) in /var/www/html/setup.php on line 26
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/session) in /var/www/html/setup.php on line 26
I've been able to fix this error in the past (on CentOS 7) by simply changing the permissions of /var/lib/php/session to 777. But this time it isn't working.
I've done the following:
Change apache to run as the 'nidb' user
Change ownership of /var/lib/php/session to the nidb user/group
Change user/group of /etc/php-fpm.d/www.conf to nidb/nidb
Disable SELinux
Restart the httpd service
What else might I be missing?
Turns out I also needed to restart the php-fpm service! That fixed it

Unable to start MySQL on mac OS

I just bought a mac and install XAMPP on it which I later in changed the root account password of MySQL account and also did the same on the config.inc.php in the phpMyAdmin folder.
Now when I try to access http://localhost/phpmyadmin I get this 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.
session_start(): open(SESSION_FILE, O_RDWR) failed: Permission denied (13)

Memcached failing after PHP upgrade

I have been using memcached and I upgraded from PHP 5.4 to 5.6 and now it is failing to connect and store.
I have:
ini_set('session.save_handler', 'memcached');
ini_set('session.save_path', 'serverAddress:11211');
session_start();
I have also tried tcp:// before the server address, but no luck there.
In the error log, I am getting the following errors:
PHP Warning: session_start(): Write of lock failed
PHP Warning: session_start(): Unable to clear session lock record
PHP Warning: Unknown: Failed to write session data (memcached).
Please verify that the current setting of session.save_path is
correct
I guess something changed in the versions of PHP. Any help is appreciated, thanks!
Note: I am using Amazon Elastic Beanstalk for the web server and ElastiCache for the memcached
What I Have Tried
Used a config file with:
files:
"/etc/php.d/setup.ini":
mode: "000644"
owner: root
group: root
source: https://s3.amazonaws.com/path/to/file.ini
Inside of the ini file is:
[php]
session.save_handler = memcached
session.save_path = 'memcached.server.path.cache.amazonaws.com:11211'
I have tried using session_write_close()
I have tried using tcp:// before the server path
I have also tried using memcache instead of memcached as the
handler.

phpMyAdmin - Error Mysql error during session start

I had a problem with MySQL, this problem appears after I clean chrome browsing data.
The error looks like this.
This error appears every time I access PHPMyAdmin, and also I can't access my databases.
What I already did so far are :
https://github.com/rtCamp/easyengine/issues/302 - not work
Access PHPMyAdmin from other browsers -same result
Prepare for the worst, how to back up my databases?, because I can't access my databases from terminal.
UPDATE :
I have been following this link and create php_error.php file this is the result
Warning: session_start(): open(/opt/lampp/temp//sess_eobqtotm38tean46jjthbih1m3, O_RDWR) failed:
Permission denied (13) in /opt/lampp/htdocs/portofolio1/php_error.php
on line 6
If a session could be started successfully you should not see any
Warning(s), otherwise check the path/folder mentioned in the
warning(s) for proper access rights. The current "session.save_path"
is "/opt/lampp/temp/". Session file name:
"sess_eobqtotm38tean46jjthbih1m3".
Warning: Unknown:
open(/opt/lampp/temp//sess_eobqtotm38tean46jjthbih1m3, O_RDWR) failed:
Permission denied (13) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify
that the current setting of session.save_path is correct
(/opt/lampp/temp/) in Unknown on line 0
Now what I should do next?
SOLVED!
Follow this web
By typing this on terminal
sudo chmod -R 705 /opt/lampp/temp/sess_su8nntc1mvi9t3t6b3vu67kuquc9p012
and
sudo chown -R $user /opt/lampp/temp/sess_su8nntc1mvi9t3t6b3vu67kuquc9p012
change $user with your username
sess_su8nntc1mvi9t3t6b3vu67kuquc9p012 is my session file, it should be different on your system
Thanks, axiac^^
Try like this
sudo chown root:root /opt/lampp/temp/sess_243ca2147169ded5d73ae8290b2f68fe

Categories