Link to home
Start Free TrialLog in
Avatar of bobconti
bobcontiFlag for United States of America

asked on

Need lib_curl.dll file

Hi:
I am having an issues getting curl to run on my web server. I have php installed and working however when I test my google-checkout it does not work,  have run the phpinfo() and curl is not there. I have checked so many sites and have found most point to the lib_curl.dll not present in the php folder and in the extensions in the php.ini file. Have spent the last three hours plus trying to find the lib_curl.dll file. I have the new libcurl.dll but verything I read says to use the lib_curll.dll. Does anyone have this file and can I please get a copy of it. Or any help about getting curl to work with my windows 2003 server on iis will greatly be appreciated as well. Thanks in advance

Bob
SOLUTION
Avatar of Bernard Savonet
Bernard Savonet
Flag of France image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bobconti

ASKER

Hi Fido:
I did use the zip file, have downloaded and examined a number of the zip files and none of them have the lib_curl.dll. What do you recommend I download?? Which version and which file name. I have downloaded files:
curl-7.19.6.tar.gz (gpg)
curl-7.19.6.tar.bz2 (gpg) (mirror) (metalink)
curl-7.19.6.zip (gpg) (mirror) (metalink)
curl-7.19.6.tar.lzma
and a number of 7.15.5 files as well. I am having an issue opening the tar files. I'll give it another go. Thanks much and I'll keep you posted.

Bob
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I wouyld think that the dll is already on your machine... its use needs to be enabled thru php.ini THEN IIS restarted
Fibo:
I have searched my sevrer 3 times to try and find lib_curl.dll and I don't have it. I have libcurl.dll but I have done everything I have found on install papers and no results. I have so many different curl downloads that I have tried but nothing I have downloaded has the lib_curl.dll. I also have three different flavors of php none have the dll file. There or only what 400 different versions of how to install not only php but curl as well and all of the ones I have read about have a different way to make it work. I would just really like to have a copy of lib_curl.dll to find out if I can make it work with that. Thanks for your suggestions but so far nothing.

Also tops1 - thanks for the links but have been there as well with no results. Thanks

Bob
What seems strange is that curl is nothing special and a standard install of php would probably get the dll as well, and should be needed only the uncomment of the correct line.

Did you install php by itself, or was this part of some package?
Fibo:
I started with the msi install, read about the install, followed the instruction. When I ran phpinfo() no curl. Researched and tried everything I read about. Nothing. Then uninstalled and ran the starnard non msi install and followed all the manual instruction. I have attached the php.ini file for you to take a look at. Maybe I'm missing something. I'll attach anything you wawnt to look at, just let me know. Thanks Fibo

