Jump to content

compile PHP with OpenSSL module in Windows XP


Recommended Posts

I need to compile PHP 4.x with the OpenSSL module in WindowsXP.  On this site:

http://us2.php.net/openssl

I found these instructions:

"To use PHP's OpenSSL support you must also compile PHP --with-openssl[=DIR]."

This seems like a Linux command.  How do I do this in Windows XP?  I have compiled PHP with Microsoft Visual C++ before, but not with any extra modules.

Link to comment
Share on other sites

You do not need to recompile PHP in order use OpenSSL. You should of read the bit after it says to recompile PHP. Which is this bit:

Note to Win32 Users:  In order for this extension to work, there are DLL files that must be available to the Windows system PATH. See the FAQ titled "How do I add my PHP directory to the PATH on Windows" for information on how to do this. Although copying DLL files from the PHP folder into the Windows system directory also works (because the system directory is by default in the systems PATH), it is not recommended. This extension requires the following files to be in the PATH: libeay32.dll
Link to comment
Share on other sites

This is the third time that I have been accused of not reading that entire page (twice on this forum once on another).  I assure you that I have read that part about what Win32 users need to do and I have already done that.  However, the way I see it, it did not say that Win32 users do not need to recompile PHP in order to get it to work.  First it said that PHP needs to be compiled "--with-openssl[=DIR]", then it had a note for Win32 users.  The note looks to be additional information for Win32 users as opposed to having 2 different sections, one for Win32 users and one for Linux users.  Anyway, is there anyone here that has actually used OpenSSL in PHP on Win32 themselves, who would know if I need to compile PHP myself or not.  If anyone knows how to compile it '--with-openssl[=DIR]', I would like to try it, as I don't know what else to try.

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.