我自己配置了Apache,并尝试在虚拟主机上加载phpMyAdmin,但我收到了:
403禁止您无权访问此服务器上的/
我的httpd.conf
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用以下方法创建一个laravel项目:
Nicoles-MacBook-Pro:htdocs nicolekajatt$ composer create-project laravel/laravel guia-telefonica
Run Code Online (Sandbox Code Playgroud)
我得到了这个:
Mcrypt PHP extension required.
Script php artisan clear-compiled handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output:
create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [package] [directory] [version]
Run Code Online (Sandbox Code Playgroud)
我已经尝试过这个教程来解决这个问题,但问题仍然存在 http://laravel.io/forum/02-08-2014-difficulty-installing-laravel-getting-error-mcrypt-php-extension-required?page=1
我能做什么?谢谢您的帮助
因为我正在尝试从PHP 7.2.X版本加载mcrypt扩展模块.
所以我尝试使用与我当前版本的PHP兼容的PECL库,以便安装并遵循以下链接:
在安装过程中在PHP 7.2上安装mcrypt!
以下是在终端上执行某些命令后获得的结果.
root@YYY:/var/www/html/orocrm# apt install php-pear
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libllvm4.0
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
php-pear
0 upgraded, 1 newly installed, 0 to remove and 14 not upgraded.
Need to get 285 kB of archives.
After this operation, 2,107 kB of additional disk space will be …Run Code Online (Sandbox Code Playgroud) 我正在尝试在 ubuntu 06.04 上使用 composer update 更新 laravel,但每次运行时composer update总是出现此警告。
PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt.so' (tried: /usr/lib/php/20170718/mcrypt.so (/usr/lib/php/20170718/mcrypt.so: cannot open shared object file: No such file or directory), /usr/lib/php/20170718/mcrypt.so.so (/usr/lib/php/20170718/mcrypt.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Run Code Online (Sandbox Code Playgroud)
有谁知道怎么处理?
我正在使用 php7.2
当我尝试安装Laravel 5时,出现依赖性错误.我在Windows 7上使用Uniform Server.我启用了php_mbstring.dll,并检查了它是否正确加载.(我认为)
这是控制台输出(Composer):

这是我的php.ini中的扩展

这是phpinfo()mbstring的详细信息:

我不知道从哪里开始.任何的想法?
我安装了Composer并遵循Laravel 4文档中的快速入门指南.
我收到以下错误,当我运行composer install或composer update:
Script php artisan optimize handling the post-install-cmd event
returned with an error...
Run Code Online (Sandbox Code Playgroud)

我试图运行以下composer命令:
composer create-project laravel/laravel myproject --prefer-dist
Run Code Online (Sandbox Code Playgroud)
或使用他们的laravel.phar:
laravel new myproject
Run Code Online (Sandbox Code Playgroud)
或者从git获取zip版本:https://github.com/laravel/laravel? source = c
我仍然无法通过作曲家更新.
我Mac上的PHP版本是:
PHP 5.4.17 (cli) (built: Aug 25 2013 02:03:38)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0,
Copyright (c) 1998-2013 Zend Technologies
Run Code Online (Sandbox Code Playgroud)
MAMP上的PHP版本:5.4.10
我在Google/Stack Overflow上找到了一些解决方案,但在我的情况下这些解决方案效果不佳.
我刚刚升级了我的MAMP服务器以运行7.1.0.我现在在Laravel 4.2安装中出现此错误;
Function mcrypt_get_iv_size() is deprecated
Run Code Online (Sandbox Code Playgroud)
我试过改变
'cipher' => MCRYPT_RIJNDAEL_128,
Run Code Online (Sandbox Code Playgroud)
至
'cipher' => 'AES-256-CBC',
Run Code Online (Sandbox Code Playgroud)
但无济于事.
有谁知道如何在Laravel 4.2中解决这个问题?
如评论中所述,不重复.
我正在尝试在Linux Ubuntu上安装Laravel.我正在运行Ubuntu 14.10.
一切都运转正常.但是现在不是在访问localhost时得到假设的页面,而是得到消息:"需要Mcrypt PHP扩展"我正在从终端复制一些信息以帮助查明问题.
which php
/usr/bin/php
php --ini
Configuration File (php.ini) Path: /etc/php5/cli
Loaded Configuration File: /etc/php5/cli/php.ini
Scan for additional .ini files in: /etc/php5/cli/conf.d
Additional .ini files parsed: /etc/php5/cli/conf.d/05-opcache.ini,
/etc/php5/cli/conf.d/10-pdo.ini,
/etc/php5/cli/conf.d/20-json.ini,
/etc/php5/cli/conf.d/20-mcrypt.ini,
/etc/php5/cli/conf.d/20-mysql.ini,
/etc/php5/cli/conf.d/20-mysqli.ini,
/etc/php5/cli/conf.d/20-pdo_mysql.ini,
/etc/php5/cli/conf.d/20-readline.ini
php -v
PHP 5.5.9-1ubuntu4 (cli) (built: Apr 9 2014 17:11:57)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies
php -m
mcrypt
Run Code Online (Sandbox Code Playgroud)
命令php -m说我有mcrypt模块,但如果我加载一个包含的页面
<?php phpinfo(); ?> …Run Code Online (Sandbox Code Playgroud) 我正在尝试在我的Mac Mini中安装Laravel并且一直在收到错误.
错误:
Writing lock file
Generating autoload files
Mcrypt PHP extension required.
Script php artisan clear-compiled handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output:
create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [package] [directory] [version]
Run Code Online (Sandbox Code Playgroud)
一个月前我安装了Laravel 4.2,运行良好.但是现在当我安装新的Larvel 4.2时,它给出了上面给出的错误.
我使用内置的PHP,mySql,phpMyAdmin.(不是MAMP或XAMP)
我已经安装了mcrypt扩展.
我一直在尝试安装 Magento 2。我确实加载了所有内容,并且使用最后一个命令“composer update”或“composer install”时遇到了问题。
Problem 1
- The requested PHP extension ext-mcrypt * is missing from your system.
Problem 2
- The requested PHP extension ext-intl * is missing from your system.
Run Code Online (Sandbox Code Playgroud)
问题是我不是专业的 Mac 用户或任何东西,所以我很难理解我需要做什么来解决这个问题。我在 stackoverflow 上看到了一个有同样问题的话题,但在那种情况下,他们使用的是 MAMP。我正在使用 XAMPP。他们告诉用 .bash_profile 文件用 MAMP 的 PHP 覆盖 PHP。我也试过 - 不太明白我在做什么。
所以拜托,有人能帮我解决 ext-mcrypt 和 ext-intl 的问题吗?我什至不知道如何知道他们是否错过了。
谢谢!
这是代替 mcrypt 的内容
[mcrypt]
; For more information about mcrypt settings see http://php.net/mcrypt-module-open
; Directory where to load mcrypt algorithms
; Default: Compiled in into …Run Code Online (Sandbox Code Playgroud) php ×8
laravel ×5
laravel-4 ×5
mcrypt ×4
apache ×2
composer-php ×2
github ×1
httpd.conf ×1
installation ×1
macos ×1
magento ×1
mbstring ×1
pecl ×1
php-7.1 ×1
server ×1
ubuntu ×1
ubuntu-16.04 ×1
windows ×1