我刚通过composer安装了Laravel 5,它是在我的mac上安装的。现在,当我尝试使用laravel new blog并尝试通过php artisan serve为apache提供服务时,我会得到以下错误
ErrorException in compiled.php line 6635:
Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128'
每次我部署一个新的应用程序时,我都会得到这个。如何解决这个错误?
我知道有人问了这个问题,但大多数答案都是针对linux/xOS系统的,没有关于windows的线程,最近我试图学习启用mcrypt扩展的laravel,它使用wampmanager很容易,而且运行良好,但是使用php技工的CLI不起作用,只有dd Laravel需要Mcrypt扩展。我只有一个版本的PHP,而访问php.ini的只有一个版本。
[mcrypt]
; For more information about mcrypt settings see http://php.net/mcrypt-module-open
; Directory where to load mcrypt a
我已经设置了laravel/homestead,现在当我在项目上使用composer install时,我得到了错误消息: The requested PHP extension mcrypt is missing from your system (我知道我不应该再使用mcrypt了,但是这个项目已经交给我了,所以我现在不能改变它) 我使用的是PHP7.1(其中mcrypt被标记为已弃用,但如果我激活它,它仍然可以使用吗?) php -v显示"7.1.30“ 我将extension=php_mcrypt.dll添加到我的php.ini中,然后重启homestead (暂停并再次启动
我正在尝试运行一个旧的Laravel项目,但是当我尝试运行composer install时,我得到了这个错误:
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for larave
我对Laravel非常陌生,我的问题始于运行我的应用程序阶段。由于某些原因,当我试图在 (我有Apache服务器)上访问我的应用程序时,我得到了这个错误:
ErrorException in EncryptionServiceProvider.php line 16:
Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128'
in EncryptionServiceProvider.php line 16
at HandleExceptions->handleError(
我正在尝试安装laravel,非常确定我已经安装了mcrypt
me:~/public_html$ composer create-project laravel/laravel laravel-test
Installing laravel/laravel (v5.0.22)
- Installing laravel/laravel (v5.0.22)
Loading from cache
Created project in laravel-test
Loading composer repositories with package information
Installing d
我使用的是OS X 10.9,使用的是MAMP。我已经安装了mcrypt,当我查看php -i时,它是启用的。我正在通过php通过composer.phar运行作曲器。获取:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework v5.0.5 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.