Installation Issue

11 posts by 6 authors in: Forums > CMS Builder
Last Post: November 11, 2009   (RSS)

By sidcam - March 22, 2008 - edited: March 23, 2008

I am getting the following message when I try to log into the admin.php for the first time.

----------------------------------------------------------------------------------------------
Warning: fsockopen() [[url "http://www.interactivetools.com/forum/forum.cgi?url=http%3A%2F%2Fwww.interactivetools.com%2Fforum%2Fforum.cgi%3Furl%3Dhttp%253A%252F%252Fwww.relocatingphysicians.com%252FcmsAdmin%252Ffunction.fsockopen"]function.fsockopen[/#810081][/url]]: unable to connect to www.google.com:80 in /home/u5/(account name)/html/cmsAdmin/lib/init.php on line 111
Error: PHP fsockopen() and/or network connectivity disabled!
Test connection to www.google.com return error #13 - Permission denied
Please ask your server administrator to enable network connectivity for PHP.

Server Administrators: This is a [url "http://www.interactivetools.com/forum/forum.cgi?url=http%3A%2F%2Fwww.interactivetools.com%2Fforum%2Fforum.cgi%3Furl%3Dhttp%253A%252F%252Fwww.google.com%252Fsearch%253Fq%253Dphp%252Bfsocket%252B2522permission%252Bdenied257C%252522resource%252Bnot%252Bavailable29"]common problem[/#810081][/url] and may be resolved by one of these methods:
  1. Disable SELinux
  2. Enable Network Connections with: `setsebool -P httpd_can_network_connect 1`
  3. Enable Network Connections with: Desktop > Admin. > Security level > SELinux > httpd > HTTPD scripts to connect to the network




------------------------------------------------------------------------------------------------------

My hosting provider support group says, "For the connections to other sites [/#000000]you need to send an e-mail to support@... [/#000000]with the IPs [/#000000]and the port numbers for which you want the firewall to be opened."[/#000000]

I can't find anything in the installation guide to deal with this problem. My question is (and I'm not an IT person) what are ALL the IP's and port numbers that I need to have my provider open?

I'm guessing Port 80? Maybe Port 5? Those are numbers on Line 111 in that file. However I see nothing that looks like an IP and it would seem to me that Google would have a lot of potential IPs (although I'm not sure why we're connecting with Google in the first place).

Can anyone assist please.

UPDATE:

Here is what my hosting provider sent me back.

Please fill out this form:

Please allow the outbound connections for scripts for FTP username: XXXX
Local script filename (and location) which needs the outbound connection:
1.
2.
...
Remote server IP address and port number:
1.
2.
...
Exact purpose of this connection:
1.
2.
...
Please note that our firewall is IP based. If the remote host changes its IP address in the future, please notify us of the change.

Re: [sidcam] Installation Issue

By Dave - March 25, 2008 - edited: November 11, 2009

Hi sidcam,

Thanks for reporting that. Try opening /lib/init.php and disabling Add the characters in red (or just erase the code). Make sure to download a backup copy of that file first.


*** UPDATED: See instructions at the bottom of this thread!



And the program should install and work fine. We plan on adding features in future that nay require network connections. Do you mind me asking who you host with? I'm curious how many hosts lock this down.

Hope that helps, let me know if you need anything else.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Installation Issue

By chassa2556 - December 5, 2008

Hi Dave

I've tried this and now its just coming up with a blank page and ideas?

Re: [chassa2556] Installation Issue

By Dave - December 5, 2008

Hi Charles,

This is a pretty old error. If you're getting it on a new install send me CMS and FTP details and I can have a look and sort it out for you. Email dave@interactivetools.com (don't post login details to the forum).

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [chassa2556] Installation Issue

By jtedescojam - November 7, 2009

I'm having this same issue now... I know it's like a year later.. this must be a server issue. Just in case you have any ideas... I am waiting for my hosting provider to get back to me... here's the error...

Error: PHP fsockopen() and/or network connectivity disabled!
Test connection to www.google.com return error #110 - Connection timed out

Please ask your server administrator to enable network connectivity for PHP.
John Tedesco

Creative Director



JAM Graphics

Re: [jtedescojam] Installation Issue

By Donna - November 9, 2009

Hi there!

Yep, that's a server issue -- pretty much exactly what the error message says, PHP isn't able to connect elsewhere.

Your host should be able to fix that up for you. :)
Donna

--
support@interactivetools.com

Re: [jtedescojam] Installation Issue

By Dave - November 9, 2009

Did you try connecting out the code as mentioned in this post: http://www.interactivetools.com/forum/gforum.cgi?post=60910#60910
Dave Edis - Senior Developer
interactivetools.com

Re: [jtedescojam] Installation Issue

By Dave - November 9, 2009

Actually, looks like we've updated that code. In cmsAdmin/lib/init.php search for this:

displaySocketErrors();

And add // in front:

// displaySocketErrors();

Note that the wysiwyg spellcheck won't work if your server is firewalled and can't connect to internet servers. This is because it uses the spellcheck API service on google.com.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Installation Issue

By jtedescojam - November 9, 2009

The hosting provider fixed the issue. I tried altering the ini file per the above direction from last year, but the code you say to change is not on the current ini file.
John Tedesco

Creative Director



JAM Graphics