cannot do system() exec() or anything +cannot unlink

cannot do system() exec() or anything +cannot unlink

am 13.01.2008 02:34:19 von lukaszmn

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

Re: cannot do system() exec() or anything +cannot unlink

am 13.01.2008 02:37:27 von lukaszmn

Sorry, here's the correct link: http://www.tran.cba.pl/apache.html

Re: cannot do system() exec() or anything +cannot unlink

am 13.01.2008 09:39:21 von radmission05

On Jan 12, 5:37 pm, lukas...@gmail.com wrote:
> Sorry, here's the correct link:http://www.tran.cba.pl/apache.html

sometimes, server config overide php.ini, and scripts not allowed to
execute, if they are under server user permission.. or you try to run
a scripts from server user permission into root permission..

Re: cannot do system() exec() or anything +cannot unlink

am 13.01.2008 13:55:22 von lukaszmn

> sometimes, server config overide php.ini, and scripts not allowed to
> execute, if they are under server user permission.. or you try to run
> a scripts from server user permission into root permission..

Well how can I check this? It is a default Apache+PHP instance from
Fedora Core, only I've upgraded PHP.

Re: cannot do system() exec() or anything +cannot unlink

am 16.01.2008 14:44:53 von radmission05

On 13 Ene, 04:55, lukas...@gmail.com wrote:
> > sometimes, server config overide php.ini, and scripts not allowed to
> > execute, if they are under server user permission.. or you try to run
> > a scripts from server user permission into root permission..
>
> Well how can I check this? It is a default Apache+PHP instance from
> Fedora Core, only I've upgraded PHP.

every platform or even the same platform, have different location or
path,
so path maybe different to you

sample of My Path

/usr/local/www/vhosts/domain.com/conf/ ---------> sometimes server
config here..
/home/sites/web/conf/ ---------> sometimes server config here..

php.ini
/usr/local/etc/

but sometimes is, you have to configure it on plesk.. safemode off,
not with php.ini