ID:               28825
 Updated by:       [EMAIL PROTECTED]
 Reported By:      searchadm at goschorn dot de
-Status:           Open
+Status:           Feedback
 Bug Type:         Session related
 Operating System: Suse Linux 8.2
 PHP Version:      4.3.7
 New Comment:

When this error happens see if the directory where the 
sessions are being written to has enough space and if the 
system is not running out of file handles. 


Previous Comments:
------------------------------------------------------------------------

[2004-06-25 11:46:33] pgale at netvigator dot com

I am experiencing what appears to be the same problem.  99% of the time
users are able to login to my site and establish a session.  However,
about once a month, the login script fails and php sessions cannot be
established.  My ISP restarts apache and all works fine again. 

The ISP is running php4.2.3 on Linux 2.4.20-8smp#1 (as reported by
phpinfo()

I have now set up php errors to be emailed to me.  Once an error
message is caught I will add it to this bug report.  It could be some
time.

------------------------------------------------------------------------

[2004-06-18 11:06:26] searchadm at goschorn dot de

Description:
------------
php tells the following problem when i want to start new sessions

[17-Jun-2004 08:59:01] PHP Fatal error:  session_start(): Failed to
initialize storage module: user (path: /tmp) in
/www/mineralienatlas/htdocs/forum/index.php on line 109
[17-Jun-2004 08:59:03] PHP Fatal error:  session_start(): Failed to
initialize storage module: user (path: /tmp) in
/www/mineralienatlas/htdocs/forum/index.php on line 109
[17-Jun-2004 08:59:04] PHP Fatal error:  session_start(): Failed to
initialize storage module: user (path: /tmp) in
/www/mineralienatlas/htdocs/forum/index.php on line 109
------------------
here is the corresponding code
---- Start Code
if (empty($modSettings['enableCompressedOutput']))
        ob_start();

if (isset($_GET['PHPSESSID']) && preg_match('~[^A-Za-z0-9]~',
$_GET['PHPSESSID']) != 0)
        die('Hacking attempt...');

// Start the session.
session_start(); // line 109 <--------------

if (version_compare(PHP_VERSION, '4.2.0') == -1)
{
        $HTTP_SESSION_VARS['php_412_bugfix'] = true;

        // And, 4.2.x and above auto-seed ;).
        srand(time());
}
.......
---- End Code

it's not easy to reproduce the problem because the server has to run
several days to get the problem.
an "apachectl restart" solves the problem for some days again.

the /tmp has 777 right
there are only very few < 20 files in the directory when it crashes.

Part of my php.ini
---- Start
Session]
; Handler used to store/retrieve data.
session.save_handler = files
---- End

Saw some other threads here with the same problem but the threads are
closed so i open an new one. Think the solve code should already be in
4.3.7 and it didn't help or isn't it?

Regards Stefan

----------------------
Apache 2.0.48
----------------------

---- php compile settings start
config.nice         [----]  0 L:[  1+ 0   1/ 64] *(0   /1298b)= #  35
0x23
#! /bin/sh
#
# Created by configure

'./configure' \
'--prefix=/prog/php' \
'--with-_lib=lib' \
'--disable-debug' \
'--enable-bcmath' \
'--enable-calendar' \
'--enable-ctype' \
'--enable-dbase' \
'--enable-discard-path' \
'--enable-exif' \
'--enable-filepro' \
'--enable-force-cgi-redirect' \
'--enable-ftp' \
'--enable-gd-imgstrttf' \
'--enable-gd-native-ttf' \
'--enable-inline-optimization' \
'--enable-magic-quotes' \
'--enable-mbstr-enc-trans' \
'--enable-mbstring' \
'--enable-mbregex' \
'--enable-shmop' \
'--enable-sigchild' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--enable-track-vars' \
'--enable-trans-sid' \
'--enable-versioning' \
'--enable-wddx' \
'--with-bz2' \
'--with-dom=/usr/include/libxml2' \
'--with-ftp' \
'--with-gdbm' \
'--with-gettext' \
'--with-gmp' \
'--with-imap=yes' \
'--with-jpeg-dir=/usr' \
'--with-ldap=yes' \
'--with-mcal=/usr' \
'--with-mcrypt' \
'--with-mysql=/usr/local/mysql' \
'--with-ndbm' \
'--with-pgsql=/usr' \
'--with-png-dir=/usr' \
'--with-t1lib' \
'--with-tiff-dir=/usr' \
'--with-ttf' \
'--with-freetype-dir=yes' \
'--with-xml' \
'--with-xpm-dir=/usr/X11R6' \
'--with-zlib=yes' \
'--with-gd' \
'--with-openssl' \
'--with-curl' \
'--with-imap-ssl' \
'--with-iconv' \
'--with-mm' \
'--with-apxs2=/prog/apache/bin/apxs' \
'i686-pc-linux-gnu' \
"$@"
---- php compile settings end




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28825&edit=1

Reply via email to