Forum Moderators: coopster

Message Too Old, No Replies

PHP Error spam, GeoIP?

PHP attempts to load a dynamic library that is not installed.

         

Chlikikijleelgus

7:30 am on Jun 9, 2011 (gmt 0)

10+ Year Member



Hello all, I have been having a problem for over a week now, that fills every directory of my website containing a PHP file with an errorlog. (I know that part is normal.) This errorlog grows to be massive, adding a new entry every time a .PHP is called.

This poses a problem, not only because I strive to have no errors, but this is leased space on a webhost, eating up storage space, Currently, the errorlog in the primary directory is 10MB

This is the error the floods the log:

[09-Jun-2011 02:21:05] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/geoip.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20060613/geoip.so: cannot open shared object file: No such file or directory in Unknown on line 0


My PHP experience tells me that it is looking for a GeoIP library, but I haven't the slightest idea why.

After a search through everything on the webserver, the only thing I found that even mentioned GeoIP was the MyBB forums installed, but it uses a function that checks to see if it is installed first.

After consulting google countless times, and finding threads that merely said it was the host's fault, I had one of my associates contact them. The host replied saying that it was something we had installed.

Any help at this point would be appreciated.
Thanks,
Chlikikijleelgus

lostdreamer

2:30 pm on Jun 9, 2011 (gmt 0)

10+ Year Member



It looks to me that you have geoip.so set up in PHP.ini but you dont have the file on the server.

This tells your server to try and load that library (which doesnt exist).

Send your webhost an email about this, I dont think you have the necessary permissions to fix this yourself.

Also: You probably have some file that is included by all pages on your site (probably a settings / config.php) which sets you up with error logging in the current folder, something like this:

ini_set('log_errors', 1);
ini_set('error_log', dirname(__FILE__) . '/error_log.txt');

Replace this with:


ini_set('log_errors', 0);


And you wont get the logs anymore...

LostDreamer

giateno

5:18 pm on Jun 9, 2011 (gmt 0)

10+ Year Member



Probably you have something like this in your httpd.conf file:

LoadModule '/usr/local/lib/php/extensions/no-debug-non-zts-20060613/geoip.so'

whereas the file geoip.so is not present there. So, you have to correct the httpd.conf with the proper path to the file, or comment that line and you won't get the error anymore.
I think this is far better than removing error log file, because the error would happen anyway, even if not logged.