Re: SELinux prevents my PHP script from sending mail

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



2012/5/3 Alan M. Evans <ame1@xxxxxxxxxxxxx>:
> [ Sorry about the private message. Reply-to header wasn't set in your
> message. Resending to all... ]
>
> On Thu, 2012-05-03 at 10:19 -0400, Daniel J Walsh wrote:
>
>> What AVC messages are you seeing?
>
> None now, as I said. But before I applied the local policy, the denials
> were:

How about trying something like this:

su - useraccount-under-script-runs -s /bin/bash

and then run following commands:

/usr/bin/php-cgi /var/www/html/mydomain/email-cgi.php or
strace /usr/bin/php-cgi /var/www/html/mydomain/email-cgi.php


--
Eero
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux