vizskywalker
Jun 19 2006, 11:47 PM
| | I have been running PHP 5.1.4 and Apache 2.2.2 with the PHP 5.2.0 developement phpapache2_2.dll module. I recently installed CURL with php. Now if I run php from the command line, I can use the CURL functions, but not from a webpage through Apache. Also, phpinfo() returns nothing on CURL. I am running Windows XP SP2 and installed PHP manually via the zipped binaries. I really need CURL to work through a webpage and would appreciate any help I can get.
~Viz |
Comment/Reply (w/o sign-up)
seec77
Jun 20 2006, 10:50 AM
I really don't know if this is the reason, but try using the PHP 5.1.4 version of the Apache module, as it seems that PHP works alright but the connection to Apache is lacking. Or better yet, just download the newest PHP version and check if that works... it should. I got CURL running on Apache2 + PHP 5.x.x quite easily (just downloaded everything from PECL... or is that PEAR?) Good luck!
Comment/Reply (w/o sign-up)
vizskywalker
Jun 20 2006, 01:22 PM
The problem with the PHP 5.1.4 module is that it is incompatible with Apache 2.2.x, only 2.0.x. And I was running Apache 2.2.2. I've downgraded to 2.0.58 and am using the PHP 5.1.4 module. Could you explain how to use PEAR or PECL with windows as I'm unclear on how to do that. ~Viz
Comment/Reply (w/o sign-up)
seec77
Jun 20 2006, 05:38 PM
OK, first let's get one thing straight ('cause I keep mixing it up). PEAR is a repository for PHP libraries, written in PHP code, while PECL is a repository of PHP extensions, written in C++ and compiled to DLL files (for Windows). Just download the collection of PECL modules for PHP 5.1.4, which has all the usual standard PECL extensions (you won't need other PECL extensions for most PHP programs) and unzip it into the "ext" folder inside your PHP installation directory. Now all you have to do is go into your "php.ini" configuration file, and search for "Dynamic Extensions", and under it you'll find lots of lines that begin with ";extension = " and then the name of an extension, so just uncomment (remove the semi-colon at the beginning) the extensions you want. Be aware though that some extensions rely on other extensions, so if after you enable a few extensions PHP won't start, try pinpointing the specific extension (turn PHP on with less extensions) and post back! Good luck!
Comment/Reply (w/o sign-up)
vizskywalker
Jun 20 2006, 10:47 PM
I essentially did that, I have the php_curl.dll and have uncommented the extension. But I still have problems using the curl libraryof functions if I go through Apache. Using the php compiler from command line works just fine. All other php functions work fine through Apache (at least, all the others I've installed). ~Viz
Comment/Reply (w/o sign-up)
vujsa
Jun 21 2006, 06:13 PM
QUOTE(http://us3.php.net/manual/en/ref.curl.php @ Jun 21 2006) Installation
To use PHP's CURL support you must also compile PHP --with-curl[=DIR] where DIR is the location of the directory containing the lib and include directories. In the "include" directory there should be a folder named "curl" which should contain the easy.h and curl.h files. There should be a file named libcurl.a located in the "lib" directory. Beginning with PHP 4.3.0 you can configure PHP to use CURL for URL streams --with-curlwrappers.
Note to Win32 Users: In order to enable this module on a Windows environment, libeay32.dll and ssleay32.dll must be present in your PATH.
You don't need libcurl.dll from the CURL site.
Now, I don't use this lirary and am not entirely sure if the staement above will actaully help but I came across this and thought it couldn't hurt to post the information. Good luck to you and I hope you'll post your method of installation once you get this working. I'm interested in learning how to use CURL. Hope this helps,  vujsa
Comment/Reply (w/o sign-up)
vizskywalker
Jun 21 2006, 07:07 PM
Yeah, I've seen that as well, unfortunately, it means compiling php on windows, and the manual isn't to helpful on how to do that. If you can find a manual way to do the same thing it would be most appreciated. ~Viz
Comment/Reply (w/o sign-up)
seec77
Jun 21 2006, 07:46 PM
PHP on Windows is always compiled with everything on, as far as I know. I think vujsa was pointing out this line: QUOTE Note to Win32 Users: In order to enable this module on a Windows environment, libeay32.dll and ssleay32.dll must be present in your PATH.
Those two libraries can be found in your base PHP installation directory, next to the PHP executables. Just copy (don't move) them to your "C:\Windows\System32". Maybe you can add the PHP installation directory to your computer's path settings, but I think that the first option is better.
Comment/Reply (w/o sign-up)
vizskywalker
Jun 21 2006, 07:53 PM
actually, they are in the path, as my c:\php folder is part of the path, no that part works fine. The problem is definitely in the compile with -with-curl[=DIR]. Otherwise, I wouldn't be able to use the functions at all, and I can, just not through a webservice. ~Viz
Comment/Reply (w/o sign-up)
vizskywalker
Jun 25 2006, 02:56 AM
Okay, I set PHP to indicate problems at startup. I get this alert QUOTE PHP Startup: Unable to load dynamic library 'C:\PHP\ext\php_curl.dll' - The operating system cannot run %1 twice. And I have PHP installed properly, everything else works, currently running PHP 5.1.4 and Apache 2.058. I have uncommented the line 'extension=php_curl.dll' and php_curl.dll is in the C:\PHP\ext directory. I have set the PATH environment variable to include c:\php which is where I have php. Any ideas would be helpful. ~Viz
Comment/Reply (w/o sign-up)
Similar Topics
Keywords : apache, 2, php, 5, 1, 4, curl
- Help: Removing A Specific Header With cURL
(0)
Mini Apache Server W/ Php
Grab it right now ... (5) Hi, Those who don't want to go into all the hassle of configuring Apache with PHP -
here's a quick alternative. Grab MiniApache_PHP from http://213.106.116.50/james/ . It's
a much downscaled version of the real Apache server but includes the PHP modules too - very little
headache over installation and you can start hosting your own sites rightaway. Good alternative for
testing your custom php codes too... This is what the site says about the software: QUOTE
MiniApache_PHP is a cut-down version of the open-source Apache web server software for W....
Apache + PHP3
(5) I am attempting to configure Apache server (v 1.3.12) with PHP3 (v 3.0.16) the --with-ldap option
chosen. PHP3 configures and installs ok, but when I try to run make in the apache directory I
get a lot of errors saying that for example modules/php3/libphp3.a (ldap.o): In function
"_close_ldap_link": /usr/local/php-3.0.16/functions/ldap.c:128 undefined refernece to
"ldap_unbind_s" I receice approx 50 similar error messages . Has anyone come accross this or
know how to resolve it Thanks tux....
Looking for apache, 2, php, 5, 1, 4, curl
|
See Also,
*SIMILAR VIDEOS*
Searching Video's for apache, 2, php, 5, 1, 4, curl
|
advertisement
|
|