PHP Push notification permission denied IOS
<p>I am currently trying to set up a push notification server using php. I have some code that, if i run it on the command line works. However, when I go to the same php file through a web browser to test that it gives me a permission denied error. </p>

<p>What could possibly be causing this, I belive that it must be something wrong with apache but I have no idea what.</p>

<p>Edit:
I belive it to be an SELinix issue as when I try and run the script these errors appear in the audit log.</p>

<pre><code>type=AVC msg=audit(1348856835.712:48079): avc:  denied  { name_connect } for  pid=587 comm="httpd" dest=2195 scontext=unconfined_u:system_r:httpd_t:s0 tcontext=system_u:object_r:port_t:s0 tclass=tcp_socket
type=SYSCALL msg=audit(1348856835.712:48079): arch=40000003 syscall=102 success=no exit=-13 a0=3 a1=bfb8c910 a2=4514ad8 a3=10 items=0 ppid=584 pid=587 auid=0 uid=48 gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=2395 comm="httpd" exe="/usr/sbin/httpd" subj=unconfined_u:system_r:httpd_t:s0 key=(null)
</code></pre>
