Bug #15239 Updated: Apache's httpd.conf recommends something that will break file writing

From: Date: Sun, 27 Jan 2002 09:04:42 +0000
Subject: Bug #15239 Updated: Apache's httpd.conf recommends something that will break file writing
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-78230@lists.php.net to get a copy of this message
ID: 15239 Comment by: doktor1@earthlink.net Reported By: doktor1@earthlink.net Status: Open Bug Type: Documentation problem Operating System: Linux PHP Version: 4.1.1 New Comment: Correction to above... "will not be able to open files" should be "will not be able to open files for writing". Previous Comments: ------------------------------------------------------------------------ [2002-01-27 04:02:25] doktor1@earthlink.net Here's something you might want to add to any function's documentation that has to do with writing to files - like fopen(), session_start(), etc. Apache's default httpd.conf currently ships with a section that looks like this: User nobody Group "#-1" There is a section above that with a somewhat confusing instruction to use "Group nogroup" if you run SCO 3. It doesn't mention Linux, but does go into details of why you shouldn't use #-1 if your kernel can't use GIDs above 60,000. Let's assume some or most people tuning httpd.conf don't know whether that's true about Linux. :) Anyway, if your httpd.conf looks like that under Linux (2.4 for sure, dunno about 2.2), PHP will not be able to open files. It'll complain about an invalid argument. That applies to session_start() and fopen() - I've tried both. The solution is to use "Group nogroup". Once I changed my httpd.conf to use that instead of #-1, I was suddenly able to write files again. ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=15239&edit=1

« previous php.dev (#78230) next »