Results 1 to 4 of 4

Thread: Having a problem with @proxy script

  1. #1
    Habaku's Avatar
    Habaku is offline Newbie Net Builder
    Join Date
    May 2009
    Posts
    448
    Thanks
    97
    Thanked 48 Times in 41 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!

  2. #2
    Habaku's Avatar
    Habaku is offline Newbie Net Builder
    Join Date
    May 2009
    Posts
    448
    Thanks
    97
    Thanked 48 Times in 41 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)

  3. #3
    UncleP's Avatar
    UncleP is offline The perfect face for radio
    Join Date
    Nov 2009
    Location
    Blighty
    Posts
    218
    Thanks
    20
    Thanked 91 Times in 61 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.
    If I can't be a good example, I'll just have to be a terrible warning...

  4. Thanked by:

    Habaku (17 December, 2010)

  5. #4
    Habaku's Avatar
    Habaku is offline Newbie Net Builder
    Join Date
    May 2009
    Posts
    448
    Thanks
    97
    Thanked 48 Times in 41 Posts
    Of course did I update the GeoIPdat as well, and thanks for your valuable advice

Similar Threads

  1. 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
  2. Replies: 18
    Last Post: 1 October, 2009, 01:51 AM
  3. 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
  •