note 76271 added to ref.ftp
| From: | chris at faktortel dot com dot au | Date: | Sun, 08 Jul 2007 22:47:44 +0000 |
| Subject: | note 76271 added to ref.ftp | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-128309@lists.php.net to get a copy of this message | ||
I had some major problems running ftp_connect from my Web Browser and not from the CLI from 1 server
and yet from another Internal server I had no trouble at all. After a few hours I figured out this
was because SELINUX was enabled on one server and DISABLED on the server that it worked on.
So in short, if you are having trouble with connecting in your Web Browser make sure you have HTTPD
connect's enabled in it like so at the command prompt:
; Turns it on temporarily.
/usr/sbin/setsebool httpd_can_network_connect=1
; Turns it on Permenantly
/usr/sbin/setsebool -P httpd_can_network_connect=1
I hope this helps make someones life a little easier. :)
(I actually found this fix on the fopen manual page).
----
Server IP: 203.16.234.90
Probable Submitter: 58.167.215.189
----
Manual Page -- http://www.php.net/manual/en/ref.ftp.php
Edit -- https://master.php.net/note/edit/76271
Del: integrated -- https://master.php.net/note/delete/76271/integrated
Del: useless -- https://master.php.net/note/delete/76271/useless
Del: bad code -- https://master.php.net/note/delete/76271/bad+code
Del: spam -- https://master.php.net/note/delete/76271/spam
Del: non-english -- https://master.php.net/note/delete/76271/non-english
Del: in docs -- https://master.php.net/note/delete/76271/in+docs
Del: other reasons-- https://master.php.net/note/delete/76271
Reject -- https://master.php.net/note/reject/76271
Search -- https://master.php.net/manage/user-notes.php