PHP Warning Permission Denied (13) on Session_Start()

PHP Warning Permission denied (13) on session_start()

You don't appear to have write permission to the /tmp directory on your server. This is a bit weird, but you can work around it. Before the call to session_start() put in a call to session_save_path() and give it the name of a directory writable by the server. Details are here.

session_start() failed: Permission denied (13)

chmod -R o+w ...../temp or even better (safer) chown -R apache.apache ......./temp (replace apache with the user/groupname your webserver is using).

Warning: session_start(): failed: Permission denied (13)

use session_save_path() on page starting

refer : http://php.net/manual/en/function.session-save-path.php

php session_start: failed: Permission denied (13)

The path in session_save_path('/w/w/session'); is not the one you need.

Try one of those:

session_save_path('./session');
session_save_path('/session');
session_save_path('/tmp');

On a shared host, you are not as flexible as on a rootserver, and your /www is chrooted, that means, the real path, which you cannot access then is something like /var/www/user3183123/www.

open(/var/lib/php/session/...sesionid, O_RDWR) failed: Permission denied (13)

You install PHP from zero in this machine? You already tried to put a complete permission in this folder?
Ex: sudo chmod 777 -R /var/lib/php/session

XAMPP - phpMyAdmin error session_start() Permission denied (13)

After spending all night trying to figure out the problem i finally found the solution. I copied the location of the TMPDIR.

Then used this in the Terminal:

sudo chmod 777 /paste/TMPDIR/location/here/...

And then restart XAMPP and should be all good from there. I hope this helps :)



Related Topics



Leave a reply



Submit