LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   phpMyAdmin can't access /var/lib/php/sessions (https://www.linuxquestions.org/questions/linux-server-73/phpmyadmin-cant-access-var-lib-php-sessions-4175716173/)

Pedroski 08-28-2022 07:51 PM

phpMyAdmin can't access /var/lib/php/sessions
 
I got this error this morning while trying to open phpMyAdmin.

Up to now, everything was fine!

Quote:

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: Read-only file system (30)

session_start(): Failed to read session data: files (path: /var/lib/php/sessions)
These are the permissions on the server. Checking on the internet, these permissions seem OK

Quote:

pedro@ebs-105422:/var/lib/php$ ls -al
total 196
drwxr-xr-x 4 root root 4096 Oct 7 2021 .
drwxr-xr-x 50 root root 4096 Mar 21 06:14 ..
drwxr-xr-x 3 root root 4096 Oct 7 2021 modules
drwx-wx-wt 2 root root 184320 Aug 28 19:09 sessions
Any tips please?

I get this with stat:

Quote:

pedro@ebs-105422:/var/lib/php/sessions$ sudo stat -c "%a" /var/lib/php/sessions
1733
Which is what it should be, I believe.

Tried changing to 1777 but doesn't work.

Quote:

pedro@ebs-105422:/var/lib/php/sessions$ sudo chmod 1777 /var/lib/php/sessions
chmod: changing permissions of '/var/lib/php/sessions': Read-only file system
pedro@ebs-105422:/var/lib/php/sessions$ sudo stat -c "%a" /var/lib/php/sessions
1733
Normally, I upload stuff with Filezilla. Now I can't create a directory on the server. Always worked before.

Quote:

Command: mkdir "21BE1cw"
Error: mkdir /var/www/fastmarker.wang/public_html/21BE1cw: received failure with description 'Failure'
Command: mkdir "/var/www/fastmarker.wang/public_html/21BE1cw"
Error: mkdir /var/www/fastmarker.wang/public_html/21BE1cw: received failure with description 'Failure'

michaelk 08-28-2022 08:55 PM

Quote:

chmod: changing permissions of '/var/lib/php/sessions': Read-only file system
Whatever filesystem /var/lib/php/sessions resides on has become read only for whatever reason. Many distributions use the option errors=remount-ro for the root filesystem in /etc/fstab. Make sure it isn't full either.

Pedroski 08-29-2022 02:04 AM

Thanks for your reply!

I didn't access the server on Sunday, but this problem began for me on Monday morning.

A bit later on Monday morning, my webpage and phpMyAdmin were not accessible at all.

I complained to the host after repeated failures. They must have updated their system either Saturday night or Sunday, because everything was fine on Saturday during the day.

They reacted quite fast, and a little while later, everything was OK again. Don't know what the problem was.

They must have updated something.

Works now!


All times are GMT -5. The time now is 05:01 PM.