Announcement

#1 2017-04-05 00:42:09

sneuberg
Member
2017-04-04
3

Access for updates from piwigo.org blocked

Greetings,

We have servers from www.knightwebservices.com, have installed piwigo on two of them and both installations can not access piwigo.org for updates or check for available plugins.   We get "connection to server unavailable".  We performed an installation on a Web site from ehost.com and do not have this problem.   

We traced through the software and identified the code that was detecting the error.  That code is:

    if (($s = @fsockopen($host,80,$errno,$errstr,5)) === false)
          return false;
     }

With a test program we were able to determine that access to piwigo.org was being blocked by our ISP when accessing piwigo.org through the code.  A representative of  www.knightwebservices.com later informed us that this was blocked in their firewall and was to remain that way but shared no information as to why.

We are hoping that someone might be able to shed some light on this and perhaps tell us of some way to work around this block, e.g.,  a mirror site that's not blocked.

Piwigo version: 2.6.8
PHP version:  5.6.23
MySQL version: 5.5.54
Piwigo URL: http://www.designbysue.com/photos/

Test Program:

<?php
$Action = $_POST['Action'];
$host = $_POST['host'];
if($Action == 'Submit')
{
    if (($s = @fsockopen($host,80,$errno,$errstr,5)) === false)
    {
        $testresult = "$errstr ($errno)<br />\n";           
    }
    else
    {
        $testresult = "Good connection to $host";
    }   
}
echo <<<theend
<!DOCTYPE html>
<html>
<head>
   <title>Test Connection</title>
</head>
<body>
   <h2>Test Connection</h2>
   <form action="testconnection.php" method="post">
   <label for="url">Enter the host:</label>
   <input type="text" name="host" id="url" size="30" value="piwigo.org" /><br />
   <input type="submit" name="Action" value="Submit"/>
   </form>
   <p>Test result: $testresult </p>
</body>
</html>
theend;

?>

Last edited by sneuberg (2017-04-05 00:45:58)

Offline

 

#2 2017-04-08 15:49:53

erAck
Only trying to help
2015-09-06
2024

Re: Access for updates from piwigo.org blocked

sneuberg wrote:

With a test program we were able to determine that access to piwigo.org was being blocked by our ISP when accessing piwigo.org through the code.  A representative of  www.knightwebservices.com later informed us that this was blocked in their firewall and was to remain that way but shared no information as to why.

We are hoping that someone might be able to shed some light on this and perhaps tell us of some way to work around this block, e.g.,  a mirror site that's not blocked.

Well, are you able to establish outgoing connections to any site? If your hoster blocks that in general then find a hoster that does not cripple services. If it blocks only piwigo.org and refuses to tell why then find a hoster with a better communication policy.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2017-06-10 15:21:39

sneuberg
Member
2017-04-04
3

Re: Access for updates from piwigo.org blocked

Update to this problem.   This was solved by the ISP "white listing" piwigo.org.  We never got an explanation from the service provider about this, i.e., why piwigo.org was blocked in the first place.

Offline

 

#4 2017-06-11 20:04:47

Zentalquabula
Member
2014-05-10
217

Re: Access for updates from piwigo.org blocked

Piwigo uses OVH, a French VPS supplier. Like Amazon and other such providers, they generate almost all of the mischief on the internet (and they do absolutely nothing to prevent it). It is more or less mandatory to block their ranges by default.

sneuberg wrote:

Update to this problem.   This was solved by the ISP "white listing" piwigo.org.  We never got an explanation from the service provider about this, i.e., why piwigo.org was blocked in the first place.

Offline

 

#5 2017-06-11 20:17:28

sneuberg
Member
2017-04-04
3

Re: Access for updates from piwigo.org blocked

@Zentalquabula

Thanks for your explanation.

Last edited by sneuberg (2017-06-11 20:19:27)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact