System Call/Script Troubles
Alexander Dalloz
ad+lists at uni-x.org
Thu May 19 16:45:46 UTC 2005
Am Do, den 19.05.2005 schrieb Michael Stearne um 18:42:
> I am having the strangest problem using system() or exec() or any
> variation. None of them work on the Fedora Core 3 system that was
> just loaded. The PHP is Version 4.3.11 with Apache 2.0.52, the default
> installation for Fedora Core 3. Everything in PHP works as expected
> except when trying a system call. If I run :
>
> <?
> system("/bin/ls /tmp");
> ?>
>
> on my OS X (Apache/1.3.33 (Darwin) PHP/4.3.4) this returns the desired
> results, a listing of the tmp directory. On the Fedora box I get
> nothing, a blank page. There is content in the /tmp directory on the
> Fedora box.
>
> It also seems that I can't even run a shell script in the
> /var/www/html directory even from the command line? Does anyone know
> what this restriction is about?
SELinux security, please read the docs
http://fedora.redhat.com/docs/selinux-apache-fc3/
Alexander
--
Alexander Dalloz | Enger, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.14_FC2smp
Serendipity 18:45:16 up 5 days, 18:17, load average: 0.19, 0.12, 0.10
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20050519/99cd878f/attachment-0002.bin
More information about the users
mailing list