System() problem related with instalation
| From: | Paulo Trezentos | Date: | Fri, 18 Oct 2002 08:52:04 +0000 |
| Subject: | System() problem related with instalation | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-8850@lists.php.net to get a copy of this message | ||
Hi all!
I have a problem with running PHP (4.0.4pl1-90) with Apache (1.3.19-66)
in a Linux SuSE 7.2 system.
PHP is ok with several functions but when I use system() function it has
a strange behavior.
For intance:
system("/bin/ls");
will try to run /ls and not /bin/ls. this is confirmed bu the httpd log:
sh: /ls: No such file or directory
The same call (in the same PHP script) works fine in other servers (with
different versions of Apache and PHP).
I tried in a server with the same version of Apache and PHP and the
misbeahviour of PHP also happens.
Also have tried get a httpd.conf file from a server where it runs ok but
it gives the same error.
Since this is a normal SuSE distribution it shouldn't happen and I have
look a lot in the web wand got no answers (right.. first I used Google
:-)).
Thank you for the help.
Best regards,
Paulo.
--
_____________________________________________________
|ADETTI/RSI (IS/IT Research and Development)
|FP: 1B13 55A2 5045 2271 BA66 762B B2AE 7EC0 E4B3 0AB7