Bob
phpini.txt
When you browse the phpinfo page it should say loaded configuration file towards the top, can you confirm that the system is looking at the correct php.ini (the one you're editing). I've seen this before where the changes that are being made in the php.ini are the not being done in the one that's being used by the system.
Another thing to check is that the PHP folder and the php\ext folder are in the system path. Mine are stored in:

C:\PHP\
and
C:\PHP\ext

I've enabled curl and not had to download any curl packages or dll's. I'm using PHP 5.2.9. If your folders aren't in the path try adding them and then restarting IIS. To point out I've only had to uncomment the line:

extension=php_curl.dll
You currently have at line 657
extension=libcurl.dll
extension=php_bz2.dll
extension=php_curl.dll
extension=php_dba.dll
extension=msql.dll

Since line 659 seems fine, I would probably comment out line 657 itself, then restart the computer (just to be sure no dll is unduly loaded)
;extension=libcurl.dll
Fibo & Tops1:

Thanks to you both for helping. I have commented out line 657 and made changes to the environment variables. I have to make some changes on the shopping cart pages as we broke it. I'm heading to work so I'll work on it tonoght when I get home. Thanks again talk to you this evening

Bob
Fibo:

I have attached a small text file ( settitngs in phpini) hat shows the settings for the path & directories and the Dynamic Extensions that are setup. Are they right?? Also I have include the whole php.ini file. I have repair the install triple check everything and I still don't have curl when I run the phpinfo(). Also I noticed on the results of that run the extension_dir shows ./  when I have it setup as shown in the file attached. Is this right??? Please let me know. As always thanks for your help.

Bob
phpini.txt
SettingsInPhp.ini.txt
Could you paste your phpinfo() ?

As susual, a problem is to be sure that you are working on the correct php.ini, while there might be 2 or 3 instances of this file on your machine.
Line 536 of php.ini says:
extension_dir= ",;c:\program files\php\ext"

I would find more coherent
extension_dir= ".;c:\program files\php\ext"
I've seen a problem in the past where PHP causes issues if the folder it's contained in has spaces in between, in your case "program files" has a space. I'm not saying this is the cause of the issue but as I've seen it a number of times I've always installed to folders that contain no spaces. This may have been a problem in the past and no longer is but it might be worth changing the location as a test.
tops1 remark is right. At this stage, no option should remain unexplored.

you might prefer using the "8.3" name of "Program Files"
This is usually PROGRA~1... but don't take the risk:
- open a dos box
- type the following command:
dir /x \pr*
this will list all the files/ directories in the \ diectory, for which the name starts with pr (case does not matter on windows), and will list also the short name.

You can the use this "short name" anywhere you would place the "long name"... except that you hava no problems with space or other characters
------------------------
Stupid question: acces rights to php.ini and php/ext?
Morning fibo, tops1:

I'm at work but will diffently do your suggestions tonight when I get home. This makes a lot of sense to me. I'll post the results tonight after making these chanes. Thanks to you both

Bob
Hi fibo:

I have change to the short name for all references to program files. Checked the permissions and authenticated users have list, read execute. Should the folder be shared?????? I'm going to test after reboot and I'll let you know.

Bob
Hi again fibo:
OK no difference. I have attached section of the results of the phpinfo() run. I have highlighted items I think are an issue. I have changed evrything to c:\progra~1\php  etc. Shouldn't the settings I change show up here. in the config results. The areas I highlighted don't show my configuration. Isn't this a big problem. Where are the areas I need to change. I'm lost as where to look. I have also sent a file of my environment variables settings. Please let me know what you think.
Fibo:
Hit wrong button. Files attached
PHP-Version-5.doc
EVshot.doc
I've checked your php version document against my own install and it's pretty much the same. I assume you're editing the php.ini file located at:

C:\Program Files\PHP\php.ini

What I would say to check from here is there should be an environments section in the phpinfo page and under that the path. Make sure the path to the php_curl.dll, libeay32.dll and ssleay32.dll are all in the path displayed there.

As another simple test copy the php.ini file you're working on into the C:\Windows folder and perform an iisreset to see if that changes anything.
1 - Seems that your EVshot and phpinfo are dealing with 2 different worlds.  Seems that your "path" is somewhat broken (or may be mine is just too much overcrowded). Most noteably, on my Vista machine among the many things I have in Path, at the beginning there is
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;

Can you open a dos box and simply type
path
I suggest take a copy of this path "just in case" you need it later, eg
path > mypath.txt
will kep a copy in the file mypath.txt

2 - Seems that you have php running from C:\Program Files\PHP\ but that at some earlier stage it ran from c:\php5\, more precisely your include path needs to be confirmed

3 - can you go to windows and check which php* files you have there?

4 - I see a complete "configure command". Did you recompile your php?

5 - Edit your usual php.ini, and change the line
memory_limit = 128M
to
memory_limit = 256M
or add the line if there is none.
When running your phpinfo is there any change at the 'memory_limit' line? Is it  still 128M 128M ?
Fibo & tops1

Sorry for delay, busy last night and company tonight. I'll post new results tomorrow of what I have done. Have followed both of your suggestions. Different results but still no curl. Ponder this for a moment. What if I blow away everything, clean everything out of the registry and start over with a clean install of however you two think we need. Just thinking out load since we keep hitting the wall with everything we have done. I'll be in touch again tomorrow night. Thanks guys I really appreciate your help.

Bob
That would be my approach bobconti. I'd remove everything to do with PHP and re-install it (myself personally, I would install it into C:\PHP and 'not' use the installer package).
Morning Guys:
Ok I have uninstalled php . Cleaned the registry and reinstalled php to c:\php. I have setup the ini file and copied the needed files to the windows folder and the system32 folder. Attached is the results of the test. Still no curl. Reinstalled the curl files to c:\curl. Can you please take a look and see if I config correct and what I may have missed. Soory It's taken me so long to get back you. Have out of state company and havn't had a lot time to get back to this. Thanks so much.
Bob

Copy-of-php.txt
OK.
So currently,
- extension dir at line 816 is
extension_dir = ".;c:\php\ext"

When reading it like this, I relaise that this si probablt wrong (even though it looked so great... but although it would be fine for an include paths, here it looks strange for "a" directory)... so I would probably rewrite it as
extension_dir = "c:\php\ext"

- line 954 currently says
;extension=php_curl.dll

It must be uncommented to
extension=php_curl.dll

- I am quite puzzled at "Reinstalled the curl files to c:\curl". Not sure this is needed, or if it doesn not break something.

Action list: change lines 816 & 954, close your web server, restart it.
Hi Fibo:
I have attached the ini file after making the changes. Also have attached the error messagae I'm getting when clicking the googlecheck button now. Also can you please give me the correct way to access the test of the ini file. I have the attached file copied to the awesomescrapper - testphp folder. When I use www.awesomescrapper.com/testphp/phpinfo.php the file never changes after I make changes. I even close and reset the browser, clear the temp files and of course reset the server in iis. Am I doing this right?? Thanks so much.
Bob
phpini.txt
error.txt
phpinfo.txt
1 - php ini: at line 790 I had not noticed your path.

It currently says
; Windows: "\path1;\path2"
include_path = "c:\php\includes"
include_path = "c:\php\ext"
include_path = "c:\php"
;
; PHP's default setting for include_path is ".;/path/to/php/pear"
; http://php.net/include-path
include_path = "C:\php\pear"

I suggest you change for
; Windows: "\path1;\path2"
;include_path = "c:\php\includes"
;include_path = "c:\php\ext"
;include_path = "c:\php"
;
; PHP's default setting for include_path is ".;/path/to/php/pear"
; http://php.net/include-path
include_path = ".;c:\php\includes;c:\php\ext\;c:\php;C:\php\pear"

2 - Your phpinfo file is fine. What we need is the result of running that into your browser : it will display lots of information on your php configureation.
... or is it the result you get? if so, you need to tell your apache server that it should handle php...
Fibo:
I made the changes. I'm running explorer 7 not apache. I've stop and started the web site. When I go to the web cart I know get the attached warning message. Try thid link and see if you get the info page.
  http://www.awesomescrapper.com/testphp/phpinfo.php
Let me know what you think still no curl. Thanks so much for all your help
Bob

WarningMessage.txt
What version of PHP are you using? PHP 5.2 or PHP 5.3?

Also are you using ISAPI or CGI for PHP? If you want to try using isapi (in-case you've not used this before) let me know and I'll tell you how I set it up on my server.

By the way, the include ane extension paths 'should' read ".;C:\php\ext" etc. so it searches in the current folder before others. Otherwise you'll get the warning message you've included in your last post.
Cannot get the phpinfo.
@tops1: thx for correcting the error I made. seems it should correct the last error found.
Good Morning Guys:
Tops1 - Version 5.2.6 and ISAPI, I have made the changes and the warning error did disappear. Also reran the phpinfo for you both to view. Getting a curl error when clicking the checkout buttom, but we know that. Also please look at the environment varables section to double check my entries.
http://www.awesomescrapper.com/Shop/AwesomeScrapper_Shopping_Cart-server/phpinfo.php. Thanks to you both
Bob
phpinfo--.txt
from your phpinfo:

1 --
Path  c:\php;c:\PHP\ext;c:\windows\system32;c:\windows\system32\libeay.dll;c:\windows\system32\php_curl.dll;c:\windows\system32\ssleay.dll  

seems strange, since there are dll files where should be only directories.

Is there a file c:\windows\system32\php_curl.dll ?

2 --
Configuration File (php.ini) Path  C:\WINDOWS  
Loaded Configuration File  C:\PHP\php.ini  

Can you post the current php\php.ini?

Do you have a php.ini in c:\windows? if yes, can you post it?

Can
In a command prompt please type:

php -m

And then paste the output here, this should show if PHP is seeing curl as a module or not. I'm a little busy at work at the moment but when I get time later I'll explain how I setup PHP in isapi mode and you can doubel check if there's any differences between how you're doing it to how I do it.
Fibo, tops1:
Thanks guys. Im at work as well.
Fibo: will make change and post current files etc as soon as I can.
tops1: will ruin command and post the output.
Thanks much guys

Bob
tops1, fibo:

Tops1 - I have attached a screen shot of the results of the php -m command. Have a problem with the curl.dll. I have checked and the the dll files is in c:\php\ext folder. Thanks

Bob
php-mResults.doc
fibo, tops1:

Fibo: I have attached the php.ini files you wanted to look at. I belive I may be getting confused on where in the ini files settings go. Where is the c:windows configuration set at? I set the c:\php\php.ini setting. So if you and tops1 can point me in the right direction I would appreciate it. Thanks much

bob
windowsphpini-txt.txt
phpini.txt
Fibo, Bobconti:

"2 --
Configuration File (php.ini) Path  C:\WINDOWS  
Loaded Configuration File  C:\PHP\php.ini "

This is actually fine and nothing to be worried about. As long as it shows a loaded configuration file you're alright. There's only issues if the loaded configuration file is blank.

Anyway this is how I install PHP using ISAPI on a Windows 2003 (IIS6) box:

1) Download the latest PHJP 5.2.x version, currently 5.2.11, the non-thread safe zip package direct link is:

http://uk3.php.net/get/php-5.2.11-nts-Win32.zip/from/a/mirror

2) Extract it to C:\PHP (but seen as you're working with a number of different versions it might be worthwhile extracting to C:\PHP5)
3) Add the following as a web service extension in IIS:

