Re: System Call/Script Troubles

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux