nginx:
在phpstudy中運行Laravel一鍵安裝包時報錯:Call to undefined function Illuminate\Encryption\openssl_cipher_iv_length(),產生錯誤的原因是沒開啟php_openssl擴展,開啟即可。
apache:
- 檢查http.conf LoadModule ssl_module modules/mod_ssl.so
- php.ini開啟extension=php_openssl.dll
- 將php7.1要目錄下的libeay32.dll和ssleay32.dll文件復制並替換到apache\bin目錄下,再次啟動Apache (注意事先備份一下Apache/bin目錄下的相應文件)