Extension Name: PHP5
Required file: C:\PHP\php5isapi.dll (or C:\PHP5\php5isapi.dll)

4) Modify the PATH to include the new PHP and php\ext locations:

;C:\PHP;C:\PHP\ext (or C:\PHP5;C:\PHP5\ext)

5) Modify a php.ini in C:\PHP, I'm going to post my php.ini so you've got the same just to test in-case you need to.

6) Perform an IIS reset and browse to a phpinfo page.

7) Ensure that the loaded configuration file shows "C:\PHP\php.ini" if it doesn't then move the php.ini file to C:\Windows and then do another IIS reset
php.ini.txt
Hi Bob

1 - I have checked both php.ini, they are the same. At least we know that we do not have this problem.
2 - Your php -m output puzzles me, 'cause I don't understand where this ".;c:\php\ext\php_curl.dll" comes from. Only
explanation is line 816 where I told you to use
extension_dir = ".;c:\php\ext"
... telling you to use a path for a directory... so it is probably
extension_dir = "c:\php\ext"
(change in php.ini, then copy it into windows, then restart web server)

I made a mistake in my walkthrough above, you actually need to download this package:

http://uk3.php.net/get/php-5.2.11-Win32.zip/from/a/mirror
Morning Guys:
I'll be heading to work in a few minutes but will try it again when I get home. I really appreciated your patience. Have a good day!
Bob
I also missed the parts about adding the script mappings in the website in question under the home directory tab -> configuration. If you need to know exactly what to put let me know.
Hi Guys:
Sorry I didn't get this posted yesterday. I followed both of your suggestions with no results. As a matter of fact I can't access the cart or the phpinfo which means php is not running. I have attached the current ini file also a word file that shows the environment settings, the php5 folder and the web extensions settings in iis. Also the php -m command results. Please look at them all and let me know what you think. As always I thank you.
Bob
Currentphpini.txt
Settings.doc
Results.doc
Firstly your php.ini has the curl module commented out. Secondly have you added the correct script mappings in the website configuration? So the site in question is looking at the correct PHP isapi dll?

