Page 1 of 1

PHP Warning: Module 'gd' already loaded in Unknown on line

Posted: Wed Mar 25, 2009 11:11 am
by alex.barylski
I am getting the following error:
PHP Warning: Module 'gd' already loaded in Unknown on line 0
Now sure how or what is causing it -- I need the .so extension listed in php.ini as my application uses gd as well as several others.

---

I think this might have something to do with Apache apparently going down an restarting itself every so often -- doesn't seem to be a consistent time though.

I hope by fixing this error Apache stays running as expected -- any ideas???

Re: PHP Warning: Module 'gd' already loaded in Unknown on line

Posted: Wed Mar 25, 2009 2:38 pm
by Benjamin
A php startup error more than likely doesn't have anything to do with apache crashing. Best thing to do is go through the apache configuration files and find all the places loading modules. I would guess it's being loaded twice somehow.

Re: PHP Warning: Module 'gd' already loaded in Unknown on line

Posted: Thu Mar 26, 2009 9:13 am
by alex.barylski
I've been over the apache config files several times now and I am certain the .so are not being loaded twice -- which is why i'm so confused. :drunk:

Re: PHP Warning: Module 'gd' already loaded in Unknown on line

Posted: Thu Mar 26, 2009 1:27 pm
by Benjamin
Comment it out, see if the warning goes away and if gd still works.

Re: PHP Warning: Module 'gd' already loaded in Unknown on line

Posted: Fri Mar 27, 2009 1:20 am
by Chris Corbyn
It's actually php.ini you need to edit. More than likely GD has been compiled in, rather than as a shared module and there's still a line trying to load a shared object for it.

Re: PHP Warning: Module 'gd' already loaded in Unknown on line

Posted: Fri Mar 27, 2009 8:51 am
by alex.barylski
It's actually php.ini you need to edit. More than likely GD has been compiled in, rather than as a shared module and there's still a line trying to load a shared object for it.
Ahhh...maybe...that makes sense...I'll give a whirl and see what happens, thanks guys :)