Extensions are not loading (IIS, PHP4 and 5)

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
houdini987
Forum Newbie
Posts: 3
Joined: Fri Jun 29, 2007 5:08 pm

Extensions are not loading (IIS, PHP4 and 5)

Post by houdini987 »

Hello, I hope someone can help me here because I'm running out of ideas. I'm just getting started with learning how to configure a PHP install on a virtual private server. The actual install seems to have gone fine (i.e. php code appears to be running okay via a browser), but I can't seem to get my GD2 extensions running.

I've uncommented the proper area in php.ini, made sure the extension_dir variable was properly set, set the permissions so "everyone" can read and execute "php_gd2.dll", but the app I need it for is still not telling me it's loaded (a program called SimpleViewer, which has an "emergency" mode that can tell you which extensions are running).

At this point I'm convinced it's simply not finding the extension folder, but I don't know what else to do. I've tried copying the file to C:\windows, the root php install folder, and C:\windows\system (each time setting the permissions), but still no dice. I'm not getting error messages when I try to actually use whatever GD function SimpleViewer needs, it simply says that "Images of type/jpeg are not supported."

I'm quite confused at this point. Can anyone help? Thanks!
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

try

Code: Select all

<?php echo 'ini: ', get_cfg_var('cfg_file_path'); ?>
it tells you wether you have edited the right php.ini file.
It may be necessary to restart the webserver after changing settings in the php.ini
houdini987
Forum Newbie
Posts: 3
Joined: Fri Jun 29, 2007 5:08 pm

Can't get GD extensions installed

Post by houdini987 »

Thanks so much for the reply. I stuck that command inside the .php code (you can see it here, at least until I get this fixed):
http://www.kellstarpainting.com/tabid/999/Default.aspx

As you can see, the "ini:" is showing, but the path is not - I wonder if this is my problem? (!) But why then would the rest of the code in this file work?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Re: Can't get GD extensions installed

Post by volka »

houdini987 wrote:As you can see, the "ini:" is showing, but the path is not - I wonder if this is my problem? (!) But why then would the rest of the code in this file work?
Then no ini file at all was used.
Take a look at http://de2.php.net/ini and place the php.ini at some place that is mentioned under php.ini is searched in these locations (in order):
houdini987
Forum Newbie
Posts: 3
Joined: Fri Jun 29, 2007 5:08 pm

.ini file

Post by houdini987 »

So I did some tweaking and managed to get the proper php.ini file loaded.

I know this because I did phpinfo() within a console directly on the server shows:

Configuration File (php.ini) Path C:\WINDOWS
Loaded Configuration File C:\Inetpub\wwwroot\php\php.ini

But now all of my php pages are showing a "this page cannot be displayed (404)" error. I made sure the entire C:\Inetpub\wwwroot\php folder and files had read/execute rights for "everyone". I also enabled "web sharing" for C:\Inetpub\wwwroot\php but it hasn't helped. It worked before, when I didn't have an .ini specified.

Am I missing something really simple?

This doesn't have anything to do with running a 32 bit app on a 64-bit 2003 machine does it?

Thanks again for your help!
Post Reply