Downloading the binaries from PHP.Net I don't see any libeay32.dll and ssleay32.dll, but in the install.txt it says it is bundled:
php_curl.dll CURL, Client URL library functions Requires: libeay32.dll,
ssleay32.dll (bundled)
I have no problems with enabling cURL on my older PHP installation as these files are in there. I'm currently using UWAMP, but it seems the PHP.NET v7.2.7 packages doesn't have these DLLs as well.
Related
I've just installed plesk on centos 7, it has multiple php versions installed.
7.1.10 was turned on and was the preferred version to use
However, i've tried to install phplib but it never loads on 7.1.10.
Have installed phplib perfectly fine, yet when you place pdf.so on the php.ini file it never load the extension.
I then noticed that pecl was installing the files in /usr/lib64/php/modules when php claimed they were in /opt/plesk/php/7.1/lib64/php/modules
That got me thinking that it must be installing it on a different php version, so I turned on the default php version of 5.4.16 and what do we have? pdf.so now loads and displays pdflib in the php config page.
Any ideas how to get it working on php 7 under plesk?
I would recommend to do the typical installations steps.
download the current PDFlib package for your Linux (64-bit) PHP and unpack the archive on your server
pick the correct PDFlib PHP DSO for your used PHP version (see bind/php/php-*)
get the correct extension_dir path from your phpinfo() output.
copy the PDFlib PHP DSO to the extension_dir
determine the correct php.ini from the phpinfo() output
add extension=php_pdflib.so to the php.ini
after a restart of your webserver, you should see a "PDFlib" section in the phpinfo() output.
Please see also the PDFlib in PHP Howto or PDFlib 9.1 Tutorial, chapter 2.9 "PHP Binding" for more detailed introduction how to install PDFlib.
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 trying to install ssh2 on xampp
Xampp version : 3.2.1
PHP version : 5.4.19
Until now I have used following step to install:
download and copied libssh2.dll file to c:\windows\system32
php_ssh2.dll and php_ssh2.pdb files in the "ext" (e.g c:\xampp\php\ext) folder;
remove ; from this line extention:php_ssh2.dll in php.ini.
restart xampp
But I am getting error in log file:
unable to load dynamic library php_ssh2.dll
Can anyone help me with this?
A couple of things you may have missed :-
You need the Thread Safe (-ts-) version of php_ssh2
You need to make sure you get the 32 or 64 bit version to match your PHP/Apache and not to match your OS
You need the version of php_ssh2 that matches your PHP version i.e. 5.4
Having a look here for the download there is only a 32bit version of SSH2 compiled with VC9 available for PHP5.4, so you will have to ensure you have the 32bit version of XAMPP installed.
Oh and a final note, you do not need, and should not do, the copy of php_ssh2.dll into the c:\windows\system32 so remove the dll from this folder. PHP knows where to load its extensions from and putting files in c:\windows\system32 will only confuse things when you want to upgrade your version of XAMPP.
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 can I install APCu in Windows?
I found this. But I need a solution for Windows.
I use PHP 5.5.6 (I have the XAMPP package).
This short and straight to the point tutorial should help you
Install APCu on Windows
Assumptions
I assume that you know what is APC - Alternative PHP cache
You want to install APCu because APC is not compatible anymore with PHP 5.5.x
You want to install APCu for wamp, xampp. Mostly windows web development platforms for PHP
Instructions
Pre: All directory locations might be different for you depending on your wamp installation folder and your PHP/apache versions.
Go to http://pecl.php.net/package/APCu, there is a table with available releases
Choose whatever release suits you better (latest stable version that supports your php version)
Choose package from DLL list, depending on what Windows you are using:
PHP version (5.5 in your case)
x64 (64 bits) OR x86 (32 bits windows)
Thread Safe (for Apache compatibility)
Unzip the archive, copy php_apcu.dll in C:\wamp\bin\php\php5.5.6\ext.
Go to C:\wamp\bin\apache\apache2.4.9\bin open php.ini and add the following lines (I just added them at the end of the file):
[apcu]
extension=php_apcu.dll
apc.enabled=1
apc.shm_size=32M
apc.ttl=7200
apc.enable_cli=1
apc.serializer=php
This are recommended configurations located in INSTALL file from the php_apcu archive, excepting the location of the DLL file.
Restart wamp
Go to http://localhost/phpinfo.php and check if apcu configuration table appears and apcu is enabled
If you also want to use apcu for PHP CLI then you only need to add in C:\wamp\bin\php\php5.5.6\bin\php.ini the config lines you added at step 5 in apache's php.ini.
The end!
For those who want APCu with backward APC compatibility (1:1 replacement without changing codebase, for example apc_cache_info > apcu_cache_info)
Download php_apcu.dll from release page (choose proper PHP version, architecture and thread safety mode)
Download php_apcu_bc.dll from PECL
Save both files in ext dir under your PHP installation folder
Load extensions in php.ini:
extension=php_apcu.dll
extension=php_apcu_bc.dll
Configure APCu in php.ini
[APCu]
apc.enabled=1
apc.shm_size=32M
apc.ttl=7200
apc.enable_cli=1
apc.serializer=php
INFO: APC extension with APCu-BC 1.0.3 must be named exactly php_apcu.dll in order to work. When I named it php_apcu_bc-1.0.3-7.1-ts-vc14-x86.dll XAMPP did not start properly (error about missing php_apc.dll)
Additional Note: the downloaded zip file from the source above for vc15 contained a file named php_apc.dll (in file: 'php_apcu_bc-1.0.4-7.2-ts-vc15-x86.zip' date: 13/06/2018) - just renaming it to php_apcu_bc.dll worked.
It matters if you use the thread safe or non thread safe version of the DLL. For me only the NTS worked in Windows 10 x64 and PHP 7.4 using the PHP built in server.
It was confusing because the error msg PHP gave when run php -i was Unable to load dynamic library 'php_apcu.dll' (tried: ext\php_apcu.dll) as if the file was not there.
Please refer to the official documentation:
https://secure.php.net/manual/en/opcache.installation.php
In my case, I'm using PHP 5.6 on XAMPP
and everything I need to do is to update my php.ini file with (recommended settings):
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1