Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-21-2010, 05:25 AM   #1
Registered: Nov 2010
Posts: 35

Rep: Reputation: 0
Outbound http connections blocked

(centos 5.5 86*64 with cpanel)
I am trying to set up a php script from

The script requires an outbound connection to project honeypot and when I go to the honeypot.php on my server I get an error asking if outbound connections are disabled.

They could be...I am not sure where to check, I have checked csf and outbound tcp is allowed on port 80, but I am not sure if I should be looking somewhere else.

Obviously I dont want to make the server insecure, so I am wondering how I can allow this outbound connection.
Old 11-21-2010, 11:03 AM   #2
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
Check your setting for allow_url_fopen in php.ini
(I assume you have access to a phpinfo(); page )
The script might require it to be on, but it may be disabled by default.

Last edited by smoker; 11-21-2010 at 11:08 AM.
1 members found this post helpful.
Old 11-21-2010, 03:04 PM   #3
Registered: Nov 2010
Posts: 35

Original Poster
Rep: Reputation: 0
Yes allow_url_fopen was disabled. I have enabled it, but still have not got the script to work. the script I notice, the bits that are readable include fopen() and there is this include_path option in php.ini

Specifies a list of directories where the require(), include(), fopen(), file(), readfile() and file_get_contents() functions look for files. The format is like the system's PATH environment variable: a list of directories separated with a colon in Unix or semicolon in Windows.
I also have disabled the following functions, but it is hard to see as some of the script is encrypted..

ini_set,exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source, phpinfo,popen, proc_open,allow_url_fopen,apache_get_modules,apache_get_version,apache_getenv,apache_note,apache_setenv,disk_free_space,diskfreespace,dl,highlight_file,ini_alter,ini_restore,openlog,proc_nice,symlink,fsockopen


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables Control Outbound Connections - need help xoros Linux - Networking 5 04-29-2009 05:30 AM
mail misunderstandings /authentication/blocked outbound smtp kevinyeandel Linux - Newbie 0 01-30-2009 08:44 PM
Only allow outbound connections CrEsPo Linux - Security 4 01-01-2007 11:54 AM
programs making outbound connections six6 Debian 2 11-03-2004 11:04 PM
suspicious outbound connections di11rod Linux - Networking 13 01-23-2004 02:55 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration