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

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

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

Post 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???
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

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

Post 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.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

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

Post 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:
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

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

Post by Benjamin »

Comment it out, see if the warning goes away and if gd still works.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

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

Post 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.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

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

Post 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 :)
Post Reply