How to load openssl.so dynamic library in PHP 5.2.1 - php

I recently installed MAMP version 1.6 on my MAC OS 10.5.7. Now I am running a script to connect to a site using ssl.
After some research, I added the following line to my php.ini(under the extensions part)
extension=openssl.so
However When I reestart my Apache server I get this Warning:
[15-Jul-2009 16:30:39] PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20050922/openssl.so' - (null) in Unknown on line 0
I checked and in fact there is no openssl.so in that folder, am I missing something?. Do I need to recompile php for it to show?. How can i accomplish that?.
Any help will be greatly aprecciated.
Thank you.
-Oscar

You can try using the dl function to dynamically load the openSSL extension:
dl('openssl');
It is highly likely that MAMP does not have openSSL support enabled, in which case you might want to consider using macports to install your LAMP stack. You can find out if MAMP has openSSL support by adding this to a PHP file:
phpinfo();
exit();
And look for a configuration line that starts --with-openssl.

Note: dl() is deprecated as of PHP 5.3.0 and will be removed in 6.0.0.
See: http://www.php.net/manual/en/function.dl.php

Related

MongoDB PHP Driver on OS X Mojave Issues

I'm running the default version of PHP that is packaged with Mojave. PHP 7.1.19. I've installed the PECL mongodb driver 1.5.3. To get the PECL mongodb driver install I had to disable csrutil in recover mode. When csrutil is disabled the driver works. When I re-enable csrutil the driver can no longer be loaded.
I receive this error.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20160303/mongodb.so' - dlopen(/usr/lib/php/extensions/no-debug-non-zts-20160303/mongodb.so, 0x0009): code signature in (/usr/lib/php/extensions/no-debug-non-zts-20160303/mongodb.so) not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed. in Unknown on line 0
From the looks of it, it seems like it's because of an unsigned package. I have no idea what I can do to resolve this issue. Does anyone have any thoughts?
I ended up just tossing out the default mac os version of PHP and used Homebrews PHP 7.2 version. This solved my issues. By using Homebrews version you don't need to turn off csrutil.
Good reference for help with the install.
https://getgrav.org/blog/macos-mojave-apache-multiple-php-versions

php_pdo_oci.dll is not found on PHP 7 although commented on PHP.ini

I have error on my codeigniter application on upgrading from PHP 5.6 to PHP 7.0 .
My codeigniter is using MYSQL database and IIS web server.
I noted that php_pdo_oci.dll extension has deprecated on PHP 7.0 .
I learn that this extension is for Oracle.
Since the app does not even use Oracle , why is this extension library required to be loaded? Has Anyone ever experienced this? How do we turn off the file load, php_pdo_oci.dll ?
Thanks.
A PHP Error was encountered
Severity: Core Warning
Message: PHP Startup: Unable to load dynamic library 'C:\Program Files
\php70\ext\php_pdo_oci.dll' - The specified module could not be
found.
Filename: Unknown
Line Number: 0
It is a part of Oracle C Interface you can disable the extension in your php.ini by commenting that line will do the trick or if you want to install that extension try this
refer : PHP unable to load dynamic library "php_pdo_oci.dll"
I had the same problem first go to you php.ini and comment out the pdo_oci
and after that open xampp and you will find 4 options in the xampp horizontal to apache start/stop admin config go to config and php.ini and comment the php_pdo_oci there also and you are done

Datastax Cassandra PHP extension in WAMP

I am using WAMP with php v5.5.12.
Trying to install datastax php driver(https://github.com/datastax/php-driver).
1. I take the compiled dll file from here and put it in /ext folder
2. Add the extention=php_cassandra.dll to php.ini
3. Restarting WAMP server
I get this error in wamp php error log:
[28-Jan-2016 07:32:57 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.5.12/ext/php_cassandra.dll' - The specified module could not be found.
Also installed Pear package, but there are no changes.
Does anyone here experience with cassandra new driver on windows?
What can be the problem?
I could not either make the .dll found on the pecl php site work. Same error.
But the .dll found here works!
http://downloads.datastax.com/php-driver/windows/cassandra/
You will need to use the Thread Safe version (TS) and of course the one for PHP5.5. Also you need to use the x86 if you WAMPServer is the 32 bit and the x64 if WAMPServer is the 64bit version
That dll should be place into the \wamp\bin\php\php5.5.12\ext folder

how to install php_sdo with xampp lite

Actually I was using SDO_DAS_XML::create(); function in my php code and it requires php_sdo.dll. So I install it from net and save this at C:\xampplite\php\ext location after that I add this to my php.ini file. But it still not working even when I start apache from xampp it shows warning
PHP Startup: sdo: Unable to inilialize module. *Module compiled with module API =20060613. PHP compiled with module API=20090626.* These options need to match.`
Please help me how to add php_sdo with my xampp. I am using windows xp.
what i conclude from this post is that the dll file you downloaded might be compiled for a version of PHP older to the one you have..you can try this dll file as it's not giving me problem with PHP 5.3.1

php_mcrypt extension for windows server 2008 R2

I found lots of articles about this problem, however none of them helped me.
Here is a I list of what I 've already tried:
uncomment the semicolon on php.ini
add the dependence file (libmcrypt.dll) on php folder, windows and
windows/system32
I 've restarted the IIS Server after each attempt
I cannot use this method, it was installed with a zip file.
On IIS Manager the extension is shown as enabled but checking the php error log I found this message multiple times:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\v5.3\ext\php_mcrypt.dll' - %1 is not a valid Win32 application. in Unknown on line 0
Here is a the screenshot of phpinfo()
I have Windows Server 2008 R2 64bit with IIS 7.5 and PHP 5.3.10. Maybe the file (php_mcrytp.dll) is not the good one, where can I download it? On php site I cannot find the php_mcrytp.dll file under ext folder.
Thank you
If you downloaded PHP for Windows from php.net and are running the FastCGI version of PHP (as you should with PHP 5.3.x and IIS), mcrypt library is already compiled statically in the PHP engine. You don't need to install any extra DLL.
If you see the mcrypt section in phpinfo's output then it means mcrypt is already enabled (otherwise the mcrypt section would be missing).
And that's also the reason there is no mcrypt DLL.

Categories