From: prikid at gmail dot com Operating system: FreeBSD 6.2-RELEASE PHP version: 5.2.5 PHP Bug Type: Apache2 related Bug description: Write/read errors on vhosts
Description: ------------ Note: This bug maybe related to bug#42826 I have setup virtual hosts within apache 2.0.62 configuration with identical settings (except for paths to directories) 3 out of 5 users have no problems, but for 2 others, temporary cache files (using smarty templating system) produce errors as well as session files in /var/tmp. All directories have correct user/group settings for apache and chmodded 775 recursively. Again, file permissions and user settings are absolutely correct and work for 3 out 2 users. Suhosin patch and Zend Optimizer are disabled. Reproduce code: --------------- Main apache config: User www Group www Vhost config in apache: <VirtualHost 10.2.8.10:80> ServerName site.user1.crossbow DocumentRoot /var/www/branches/site/user1/ <Location /> php_value include_path ".:/var/www/branches/toolbox/user1:/var/www/branches/site/user1" AllowOverride All Options All </Location> </VirtualHost> Expected result: ---------------- Able to write/read cached files in "/var/www/branches/toolbox/user1/smarty/cache/" and "/var/www/branches/toolbox/user1/smarty/templates_c" and "/var/tmp/" Actual result: -------------- Warning: Smarty error: problem creating directory '/var/www/branches/toolbox/user1/smarty/cache/%%00/00F' in /usr/local/www/branches/toolbox/user1/smarty/Smarty.class.php on line 1101 .... Warning: Unknown: open(/var/tmp//sess_bb88e3d0e6a8358dc818d6fc7a2f8625, O_RDWR) failed: Permission denied (13) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0 # cd /var/tmp # ls -la total 10 drwxrwxrwx 3 root wheel 3072 Apr 3 14:46 . drwxr-xr-x 24 root wheel 512 Jan 31 17:12 .. ---------- 1 www wheel 0 Apr 3 14:42 sess_462dae3f012480a23443be1051eb7b4e sess_bb88e3d0e6a8358dc818d6fc7a2f8625 ---------- 1 www wheel 0 Apr 3 14:25 wrt0AId76 ---------- 1 www wheel 0 Apr 3 14:25 wrt0ynxfS ---------- 1 www wheel 0 Apr 3 14:44 wrt1N4NTk ... # cd /var/www/branches/toolbox/user1/smarty/templates_c/ # ls -la total 32 d--x--x--x 2 www www 512 Apr 3 14:44 %%47 d--x--x--x 2 www www 512 Apr 3 14:44 %%5B -- Edit bug report at http://bugs.php.net/?id=44633&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44633&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44633&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44633&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44633&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44633&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44633&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44633&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44633&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44633&r=support Expected behavior: http://bugs.php.net/fix.php?id=44633&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44633&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44633&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44633&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44633&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=44633&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44633&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44633&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44633&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44633&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44633&r=mysqlcfg