Un-comment the curl module then go to the C:\php5 folder then run the php -m command again to see if the curl module is loaded.
Lines 490-492 currently say
; Directory in which the loadable extensions (modules) reside.
extension_dir = ".;c:\php5"
extension_dir = ".;c:\php5\ext"

I would believe these 3 lines MUST be replaced by
; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\php5"

since we are dealing with a directory, not a path (same than the error I asked you to correct for line wichi was 816

DID YOU CHANGE THE PHP.INI? This one seems different from previous versions?
Morning Guys:
I got the curl modules loaded and it shows up in the php -m command. I also changed the extension_dir as suggested and uncommented the extention for curl. As mentioned in prior I did all suggestions presented which included install the new php which gave me a ini, changed that to what you looked at in my last post. Still can't get to cart, I get a 404 error. Tops1 please send info on the web configuration script and where it goes. Thanks much guys I'm really sorry for being such a pain.
Bob
Morning Bob.

Please post your phpinfo and php.ini

NOTE: your 2 last posts suggest that we have lost all what had been done before, so we need to restart, hence the query for these files.

It seems that your IIS runs 3 php... maybe you could just keep the one you installed last and stop the others?
The script mappings can be added like this:

Go to the site in question in IIS manager and right click it -> properties. Click on the home directory tab then configuration. The default tab should be mappings. Scroll down and see if there's a .PHP extension. If not click Add and point the executable to "C:\PHP\php5isapi.dll" and leave the Verbs as "All verbs" for the moment. Everything else can stay as defaults and click ok. This should allow IIS to process the new PHP you've got up and running with the curl module enabled.
Tops1

Add dll extention to web site with the "C:\PHP\php5isapi.dll". Still getting 404 erroe. I have noticed that all the php files have the generic icon and not the php icon, which to me means no association to the program. Ideas????

Bob

Tops1:

Here is a screen shot of what I mean about files not being recognized .

Bob
Icons.doc
Impossible to read your file. error message is

The file you attempted to access does not exist or cannot be accessed.
Hi fibo, tops1
Ok I got my cart back and can run the phpinfo. I have attached the results. This ini is the older version. Made the changes as before. When I click the checkout button now I get a blank page, no errors just blank. Getting closer no errors. Please let me know. Thanks so much
Bob
phpinfo--.txt
Guys
The web page view of the php ini
Bob
phpinfo--.doc
OK.
So now the php ini that counts is the one in c:\php5

1 - Can you post it here as it was at your last post? Can you also capture the content of c:\php5\ext ?

2 - We are going to suggest you changes to this file. Please wait for our suggestions, so that they are relevant.

3 - Then made our suggested changes to this file, then place an extra copy of it in c:\windows.
Hi Fibo:
I have attached the files for you. Thanks much

Bob
php-ini.txt
php-ext.doc
OK. Now it seems everything is coherent, and that we have a stable starting point to build on.

One minor change I suggest:
- Line 522 in php.ini from
include_path = "C:\php5\pear"
to
include_path = ".;C:\php5\pear"
so that files in the current directory are included too

Once  this change is done, as usual place a copy of the file in \windows and restart IIS

Note also that since you are running php5, Mysql and mysqli are not enabled by default... if you plan to use them you should include after line 656  the following lines:

extension=php_mysql.dll
extension=php_mysqli.dll
Morning Fibo:
I have done your suggestion above. Still blank when doing checkout. I also have been going over all our posts and the only thing I have found that is not present is the lib_curl.dll. I have done a search on the server and I have 0 results for the lib_curl.dll. When we started I had downloaded dll files but they are all libcurl.dll. Have to go to work for a bit but will do anything you suggest as soon as I get back. Thanks much
Bob
>>I have done a search on the server and I have 0 results for the lib_curl.dll.

why would you like to search for lib_curl while line 656 says
extension=php_curl.dll

and that the display you posted for c:\php5\ext shows it is there...

just in case, check for the access right of c:\php5\ext and its files
Fibo:
Thought we needed that lib file. Have set access for on c:\php5\ext. Get 404 error message. What's next??? Thanks
Bob
Fibo:
Error is 500 not error 404
Bob
Bob,
Cna you paste the complete error message? There is probably some clue in the message, error 500 can have lots of cause and only the error message might help.

Also, for which page did you get the message?
Fib;
 attached is the shot of error message and address line to the page.
Bob
Error500.doc
Sorry, I cannot read your doc file. Did you save it with your usual options?
Got it. MSword was playing some tricks!
What is the adress of the page you were browsinf (it does not show in the screen capture)
1 - Seems the include path is currently
.,C:\php5\pear
while it should be
.;C:\php5\pear

2 - As far as I can judge from page
http://www.awesomescrapper.com/shop/AwesomeScrapper_Shopping_Cart-server/cart.php
you have a problem with google checkout.

Do you think this is curl-related?
Fibo:
Made the change to include path. Not sure if this is curl-related. I'll look at the checkout info.
Bob
I'm guessing that page you displayed above has code that doesn't begin in <?php therefore change the line in your php.ini that reads:

short_open_tag = Off

to

short_open_tag = On

Then restart IIS
If the change suggested by tops1 works and solve the problem... I would suggest that you place on your action-list the need to reverse it, of course after having replaced all short tags <?  ?> by long tags <?php  ?>
Hi Guys:
Made the suggested change. Same result. I think the problem now is the setup on the googlecheck. I'm looking into that. When I get that straightned out I'll let you know if it fixed the problem. I'll be in touch soon. Thanks to you both.
Bob
You will find attached a script to test if curl is working or not, which is your initial problem.

Seems that getting the extensions to work under windows is a general problem, as is evidenced at page
http://www.php.net/manual/en/install.pecl.windows.php
by the comment in which you will find some general indications

<<soazine at erols dot com
30-Jul-2007 01:16
When using PHP 5.2.0 within WinXP via Wampserver ( http://www.en.wampserver.com/download.php ) you will find that just simply adding a PECL-based DLL file into php.ini is not enough.  Steps you will have to do to ensure that your PECL extension(s) will be recognized are as follows:

1) Have the DLL referenced within PHP's php.ini ("extension=[php_name-of-PECL-extension].dll")
2) Have the DLL referenced within Windows' php.ini
3) Have the DLL within wampserver.ini

