|
Posted by lukaszmn on 01/13/08 01:34
Hey I've been searching the internet and manuals for help for hours
and I'm still clueless. I wanted to delete a file in /var/www/html/
lista from a script /var/www/html/lista-drop.php. Apache runs as user
& group apache. I've chowned & chgrouped the file and parent directory
(lista). I've chmodded 777 both. I did so from both shell and the
script. From the script, I can read files from the folder, I can
create a file and delete it. It turned out the created file and the
old file have the same group & user yet I cannot delete the old file.
No other script is running at the meantime, no process blocks the
file. Originally the old file was created by root in other folder and
moved to /var/www/html/lista/. PHP is not running in safe mode, at
least /etc/php.ini & ini_get('safe_mode') say so. I have no idea why
this is happening. By the way I discovered any system() command
returns error code 127 (e.g. system("ls") or system("who") or
system("pwd") or system("rm ....")). Similarly exec(), popen() and
some other methods do nothing and don't show any output. What's going
on? Oh, my installation is: Fedora Core 6, PHP 5.1.6, Apache 2.2.3. I
attach the output of phpinfo() to http://www.tran.cba/apache.html
Navigation:
[Reply to this message]
|