Jump to content

Module's are already loaded?


Alternity

Recommended Posts

Recently I was trying to run a PHP script from the CLI and when I started php I got this error:

PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
PHP Warning:  Module 'imap' already loaded in Unknown on line 0
PHP Warning:  Module 'ldap' already loaded in Unknown on line 0
PHP Warning:  Module 'mhash' already loaded in Unknown on line 0
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
PHP Warning:  Module 'odbc' already loaded in Unknown on line 0

The script loads after that, but quickly exits saying that it has exausted the avaiable memory.  I know I can expand that in the php ini file, but I'd prefer not to and previously this script would run just fine.  I'm wondering if anyone has any idea of how to fix this?  I run a webserver, and webpages and such load fine.

Link to comment
Share on other sites

Sorry, I didn't make it clear.  Even if I just load up PHP from the CLI without loading a script when I type php it gives me this response.

 

example

dedicatedserver:~# php
PHP Warning:  Module 'curl' already loaded in Unknown on line 0
PHP Warning:  Module 'gd' already loaded in Unknown on line 0
PHP Warning:  Module 'imap' already loaded in Unknown on line 0
PHP Warning:  Module 'ldap' already loaded in Unknown on line 0
PHP Warning:  Module 'mhash' already loaded in Unknown on line 0
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0
PHP Warning:  Module 'odbc' already loaded in Unknown on line 0

Link to comment
Share on other sites

Just a guess but I would say you have these modules compiled in to php then on top of that they are uncommented in your php.ini which will try and load them dynamically. Try commenting them out in your php.ini file and see what your results are.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.