laravel 在 wamp 上托管

laravel hosting on wamp

我已经按照这里的教程学习了@ https://github.com/petehouston/laravel-deploy-on-shared-hosting on how to install laravel application on a shared hosting and also here @ https://medium.com/laravel-news/the-simple-guide-to-deploy-laravel-5-application-on-shared-hosting-1a8d0aee923e 但是当我访问这里的本地主机时遇到了困难 错误转储请帮忙 ```

FatalErrorException in Encrypter.php line 100:
Call to undefined function openssl_decrypt()
in Encrypter.php line 100
at FatalErrorException->__construct() in HandleExceptions.php line 133
at HandleExceptions->fatalExceptionFromError() in HandleExceptions.php line 118
at HandleExceptions->handleShutdown() in HandleExceptions.php line 0
at Encrypter->decrypt() in EncryptCookies.php line 95
at EncryptCookies->decryptCookie() in EncryptCookies.php line 76
at EncryptCookies->decrypt() in EncryptCookies.php line 59
at EncryptCookies->handle() in Pipeline.php line 136
at call_user_func_array:{C:\wamp\cruitement\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}() in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 32
at call_user_func:{C:\wamp\cruitement\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}() in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}() in Pipeline.php line 103
at call_user_func:{C:\wamp\cruitement\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103}() in Pipeline.php line 103
at Pipeline->then() in Router.php line 726
at Router->runRouteWithinStack() in Router.php line 699
at Router->dispatchToRoute() in Router.php line 675
at Router->dispatch() in Kernel.php line 246
at Kernel->Illuminate\Foundation\Http\{closure}() in Pipeline.php line 52
at call_user_func:{C:\wamp\cruitement\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:52}() in Pipeline.php line 52
at Pipeline->Illuminate\Routing\{closure}() in CheckForMaintenanceMode.php line 44
at CheckForMaintenanceMode->handle() in Pipeline.php line 136
at call_user_func_array:{C:\wamp\cruitement\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}() in Pipeline.php line 136
at Pipeline->Illuminate\Pipeline\{closure}() in Pipeline.php line 32
at call_user_func:{C:\wamp\cruitement\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}() in Pipeline.php line 32
at Pipeline->Illuminate\Routing\{closure}() in Pipeline.php line 103
at call_user_func:{C:\wamp\cruitement\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:103}() in Pipeline.php line 103
at Pipeline->then() in Kernel.php line 132
at Kernel->sendRequestThroughRouter() in Kernel.php line 99
at Kernel->handle() in index.php line 54
at {main}() in index.php line 0

能否发现我遗漏的内容,请提前致谢

php_openssl 扩展似乎未启用

如果您是 运行 命令行代码,那么您需要编辑 wamp\bin\php\php{version}\php.ini

中的 php.ini 文件

如果您在浏览器中执行此操作,则需要检查 Apache 使用的 php.ini 文件(它们不同)

left click wampmanager->PHP->php.ini

在默认编辑器中打开文件

在两个文件中检查这一行

extension=php_openssl.dll

确保它没有 # 注释行。