S
S
Simon_Barry2014-08-26 05:05:16
Apache HTTP Server
Simon_Barry, 2014-08-26 05:05:16

Why sessions don't work in LAMP?

the error in the log is:
PHP Warning: session_start(): open(/home/***/tmp/sess_en36istd4kifhuf8i4lmpaol6, O_RDWR)
failed: Permission denied (13) in /home/***/www/inc/user_f.inc. php on line 31, referer: ***
PHP Warning: Unknown: open(/home/***/tmp/sess_en36istd4kifhuf8i4lmpaol6, O_RDWR)
failed: Permission denied (13) in Unknown on line 0, referer: ***
PHP Warning : Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/***/tmp) in Unknown on line 0, referer: ***

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2014-08-26
@Simon_Barry

The user running apache does not have permission to write a file to the /home/***/tmp directory .
Correct the rights and everything will work.
As a test, you can do:
And just in case, check that the directory itself is definitely created:
mkdir /home/***/tmp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question