Results 1 to 4 of 4

Thread: Having a problem with @proxy script

  1. #1
    Habaku's Avatar
    Habaku is online now Newbie Net Builder
    Join Date
    May 2009
    Posts
    412
    Thanks
    65
    Thanked 40 Times in 36 Posts

    Having a problem with @proxy script

    Hi,

    When submitting new proxies toProxy Central - Web Proxy Directory
    I get this error message "Warning: fopen(/home/proxysam/etc/geoip/GeoIP.dat) [function.fopen]: failed to open stream: Permission denied in /home/granahub/public_html/proxycentral.org/geoip.inc on line 314
    Can not open /home/proxysam/etc/geoip/GeoIP.dat"

    I haven't changed anything, and updated GeoIP.dat, still the problem (2 days old) persists.

    Any idea?

    Thanks!
    Scary Games for everyone!
    Real Haunted Places In America
    Most Haunted Places In England
    Most Haunted Castles in Scotland, Ireland and Wales

  2. #2
    Habaku's Avatar
    Habaku is online now Newbie Net Builder
    Join Date
    May 2009
    Posts
    412
    Thanks
    65
    Thanked 40 Times in 36 Posts
    I figured it out. Copied the GeoIP stuff to the same CPanel account under which the proxy lists run, and buff ... it works again.

    (I did work well for months, but there might has been a CPanel update which stopped the cross CPanel account GeoIP config from working)
    Scary Games for everyone!
    Real Haunted Places In America
    Most Haunted Places In England
    Most Haunted Castles in Scotland, Ireland and Wales

  3. #3
    UncleP's Avatar
    UncleP is online now The perfect face for radio
    Join Date
    Nov 2009
    Location
    Blighty
    Posts
    162
    Thanks
    8
    Thanked 64 Times in 42 Posts
    You get the error because the complete path name is in the 'submit-proxy.php' file. However you can remove the path so it just has the GeoIP.dat file listed, it works on any cpanel account and doesn't need to be changed when moving hosting then. There are 5 instances like this:
    Code:
         //geoip
                                            include("geoip.inc");
                                            $gi = geoip_open("/home/granahub/public_html/proxycentral.org/GeoIP.dat",GEOIP_STANDARD);
                                            $country = geoip_country_name_by_addr($gi, $websiteip);
    They need changing to:
    Code:
         //geoip
                                            include("geoip.inc");
                                            $gi = geoip_open("GeoIP.dat",GEOIP_STANDARD);
                                            $country = geoip_country_name_by_addr($gi, $websiteip);
    Then you can have the GeoIP file in public_html. Good idea to update the file from maxmind too, the supplied one is a year old now. It will help stop the blank country ID's as a lot have changed in the last 12 months.
    I Need Your New Proxies For My Lists, Please Give Generously:
    More Proxies & TopProxyList - Now With https (SSL) Support!

  4. Thanked by:

    Habaku (17 December, 2010)

  5. #4
    Habaku's Avatar
    Habaku is online now Newbie Net Builder
    Join Date
    May 2009
    Posts
    412
    Thanks
    65
    Thanked 40 Times in 36 Posts
    Of course did I update the GeoIPdat as well, and thanks for your valuable advice
    Scary Games for everyone!
    Real Haunted Places In America
    Most Haunted Places In England
    Most Haunted Castles in Scotland, Ireland and Wales

Similar Threads

  1. Replies: 0
    Last Post: 25 March, 2011, 01:39 AM
  2. Atproxy Script Error and Adsense Problem
    By ProxySites.ca in forum Proxy List Support Forum
    Replies: 3
    Last Post: 14 April, 2010, 14:01 PM
  3. Replies: 0
    Last Post: 8 March, 2010, 06:20 AM
  4. Replies: 18
    Last Post: 1 October, 2009, 01:51 AM
  5. A new problem with the script
    By davesnake in forum Translation Script Support
    Replies: 5
    Last Post: 20 May, 2009, 08:57 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •