You are here: cannot do system() exec() or anything +cannot unlink « PHP Programming Language « IT news, forums, messages
cannot do system() exec() or anything +cannot unlink

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация