简体   繁体   English

如何在 xampp 中安装 mcrypt 扩展

[英]How to install mcrypt extension in xampp

how to install mcrypt in xampp on windows?如何在 Windows 上的 xampp 中安装 mcrypt?

My PHP Version 7.0.5 and xampp pack have not mcrypt extension so how can i install mcrypt on xampp ?我的 PHP 版本 7.0.5 和 xampp 包没有mcrypt扩展,所以我如何在 xampp 上安装 mcrypt?

First, you should download the suitable version for your system from here: https://pecl.php.net/package/mcrypt/1.0.3/windows首先,您应该从这里下载适合您系统的版本: https : //pecl.php.net/package/mcrypt/1.0.3/windows

Then, you should copy php_mcrypt.dll to ../xampp/php/ext/ and enable the extension by adding extension=mcrypt to your xampp/php/php.ini file.然后,您应该将php_mcrypt.dll复制到../xampp/php/ext/并通过将extension=mcrypt添加到您的xampp/php/php.ini文件来启用扩展。

The recent versions of XAMPP for Windows runs PHP 7.x which are NOT compatible with mbcrypt.适用于 Windows 的 XAMPP 的最新版本运行 PHP 7.x,但与 mbcrypt 不兼容。 If you have a package like Laravel that requires mbcrypt, you will need to install an older version of XAMPP.如果你有一个像 Laravel 这样需要 mbcrypt 的包,你需要安装旧版本的 XAMPP。 OR, you can run XAMPP with multiple versions of PHP by downloading a PHP package from Windows.PHP.net, installing it in your XAMPP folder, and configuring php.ini and httpd.conf to use the correct version of PHP for your site.或者,您可以通过从 Windows.PHP.net 下载 PHP 包,将其安装在您的 XAMPP 文件夹中,并配置 php.ini 和 httpd.conf 以使用适用于您的站点的正确版本的 PHP,从而使用多个版本的 PHP 运行 XAMPP。

you should install mcrypt with pecl on your xampp server:你应该在你的 xampp 服务器上安装带有 pecl 的 mcrypt:

./bin/pecl install mcrypt

then add to php.ini this code (extension block):然后将此代码添加到 php.ini(扩展块):

extension=mcrypt.so 

Right from the PHP Docs: PHP 5.3 Windows binaries uses the static version of the MCrypt library, no DLL are needed.直接来自 PHP 文档:PHP 5.3 Windows 二进制文件使用 MCrypt 库的静态版本,不需要 DLL。

http://php.net/manual/en/mcrypt.requirements.php http://php.net/manual/en/mcrypt.requirements.php

But if you really want to download it, just go to the mcrypt sourceforge page但如果你真的想下载它,就去 mcrypt sourceforge 页面

http://sourceforge.net/projects/mcrypt/files/?source=navbar http://sourceforge.net/projects/mcrypt/files/?source=navbar

For windows 对于窗户

  1. Create a new folder like new-project. 创建一个新文件夹,例如new-project。
  2. past this command in your windows command "composer create-project laravel/laravel new-project 4.2.*" 在Windows命令“ composer create-project laravel / laravel new-project 4.2。*”中通过此命令

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM