PHP OpenSSL extension not working while installing TYPO3 6.2.2 on Windows 7

后端 未结 6 1529
北海茫月
北海茫月 2020-12-31 05:21

I\'ve installed TYPO3 6.2.2 on Windows 7 but I got an error message as below:

PHP OpenSSL extension not working Something went wrong while trying to create a ne

6条回答
  •  太阳男子
    2020-12-31 05:42

    The following solution might only work by manual start of the Apache-Server by click on apache_start.bat inside Xampp, other use-cases and server-packages are not tested or covered.


    Dealing with several versions of xampp and perhaps additional several frameworks I searched for an approach that is best fitting to the following requirements:

    • A framework never has to know about the configuration or the path to the executable openssl-file (in windows: openssl.exe).
    • It doesn't matter which server is started, the right path to openssl is always found, fitting to the version of the server. This avoids problems that openssl might be compiled with another version than PHP or Apache-Server.
    • Variables never have to be added unflexible and static to the PATH-Variable. Instead they shall only be added as long as a server is running.
    • Stopping one server-version and starting another server-version is switching without further actions to the right path of openssl.exe and openssl.cnf.

    Based on these developer-requirements the steps I describe are a bit different than the running answers on this page:

    1. Enable openssl in the php.ini-file of each server-version (i.e. xampp-1, xampp-2, etc.) by removing the leading semicolon of the following line: ;extension=php_openssl.dll

    2. Open the file apache_start.bat of each server-version and replace the line

      apache\bin\httpd.exe

      by the following snippet:
      SET OPENSSL_CONF=C:\xampp-x\apache\conf\openssl.cnf IF EXIST C:\xampp-x\apache\bin SET PATH=%PATH%;C:\xampp-x\apache\bin apache\bin\httpd.exe

      Pay attention that you everywhere replace C:\xampp-x\ by the real path to the corresponding server.

    3. Restart xampp either by apache_start.bat or by the xampp-control-panel.

    This solution naturally works also with only one server and with the advantage having limited PATH-Variables system-wide defined.

    UPDATE If you have still problems related to TYPO3, no matter about the method you chosed, check the cookie_domain in the installtool. It should apply to the current domain or being empty. A wrong cookie-domain can happen if you copy a project from another server, i.e. for development.

提交回复
热议问题