Alternity Posted February 11, 2007 Share Posted February 11, 2007 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. Quote Link to comment Share on other sites More sharing options...
trq Posted February 11, 2007 Share Posted February 11, 2007 Can we see the script your trying to run? Quote Link to comment Share on other sites More sharing options...
Alternity Posted February 11, 2007 Author Share Posted February 11, 2007 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 Quote Link to comment Share on other sites More sharing options...
trq Posted February 11, 2007 Share Posted February 11, 2007 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.