If any of these steps are not included, alongside the obvious web services restart, then PECL is not recognized.>>
(and of course restart IIS after any change)

--------------------------------------------
since the libcurl seems ok...but does not work, check for the missing dll... open a dos box, go to c:\php5\ then type
dir *eay*.dll /s
Can you paset the results?
<?php
$my_site = "http://www.bing.com"; 
$my_funct="curl_init";
if (!function_exists($my_funct)) echo "** Function $my_funct is not available **"; 
	 
// initialisation de la session
$ch = curl_init($my_site); 
// configuration des options
curl_setopt($ch, CURLOPT_HEADER, 0); 
// exécution de la session
curl_exec($ch); 

// fermeture des ressources
curl_close($ch);
?>

Open in new window

Tops1:
I have done the tests and posted the results. As you can see there are only two dll files on the test results. Also not sure I ran the other script right I copyied it and saved it as testcurl.php. Ran it in web as seen on the testresults attachment. Let me know if this was right and if not please direct me to right avenue. Thanks much
Bob

TestResults.doc
The results you get are coherent with what shows with phpinfo.
And curl is still not there, a rather strange situation.


Let's investigate what is happening with php.ini:
in a dos box, type

dir \php.ini*  /s /ahs-h-s /q

and paste the result here.

If it takes more than a screen, note in which directory you are running the dos box, type instead

