Author |
|
mrainey
Joined: 30 Aug 2009 Posts: 4
|
Posted: Sun 30 Aug '09 13:59 Post subject: Apache having problems finding the php folder |
|
|
When i installed the server software i asked it to install to c:\server\apache and the php folder was c:\server\php all the instructions were followed but when i had to restart the server i got an error it said php startup unable to load dynamic libary "C:php5php_gd2.dll" there a few afer this but it is looking in the wrong place should be looking in c:\server\php not C:\php
any ideas would be great |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sun 30 Aug '09 17:37 Post subject: |
|
|
You need to correct extension_dir in your php.ini
e.g.
Code: |
extension_dir = "C:/server/php/ext"
|
|
|
Back to top |
|
mrainey
Joined: 30 Aug 2009 Posts: 4
|
Posted: Sun 30 Aug '09 19:33 Post subject: |
|
|
James Blond wrote: | You need to correct extension_dir in your php.ini
e.g.
Code: |
extension_dir = "C:/server/php/ext"
|
|
Its is alreay showing this on my php.ini file but is still lokking for C:/php/ext |
|
Back to top |
|
paranid
Joined: 02 Mar 2009 Posts: 11
|
Posted: Sun 30 Aug '09 21:51 Post subject: Re: Apache having problems finding the php folder |
|
|
mrainey wrote: | unable to load dynamic libary C:php5php_gd2.dll |
It looks like your Apache is loading a default PHP5 settings/wrong php.ini
check PHPIniDir directive in yout httpd.conf eg. PHPIniDir "C:/server/php" (folder with your php.ini)
check Loaded Configuration File in PHPInfo(); test script if it really loads your php.ini
(unable to load dynamic libary... sometimes happen when you do not have your PHP folder "C:\server\php" in OS PATH) |
|
Back to top |
|
mrainey
Joined: 30 Aug 2009 Posts: 4
|
Posted: Sun 30 Aug '09 23:12 Post subject: Re: Apache having problems finding the php folder |
|
|
paranid wrote: | mrainey wrote: | unable to load dynamic libary C:php5php_gd2.dll |
It looks like your Apache is loading a default PHP5 settings/wrong php.ini
check PHPIniDir directive in yout httpd.conf eg. PHPIniDir "C:/server/php" (folder with your php.ini)
check Loaded Configuration File in PHPInfo(); test script if it really loads your php.ini
(unable to load dynamic libary... sometimes happen when you do not have your PHP folder "C:\server\php" in OS PATH) |
right i re-installed it etc and so forth and did what u have said but instead put it on a free drive called F:\ but getting the same error still looking for C:\php instead of F:\php i've done everything i can I need some serious help |
|
Back to top |
|
mrainey
Joined: 30 Aug 2009 Posts: 4
|
Posted: Mon 31 Aug '09 17:01 Post subject: Apache having problems finding the php folder |
|
|
my apache server can see the Php file in F:\php\ as i changed the file name and the server didn't load when i put it back got errors like
php startup: unable to load dynamic libary "C;\php5\php_gd2.dll the specifided module
i have found the problem it can't see php file but there isn't one so no idea why it is looking for it also the files it wants are in the F:\php\ext file but it won't see it |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 31 Aug '09 17:30 Post subject: |
|
|
Maybe the gd2 module is the wrong version. I had that often in earlier PHP versions. Which PHP version do you use? |
|
Back to top |
|