php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #43990 session_start() - failed: Permission denied (13)
Submitted: 2008-01-31 04:30 UTC Modified: 2008-03-25 01:00 UTC
Votes:68
Avg. Score:4.4 ± 1.0
Reproduced:59 of 60 (98.3%)
Same Version:33 (55.9%)
Same OS:29 (49.2%)
From: antonprk at mail dot ru Assigned: jani (profile)
Status: No Feedback Package: Session related
PHP Version: 5.2.5 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: antonprk at mail dot ru
New email:
PHP Version: OS:

 

 [2008-01-31 04:30 UTC] antonprk at mail dot ru
Description:
------------
In PHP 4.4.4, 4.4.7, 4.4.8, on a server more than 200 users at which periodically arise the specified error.
In php.ini add an option the name of a file of session.

2008-01-31 05:33:36 Warning(2): Unknown(): open(/tmp/sess_842bfb761b488cb7c0df711a162f6b56, O_RDWR) failed: Permission denied (13) in /home/USER_ONE/lib/session.inc (/eng.php) on line 24

root@server [/tmp]# ls -l --full-time sess_842bfb761b488cb7c0df711a162f6b56
-rw-------  1 USER_TWO USER_TWO 46 2008-01-31 05:33:26.000000000 +0300 sess_842bfb761b488cb7c0df711a162f6b56


Two different users try to use one file of session.

Reproduce code:
---------------
USER_ONE

<?php
session_start();
?>


USER_TWO

<?php
session_start();
?>

Expected result:
----------------
Creation of not existing file of session was expected.

Actual result:
--------------
Attempt of creation of already existing file of session.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-03-17 04:06 UTC] antonprk at mail dot ru
The problem is present at version PHP 5.2.4, 5.2.5
 [2008-03-25 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2010-08-21 03:48 UTC] vinko dot culjak at live dot com
Apache version: 2.2.15
PHP version: 5.2.13

Situation:
----------
2 websites on the same server (on a Linux Multiple Domain Reseller Hosting plan) that both contain <?php session_start(); ?>

How to reproduce error:
-----------------------
1. Completely close your browser
2. Open your browser
3. Visit the first website (beach1.sibername.com/~dilletpr)
4. Visit the second website (beach1.sibername.com/~duroinmo) (the error should appear on this site)
5. Completely close your browser
6. Open your browser
7. Visit the second website (beach1.sibername.com/~duroinmo)
8. Visit the first website (beach1.sibername.com/~dilletpr) (the error should appear on this site)

Summery:
--------
The session_start() - failed: Permission denied (13) error appears when you visit the second of 2 websites that are on the same server. If you visit even more websites on the same server, they all have the error except the first one.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 13:01:27 2024 UTC