相关疑难解决方法(0)

错误消息"禁止您无权访问/在此服务器上"

我自己配置​​了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)

apache configuration httpd.conf http-status-code-403

515
推荐指数
13
解决办法
216万
查看次数

错误:脚本php artisan clear-compiled处理带有错误的post-install-cmd事件

我正在尝试使用以下方法创建一个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

我能做什么?谢谢您的帮助

laravel laravel-4

36
推荐指数
2
解决办法
3万
查看次数

安装php7.2-mcrypt的问题

因为我正在尝试从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)

php ubuntu github pecl mcrypt

31
推荐指数
4
解决办法
10万
查看次数

PHP 警告:PHP 启动:无法加载动态库“mcrypt.so”

我正在尝试在 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

php server ubuntu-16.04

8
推荐指数
2
解决办法
3万
查看次数

即使安装了Composer,Composer也找不到ext-mbstring

当我尝试安装Laravel 5时,出现依赖性错误.我在Windows 7上使用Uniform Server.我启用了php_mbstring.dll,并检查了它是否正确加载.(我认为)

这是控制台输出(Composer):

安装laravel 5时的Composer依赖性错误

这是我的php.ini中的扩展 Php.ini扩展

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

我不知道从哪里开始.任何的想法?

php windows mbstring laravel composer-php

7
推荐指数
1
解决办法
7028
查看次数

Laravel 4 - 运行`composer install`时出错

问题:

我安装了Composer并遵循Laravel 4文档中的快速入门指南.

我收到以下错误,当我运行composer installcomposer 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上找到了一些解决方案,但在我的情况下这些解决方案效果不佳.

php installation laravel laravel-4

6
推荐指数
1
解决办法
3293
查看次数

在运行PHP 7.1.0的MAMP上的Laravel 4.2中不推荐使用函数mcrypt_get_iv_size()

我刚刚升级了我的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中解决这个问题?

如评论中所述,不重复.

php mcrypt laravel laravel-4 php-7.1

5
推荐指数
1
解决办法
7218
查看次数

Laravel需要Mcrypt PHP扩展

我正在尝试在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)

php apache mcrypt laravel-4

3
推荐指数
1
解决办法
4352
查看次数

Mac Mini中的Laravel安装错误

我正在尝试在我的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扩展.

php mcrypt laravel laravel-4

2
推荐指数
1
解决办法
117
查看次数

使用 Composer 安装 - XAMPP 上的系统缺少 ext-mcrypt * 和 ext-intl * php 扩展

我一直在尝试安装 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 macos magento composer-php

1
推荐指数
1
解决办法
2万
查看次数