permissions hell
| From: | Eric Mueller | Date: | Wed, 29 May 2002 17:28:47 +0000 |
| Subject: | permissions hell | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4433@lists.php.net to get a copy of this message | ||
Hi guys-- I am having a Unix permissions problem with Smarty... the
pages are generating ok, but they're interspersed with this error:
"Warning: chmod failed: Operation not permitted in
/home/www_server/gearcrew.com/www/Smarty.class.php on line 1379"
That piece of code is:
if ( strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' || (flock($fd,
LOCK_EX)) ) {
fwrite( $fd, $contents );
fclose($fd);
chmod($filename, 0644); // <- line 1379
}
What's up? Like I said-- the pages are generating just fine-- but the
chmod error message is mixing into the output so it looks bad.
On this box I believe apache runs as root (--how can I tell for sure?).
My templates_c directory looks like this:
drwx------ 42 nobody nobody 4096 May 28 19:48
templates_c
THANK YOU--
best,
Eric Mueller