Laravel undefined function openssl_encrypt()

后端 未结 9 2250
太阳男子
太阳男子 2020-12-09 05:49

I use laravel5.1 and it works fine on php cli. But i publish my porject to apache(version == 2.4), the problem happened.

FatalErrorException in Encryp

相关标签:
9条回答
  • 2020-12-09 05:56
    1. Just run the composer update command from Laravel installation directory And 02. make sure extension=php_openssl.dll is enabled in php.ini
    2. Restart Apache Server
    0 讨论(0)
  • 2020-12-09 06:01

    On Windows Open php.ini and change path where are locate php ext

    extension_dir = "C:\php\ext"

    0 讨论(0)
  • 2020-12-09 06:02

    First make sure you installed the openssl extension (spotted by deceze), then:

    1. Go to your php.ini file
    2. Remove the semicolon before extension=php_openssl.dll
    3. Restart your Apache

    I'm expecting this to be the problem.

    0 讨论(0)
  • 2020-12-09 06:04

    I solved same issue by copying libeay32.dll and ssleay32.dll from PHP root folder to Apache/bin folder and then restarted Apache.

    0 讨论(0)
  • 2020-12-09 06:04

    I'm using nginx, and my nginx installation contained a PHP folder, something like below:

    C:\Users\myusername\Downloads\nginx\php\php.ini
    

    I moved the nginx above to the root directory of C:\ and it solved the problem.

    0 讨论(0)
  • 2020-12-09 06:05

    If you using the Wamp server then it's happens. In Xampp server there is no need to uncomment php_openssl.dll.

    To solve this Remove the semicolon before

    extension = php_openssl.dll 
    

    in php.ini

    0 讨论(0)
提交回复
热议问题