dir \php.ini*  /s /ahs-h-s /q >temp.txt
this will place the output into the file temp.txt in the current directory.
Can you attach the file here?

This should help us which php.ini are currently active where, as well as the default php.ini in the install (eg, php.ini-dist)
(of course, keep your testcurl.php , since it will be our testbench)
Morning Fibo:
Sorry my ISP was down most of the night. I have attached the results of the command line for you. Thanks much
Bob
temp.txt
Hi Guys:
I have attached a file with the results of the cart server test. Let me know what you think and do next. Thanks much
Bob
CoffeeCup-Shopping-Cart-Server-V.doc
It confirms that curl is not working.

1 - Can you update the php.ini file as I suggested earlier (but now I want it to be done so that we have other informations)
<<Note also that since you are running php5, Mysql and mysqli are not enabled by default... if you plan to use them you should include after line 656  the following 2 lines:

extension=php_mysql.dll
extension=php_mysqli.dll
>>   
This has to be done after the line extension=php_curl.dll
Can you post the revised pnp.ini once this is done?



Hi Fibo:
I have attached the php-ini file for you. Made the changes above.
Thanks
Bob
phini11-14.txt
OK.
Sort of a nightmare, so looks like some bug-like thing.

Browsing thru http://bugs.php.net/bug.php?id=39316 shows that we are in good company, specially the closeing/ last comment which itself points to http://us2.php.net/manual/en/configuration.php#configuration.file

