php: exec error-code 127
| From: | Michel Proom | Date: | Thu, 16 Mar 2006 14:13:25 +0000 |
| Subject: | php: exec error-code 127 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-17193@lists.php.net to get a copy of this message | ||
Hello list,
I'm nearly giving up on this.
I'm running a small server hosting 2 virtual hosts with typo3 (hold on, .... I'm getting to the point)
That typo3 installation refuses to detect my installed ImageMagick, so I did investigated further and found that php refuses execution of any external program. I already disabled safe_mode and open_basedir to test it and found, that I can access text files with no problem but cannot execute programs (like ls, identify, ...)
Any attempt returns an error code of 127, which -afaik- means, that the file was not found.
I did test this via this little script
[begin code]
$pfad = "/usr/lib/php/bin/test.txt";
$handle = fopen($pfad, "r");
echo "<br>fpassthru=".fpassthru($handle)."<br>";
$pfad = "/usr/lib/php/bin/ls";
echo "<br>passthru=".passthru($pfad, $ret);
echo "<br>ret=".$ret;
[end code]
No matter what path I set, even same path as of that php file doesnt work.
I already compared the apache and php config-files to another server that doesnt run virtual-hosts and where everything runs fine, but couldn't come up with any "significant differences". I even tested it with 777 to the binary files and the files of the virutal host.
So, has somebody an idea of what I could have been missing here?
I thanks very much for any help.
mp
--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/