Results 1 to 4 of 4

Thread: Having a problem with @proxy script

Hybrid View

  1. #1

    Having a problem with @proxy script


    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/ 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?


  2. #2
    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
    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:
                                            $gi = geoip_open("/home/granahub/public_html/",GEOIP_STANDARD);
                                            $country = geoip_country_name_by_addr($gi, $websiteip);
    They need changing to:
                                            $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. #4
    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 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


Posting Permissions

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