Conclusion: test the effect of adding an environment variable that points to c:\php5, and if this work then make the chanhe permanent

1 - Test
From a dos box, issue the commands
set PHPRC
set PHPRC=c:\php5
set PHPRC
then LEAVE THE DOS BOX OPEN, and paste here the content of the dos box
then relaunch IIS, and rerun tescurl.php
(I ask you to leave the dos box open, 'cause I am not sure that the SET will survive it)

2 - If it works, then you need to set permanently phprc to the right value. You can do that from windows, or maybe make it part of the script file that launches your server
Fibo:
Ran dos commands results are attached. Ran testcurl.php results attached. I beleive they are the same as before. Let me know Thanks
Bob
TestCurlResults.doc
DosResults.doc
1 - phprc was already set... so it made no change

2 - extensions are still unavailable, although \php5\php.ini is there
let's try something:
a - copy \php5\php.ini to \windows, overwrite any file there
b - rename \php5\php.ini to php.ini-old
c- restart IIS

The idea is to force php to read from this php.ini in windows...
Fibo:
Tried the above and same results I'm afraid.
Bob
you did not complete b/ and c/ above.
or at lest this is what http://www.awesomescrapper.com/phpinfo.php says.

can you do these step (after step a/ of course)
Fibo:
I changed them back, was trying something. That didn't work either. I have changed it back to renaming
Fibo:
Sorry hit wrong button. Anyway it's back to your changes. Let me know Thanks much
Bob
Can you test the impact of changing line 547 in \windows\php.ini from
; cgi.force_redirect = 1
to
 cgi.force_redirect = 0

Once edited and saved, restart IIS as usual...
Fibo:
Made change and now I get - HTTP Error 404 - File or directory not found.
Internet Information Services (IIS). Making progress!. What's next?? Thanks much

Bob
I'm working from page http://www.peterguy.com/php/install_IIS6.html

Do you have access to System Event Log (Right-click on My Computer, choose Manage..., System Tools, Event Viewer, System).?
There should be some error messages related to iis and php


Then, additional route:
try putting the file php5ts.dll in the system32 folder
restart iis...
Fibo:
I added the dll to system32, restarted web did the testcurl got same 404 error. I also have checked the system logs & application logs and found no errors for IIS or PHP.
Bob
<<did the testcurl got same 404 error>>
was that just for this page or also for the phpinfo page?
none is doing 404 currently
... but of course testcurl is consistent with phpinfo: none of them finds curl
Fibo:
Get 404 error on the testcurl only. Go here to view the phpinfo:
http://www.awesomescrapper.com/Shop/AwesomeScrapper_Shopping_Cart-server/phpinfo.php
The testcurl is:
http://www.awesomescrapper.com/testcurl.php
Bob
do you get the 404 with testcurl? I get the answer
** Function curl_init is not available **
which the program triggers if the curl library is not useable by php.
The answer is coherent with no curl in phpinfo.


What is really strange is that it seems to read the php.ini, but that it cannot load the curl and mysql dlls, although they are present in the directory....

can you check the access rights of \php5 and \php5\ext: they should be readable by everyone. are they?
Fibo:
php/ext had the right settings and I have changed the php5 to add everyone with read access permission. I get page can not be dispalyed when using my browser from work on the testcurl.php. The phpinfo comes up just fine.
Bob
Fibo:
I can set you up an account and give you access to the server if you want to get in and check the areas out. It might save time back and forth. Let me know and I'll send account info to you.
Bob
1 - That you cannot access the testcurl.php is strange, probably not related to the main problem. Try to refresh the page

2 - There is something (else) strange in your server:
http://www.awesomescrapper.com/Shop/AwesomeScrapper_Shopping_Cart-server/xxx.php (whatever xxx) give no html error but returns "No input file specified. "
While
http://www.awesomescrapper.com/Shop/AwesomeScrapper_Shopping_Cart-server/xxx.html or
http://www.awesomescrapper.com/Shop/AwesomeScrapper_Shopping_Cart-server/xxx.html
generate (as expected) an error 404

Looking at https://www.experts-exchange.com/questions/20983403/PHP-Windows-no-input-file-specified-error-virtual-directory.html it seems that your virtual directories are responsible for that (no idea why!). So you could test the effect of commenting line 529 of php.ini from
doc_root =
to
; doc_root =

Note: that should address just the issue of handling incorrectly php files... I doubt it could change the main problem, getting these ¤$£!§ extensions
Fibo:
I have gotten rid of a virtual directory on the site. It didn't make a difference as suspected. I also commented out line 529 as suggested. Can you check this testcurl script just to varify that it is correct?
<?php
$my_site = "http://www.bing.com";
$my_funct="curl_init";
if (!function_exists($my_funct)) echo "** Function $my_funct is not available **";
      
// initialisation de la session
$ch = curl_init($my_site);
// configuration des options
curl_setopt($ch, CURLOPT_HEADER, 0);
// exécution de la session
curl_exec($ch);

// fermeture des ressources
curl_close($ch);
?>

Thanks
Bob
TRy the impact of keeping virtiual directories with just the line commented.

Current status:
- now / also has the "no input file" problem. Not on phpinfo.php, but on testcurl.php.

- I have tested locally testcurl.php, it works fine... although it now returns an almost blank page, but this is an action by bing itself, not the program.
Fibo:
Where do we go from here? I have attached a shot of the web extentions. Do the look OK to you? What other setup values can we look at?
Bob
WebExtentions.doc
Can you capture from the web extensions screen the propreties for php and for php5?

Do you remember if you installed from the msi package of from the zip package?
Fibo:
Have attached the properties page fro both of the above. I don't remember about the install but I believe it was the zip pkg.
Bob
PropSheets.doc
I'm not using IIS for PHP, but I would think that the requirements should be the same for php and php5...

Is that due to the initial "add a service" for php then php5?
Or do you add the dll manually yourself?
Fibo:
I have made the changes to PHP5 on the web extentions. Also have doubled check permission and made a change there. I have a really stupid question. I was thinking about this and from what I have read curl uses SSL right? I have not setup up my SSL certificate yet. Could that be the whole hold up?? I can't believe I didn't think of this sooner. Let me know. Thanks as always
Bob
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Fine. Glad you were able to make it work eventually. Thx for the grade and points