|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-06-25 11:46 UTC] pgale at netvigator dot com
[2004-06-29 18:07 UTC] iliaa@php.net
[2004-07-08 19:30 UTC] arnor at netvistun dot is
[2004-07-09 13:30 UTC] arnor at netvistun dot is
[2004-07-09 14:32 UTC] searchadm at goschorn dot de
[2004-07-09 14:57 UTC] arnor at netvistun dot is
[2004-07-11 21:31 UTC] sniper@php.net
[2004-07-19 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 00:00:02 2025 UTC |
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