How to install mcrypt extension in xampp - php

how to install mcrypt in xampp on windows?
My PHP Version 7.0.5 and xampp pack have not mcrypt extension so how can i install mcrypt on xampp ?

First, you should download the suitable version for your system from here: 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.

The recent versions of XAMPP for Windows runs PHP 7.x which are NOT compatible with mbcrypt.
If you have a package like Laravel that requires mbcrypt, you will need to install an older version of 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.

you should install mcrypt with pecl on your xampp server:
./bin/pecl install mcrypt
then add to php.ini this code (extension block):
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.
http://php.net/manual/en/mcrypt.requirements.php
But if you really want to download it, just go to the mcrypt sourceforge page
http://sourceforge.net/projects/mcrypt/files/?source=navbar

Related

How to install imagick with heic for alternative php verison?

Got server with control panel. Cli working on php 7.2 with alraedy installed imagick with heic support. But my php-fpm with 7.4 version working on another dir, like /opt/php74/bin and got lower imagick lib version.
How to upgrade this version too?
I sorted this out in my installation. Make sure you have "apt install php7.4-dev" rather than for the 7.2. https://eplt.medium.com/5-minutes-to-install-imagemagick-with-heic-support-on-ubuntu-18-04-digitalocean-fe2d09dcef1

How to enable mcrypt php extension on xampp linux

I have installed xampp on my ubuntu machine through the installer having php version 7.2.4
Recently I need to enable Mcrypt PHP extension but I did not find it on php.ini file.
I have tried to modify php.ini following ways but it is not working
extension=mcrypt
What would be the easiest way to enable the mcrypt php extesion on xampp linux?
I have installed a PHP 7.0 version of xampp linux separately and found mcrypt available there but it is not available from PHP 7.1.
Its working well now with PHP 7.0 version without any prior change

How to properly install and run grpc with xampp and php

Am working with php applications and the library that I want to use requires
1.) GRPC extension
2.) PHP >= 7.0
3.) Install gRPC extension
pecl install grpc
4.) Then add grpc.so to php.ini
The SO link https://stackoverflow.com/questions/50222772/installing-grpc-for-localhost
I found here suggest the the use of grpc.dll
Am running xampp on WINDOW 7.
My only problem is how do I run pecl install grpc on xampp.
Again where do I get grpc.so
You can download pre-compiled grpc extension for windows from the PECL website: http://pecl.php.net/package/grpc. Click on the DLL icons.

Installing PHP CLI Extensions in Windows

I have PHP5 installed under Windows and IIs but now I find I need to install some additional extensions, but I have been having difficulty finding the specifi dll files for the extensions I need to install.
Specifically trying to install:
PHP CLI Extension
PHP MCrypt Extension
PHP Curl Extension
Curl
PHP documentation sates the dlls need to go into the C:\PHP\ext directory but I can not find the DLLs anywhere on the internet in order to install them.
Found similar question with other extension here Installing PHP extensions on Windows
But can not find any specifics for the extensions I need.
PHP Installation of extensions on Windows
PHP Manual
PHP CLI Extension Installation Command Line PHP on Microsoft Windows
PHP MCrypt Extension PHP Mcrypt
PHP Curl Extension PHP cURL

How do I install the php_gd2 extension in MAMP on a Mac?

I'm running MAMP 1.7.2 on a Mac and I'd like to install the extension php_gd2. How do I do this? I know that on Windows using WAMP I'd simply select the php_gd2 entry in the extensions menu to activate it. How is it done when using MAMP? I know that I can do it using MacPorts but I'd prefer not to make any changes to my default OS X PHP installation.
You shouldn't need to install the extension. I have 1.7.2 installed and running right now and it has GD bundled (2.0.34 compatible).
From the MAMP start page, click on phpinfo and you should see a GD section.
php.ini for MAMP 1.7.2 is located:
if using php5, here: /Applications/MAMP/conf/php5/php.ini
if php4, here: /Applications/MAMP/conf/php4/php.ini
hope that helps...

Categories