LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] PHP Question - exec()

[ILUG] PHP Question - exec()

Pangurban pangurban at eircom.net
Fri Jun 3 13:19:46 IST 2005


Turning off selinux has had an effect.

whoami - produces "apache" when test.php is called from the browser
but
heyu info - produces an empty array and a return value of 1

While from the command line - php /var/www/html/test.php

whoami - produces "apache"
and
heyu info - produces a populated array (the print that it produces when
called  from the command line) and a return value of 0



Kae Verens wrote:

> Pangurban wrote:
>
>> Did  all those things - same result
>>
>> I am testing with >whomai<
>> which is -> -rwr-xr-x 1 root root /usr/bin/whoami
>>
>> and >heyu<
>> which is -> -rwxr-xr-x 1 root sys /usr/local/bin/heyu
>>
>> I suspect the problem arises out of some aspect of the security setup of
>> the installation.
>>
>> Another program which uses heyu - a web interface called Bluelava using
>> perl scripts - worked on FC 2 - but I cannot get it to work on FC 3.
>>
>> The machine and server are domestic and what I am trying to do is set up
>> the home network to control automation including switching using x10
>> powerline controllers.
>>
>> Thank you for your help
>>  
>>
>
> you could also try turning off selinux - that pain in the ass has
> caused me trouble in the past. it could be the cause of this as well.
>
> Kae
>
>
>
Regards,

Brian










More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell