CodeIgniter Forums
Permission denied file_get_contents - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Permission denied file_get_contents (/showthread.php?tid=80749)



Permission denied file_get_contents - omid_student - 12-13-2021

Hi,
I have a WebSocket service on my server
And I try to use that with file_get_contents
But when I run it, occur the error permission denied
You can see here http://185.211.58.96/welcome/test
What is the problem?


RE: Permission denied file_get_contents - InsiteFX - 12-14-2021

Check the folder and file permissions on your server. Also try starting ob_start() first some times that helps.


RE: Permission denied file_get_contents - omid_student - 12-14-2021

The problem was solved with below command in Centos 7:
setsebool -P httpd_can_network_connect on


RE: Permission denied file_get_contents - InsiteFX - 12-15-2021

Thanks, glad you got it working.


RE: Permission denied file_get_contents - omid_student - 12-15-2021

(12-15-2021, 01:32 AM)InsiteFX Wrote: Thanks, glad you got it working.

Thanks