lgastmans Posted March 7, 2013 Share Posted March 7, 2013 Hi All, I am trying to make openssl work for Windows XP with the aim of being able to use the function ftp_ssl_connect(). I have gone over a lot of sites but I am running into what looks like a simple problem, but I think I have spent enough time on it to warrant some help. I have downloaded and extracted the files from the following file: php-5.2.17-Win32-VC6-x86 I have configured the apache2.2 conf file and the php ini file and it all works fine except for openssl. In the php ini file i have uncommented the line extension=php_openssl.dll and i have copied the files libeay32.dll and ssleay32.dll into the windows/system32 folder. phpinfo says that openssl is enabled. Now the problem: I have read that I can configure php by running the following command from the shell ./configure --with-openssl /usr/bin/openssl but this is where I keep getting the following error (I have installed openssl from Win32OpenSSL-1_0_1e.exe): '.' is not recognized as an internal or external command. some help would be greatly appreciated Quote Link to comment https://forums.phpfreaks.com/topic/275350-configure-php-for-openssl/ Share on other sites More sharing options...
Christian F. Posted March 7, 2013 Share Posted March 7, 2013 (edited) That configure command is for configuring the build-process on a *nix system, if you're going to manually compile PHP. Not for configuring the plugin itself, which is done in php.ini. Seeing as you're neither on a *nix based system, nor wanting to compile PHP manually, you should just ignore that. Edited March 7, 2013 by Christian F. Quote Link to comment https://forums.phpfreaks.com/topic/275350-configure-php-for-openssl/#findComment-1417173 Share on other sites More sharing options...
lgastmans Posted March 8, 2013 Author Share Posted March 8, 2013 Dear Christian, On my Ubuntu partition it works fine, but I need to make it work on Windows... As far as I understand, I need to compile PHP manually on Windows, right? Does this link look good to you: http://phpmaster.com/compiling-php-from-source-on-windows/ And I have a working copy installed currently, do I need to remove all of it, Apache2.2 and PHP, before starting this procedure? Thanks for taking the time Quote Link to comment https://forums.phpfreaks.com/topic/275350-configure-php-for-openssl/#findComment-1417423 Share on other sites More sharing options...
Christian F. Posted March 8, 2013 Share Posted March 8, 2013 (edited) No, you don't need to compile PHP manually on Windows. If phpinfo states that openSSL is installed and activated, then it is installed and activated. There is nothing more you can do by compiling PHP manually. Basically, all you do with ./configure is to tell which modules should be enabled/disabled with PHP by default. You're not configuring the modules themselves. That said, you still haven't told us what the actual problem is, just what you think the solution is. In order for us to help you, we'll need to know why you think you have to do this. Remember, the more detail you can provide on the problem, the easier it'll be for us to help you. Check the logs for error messages, make sure that all error reporting is turned off, and so forth. Edited March 8, 2013 by Christian F. Quote Link to comment https://forums.phpfreaks.com/topic/275350-configure-php-for-openssl/#findComment-1417456 Share on other sites More sharing options...
lgastmans Posted March 9, 2013 Author Share Posted March 9, 2013 Dear Christian, I had typed out my response to you fully and then the internet snapped... so here goes again: The error I get is with the function ftp_ssl_connect(). When I run code that uses this function it throws an error, function does not exist. And when I run the following command in the shell: j:\php --rf ftp_ssl_connect the response is also that the function does not exist. In phpinfo openssl is enabled, that I have verified again. Thank you for your time. Quote Link to comment https://forums.phpfreaks.com/topic/275350-configure-php-for-openssl/#findComment-1417693 Share on other sites More sharing options...
lgastmans Posted March 13, 2013 Author Share Posted March 13, 2013 For those interested, and who might have the same problem with Windows and the ftp_ssl_connect function: I used the php curl function instead. Quote Link to comment https://forums.phpfreaks.com/topic/275350-configure-php-for-openssl/#findComment-1418291 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.