Home > Archive > PHP Mirrors > November 2004 > Session error - Urgent
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Session error - Urgent
|
|
| Alessandro Lumertz Garcia 2004-11-30, 4:00 pm |
| Hi.
I´ve got a problem running apache with php on a Red Hat 9.
It gives me this error:
Warning: session_start(): open(/tmp/php/sess_db2af2b2bf4106fe2457762aba403bea, O_RDWR) failed: Permission denied (13)in /usr/local/htdocs/common/conexao_firebird.php on line 2
But the thing is that I run apache with the user 'apache' and the same group.
This user has permission 777 on /tmp/php (he is the owner).
But every time a session is create the error appears.
The session file is created at the rigth location with the owner and group 'apache' but the permission of the file is none (---).
Perhaps it could be something with umask, I don´t know, because if I create a file manualy it gets the permissions ok. The error is only with apache + php.
I´d be very glad if you could help me.
Best regards.
Alessandro Lumertz Garcia
Fone: (51)3337-5377 / 3023-5377 R. 221
Teletex Sul / Tec B&B Serviços
http://www.teletexsul.com.br
| |
| Gabor Hojtsy 2004-11-30, 4:00 pm |
| Hi Alessandro,
> I´ve got a problem running apache with php on a Red Hat 9.
> It gives me this error:
> Warning: session_start(): open(/tmp/php/sess_db2af2b2bf4106fe2457762aba403bea, O_RDWR) failed: Permission denied (13)in /usr/local/htdocs/common/conexao_firebird.php on line 2
>
> But the thing is that I run apache with the user 'apache' and the same group.
> This user has permission 777 on /tmp/php (he is the owner).
> But every time a session is create the error appears.
> The session file is created at the rigth location with the owner and group 'apache' but the permission of the file is none (---).
> Perhaps it could be something with umask, I don´t know, because if I create a file manualy it gets the permissions ok. The error is only with apache + php.
> I´d be very glad if you could help me.
Since your problem is not about php.net, this is not the right email
address to ask it. Please contact php-general@lists.php.net with general
support questions.
Regards,
Gabor Hojtsy
|
|
|
|
|