I have curl and openssl extensions on.
Can you PLEASE CONFIRM that they are indeed LOADED for PHP 7.4.12? You can easily test this by running a phpinfo() file.
Thread Starter
Bloke
(@bloke)
They are not showing in phpinfo. They do appear in <?php phpinfo(); ?> There are in my extension directory c:/wamp64/bin/php/php7.4.12/ext/ And they do have a green check next to them in Wamp.
-
This reply was modified 3 years, 4 months ago by Bloke.
-
This reply was modified 3 years, 4 months ago by Bloke.
I’m not sure how WAMP works… but as explained on the OFFICIAL PHP documentation, the phpinfo();
function “outputs a large amount of information about the CURRENT STATE of PHP” (emphasis mine).
So if curl
and openssl
extensions are not appearing in phpinfo();
it simply means they’re not loaded… ie PHP is not aware of their existence… irrespective of what WAMP may be telling you.
You mentioned updating WAMP and PHP. Could it be that you have multiple versions of PHP on your computer now that’s causing this discrepancy?
Thread Starter
Bloke
(@bloke)
When I switch back to PHP 7.0.10 the updates will work and extensions will load. But I need 7.4.12 for my phpmyadmin and website to work.
You should check the Apache configuration and make sure the PHPIniDir
setting is pointing to the correct php.ini
file, and the correct php7_module
file is being loaded in a LoadModule
setting. I don’t know how Wampserver works, but updating PHP does not normally update Apache settings…they must be updated manually.
After insuring Apache is loading the correct files, make sure the php.ini
file contains the following entry:
extension_dir = c:/wamp64/bin/php/php7.4.12/ext
and also make sure the appropriate extensions are being loaded.
Thread Starter
Bloke
(@bloke)
Yes the extension directory is correct see above.
Please check the c:/wamp64/bin/php/php7.4.12/ext
directory for the existence of the two extension files. Windows PHP distributions name them php_openssl.dll
and php_curl.dll
. If those are the names of the files, then check php.ini
and make sure you have the following two lines:
extension=php_openssl.dll
extension=php_curl.dll
The lines MUST contain the actual file name, not something like extension=openssl
. The latter format is only valid with PHP 8.
I noticed that you posted a support request on the Wampserver site. If the above does not help, you’ll need to follow up there because this isn’t a WordPress issue.
Thread Starter
Bloke
(@bloke)
Yes those two files are there. And in WAMP I see both are checked. But when I try to open PHP.ini it tried to open it from here and says its not found C:\wamp64\bin\apache\apache2.4.23\bin