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
Related
I'm trying to install laravel-excel on my laravel project. That library requires below php extensions to be enabled.
PHP extension php_zip
PHP extension php_xml
PHP extension php_gd2
PHP extension php_iconv
PHP extension php_simplexml
PHP extension php_xmlreader
PHP extension php_zlib
I changed the php.ini accordingly. But I can't download related .dll files to copy to ext folder.
Do you have any place to download these?
Download them from PHP Extension Community Library (PECL)
For example this is the php_zip source that you need:
https://pecl.php.net/package/zip/1.12.4/windows
Similarly you can get the rest of them.
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 am using WAMP 2.4.9 on Windows 7. PHP version is 5.5.12. I downloaded the latest available version of PHP-FF-MPEG. I added the extension files as directed, but when I try to start the WAMP with instruction to load extension php-ffmpeg.dll in php.in, an error message shows up saying:
PHPStartup: ffmpeg: Unable to initialize module Module compiled with
module API=20100525 PHP compile with module API=20121212 The options
need to match.
I searched the error and found that I must compile both the PHP and the extension causing such error from source code. I found an example for compiling php with php-profiler extension from source code. But it was a PECL extension. The directory structure and files are different in PHP-FFMPEG than that of PHP Profiler.
Please help me how can I compile PHP and PHP-FFMPEG? Note that I have successfully compiled PHP with PHP-UProfiler.
The way you are trying to install ffmpeg will create compatibility problems. So i would suggest you to install ffmpeg windows build as standalone. After installing create Environment variable for ffmpeg.
Then you can execute ffmpeg from php exec() method :
<?php exec("ffmpeg -i input.mp4 output.avi") ?>
If you deploy your code in production environment on Linux then you can also install ffmpeg on linux as well. check ubuntu installation for ffmpeg here
I created an extension based on some tutorials and began to develop extension using eclipse IDE with PHP source.
I compiled the extension independently using phpize not compiled with whole PHP. Now I have the .so file then I moved it to the /usr/lib/php5/20090626+lfs directory and updated php.ini file, these locations are for already installed php. not from the source where I compiled the extension. (installed PHP and PHP source both are same version PHP 5.3.10 so that i can run the extension on already installed locations)
here is my question,
How do i test my extension using the same php source which i used in eclipse. I don't want to install the PHP that resides in eclipse work space again but how do we specify the php.ini and load extensions in compiled php source itself?
I've installed the sphinx binaries and libraries and am now trying to install the PECL sphinx module.
My system is running OS X 10.6 with MAMP 1.8.2 installed. I try to install sphinx using the following command:
sudo pecl install sphinx
The PECL command outputs the following:
running: phpize
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
The versions above don't match the versions listed when doing a phpinfo(). It seems that PECL is trying to complie against the built-in version of PHP.
If I ignore the errors and continue the it will successfully compile and place the sphinx.so file in:
/usr/lib/php/extensions/no-debug-non-zts-20090626/sphinx.so
when in fact it should be:
/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/
I've tried copying the sphinx.so file to the MAMP extensions dir but when I restart apache PHP displays the following warning:
PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613/sphinx.so
I think this is because MAMP is 32bit and the built-in PHP is 64bit so PECL complies for 64bit. I might be completely wrong but I did read this when I goggled on the topic.
Does anyone know how to get PECL to map to the MAMP version of PHP instead of the built-in version?
If the "correct" version of PHP is installed in something like /Applications/MAMP/bin/php5/, and has the development tools included, you should have some version of the pecl command to go with it, some next to that directory.
If so, running that pecl command that corresponds to your "correct" version of PHP should help : it'll run the correct version of phpize, and will allow the extension to be compiled against the (once again) correct version of PHP.
You just have to hope that MAMP includes those commands -- I cannot check, as I don't have a mac.