Jump to content

configure php for openssl


lgastmans

Recommended Posts

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

Link to comment
Share on other sites

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 by Christian F.
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by Christian F.
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.