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
Related
I have installed Homestead and I am trying to work on a Laravel project version 4.2 however I keep getting the following error:
Mcrypt PHP extension required.
I have already installed Mcypt installed on the server and I have enabled it into the PHP 7 ini file. This problem does not want to go away for some reason.
Any recommendations to what I can do in order to enable Mcrypt on my virtual box please?
Since php7.1 mcrypt is deprecated so you have to downgrade php to php7.0
or install multiple versions of php but don't forget to enable the right
version inside your http server config file
or you can use php built in sever like :
cd project_dir/
php7.0 -S localhost:8000
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
I was installed XAMPP with php version 5.3.
Now i install newer XAMPP with php 7.1
I check php version on localhost is 7.1 but when i check it on terminal with command php -v then it show php 5.3.
So, How can i disable php version 5.3 and use only 7.1?
I use OSX 10. Thank you!
If you are using XAMPP as a server then the other version of PHP doesn't matter. XAMPP will use the version it installed
My website is using Xampp version 1.7.1 and it contains apache 2.2 and php 5.2.9,
I got a requirement from client, to change apache 2.2 to 2.4.
Our application is a product and it is delivering as an installation package to clients.And we are using Xampp standalone version in the installation
So i used latest Xampp 1.8.1 which already have this apache 2.4.But the latest Xampp version using the latest php engine(php 5.4) .So our site is not working with this latest version (earlier it was php 5.2.9).
To fix this issue i replaced php folder in latest Xampp with older version php.
and used patch delivered by the Apache Lounge
[ https://www.apachelounge.com/download/ ] - https://www.apachelounge.com/download/win32/modules-2.4/php5apache2_4.dll-php-5.2-win32.zip
Everything working fine now but there is an issue with mcrypt extension
I have enabled the mcrypt extension in the php.ini. But this is not getting enabled. I am getting error while using the mcrypt_decrypt() in php.
You need to download mcrypt from sourceforge.net
You may find additional details on requirements and installation link
Do ensure that file php_mcrypt.dll is in xampp/php/ext/ directory alongwith libmcrypt.dll in xampp/apache/bin in case you are using windows..
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...