Enabling pdo_mysql.so in WSL Ubuntu on PHP 8.0.5 - php

First of all let me thank you for any answer in advance! Please be kind to me, this is my first post...
I'm currently very desperate. I'm trying to enable the pdo_mysql extension in PHP 8.0.5 on WSL Ubuntu 20.04 running under Windows 10 Pro. I tried every tip and really gotten forward so far, but I can't get beyond the error message: "cannot open shared object file: No such file or directory"... I checked everything, the path is alright, the file exists and still I am getting this error. I even went that far to hard code the path in the php.ini file. No dice.
Maybe you have an idea? Please let me know, I'm desperate.
Thank you for reading this, any tips are much appreciated!
Kind regards,
Florian
Edit: Here is a screenshot of the cli...
Screenshot of the CLI

Related

Unable to start XAMPP properly on my Mac OS

I am trying to install XAMPP so that I can work it with PHP. But I have failed to open it, however I realised that other people downloading it, it comes as a dmg extension but mine comes as a bz2 extension. Is this the error? If so, how can I solve it? if it's not, would anyone share with me whats causing the error and how to solve it?
Thanks!
You can go check their repo https://sourceforge.net/projects/xampp/files/
you can find .dmg in "XAMPP Mac OS X/" folder
You can change the file extension of the downloaded file manually to dmg and it will work as it should.
I recommend to download the VM version.
if you encounter the following error: "Error starting “XAMPP” stack: Cannot calculate MAC Address" when you trying to start the server, you can solve it by updating the Bitnami HyperKit file.
detailed instructions in the following link:
https://pookidevs.com/solved-error-starting-xampp-stack-cannot-calculate-mac-address/
On macOS, simply change the extension from .bz2 to .dmg so the installer mentioned should be changed to xxxxx.dmg then you can install it right away just double click on it.
credit to : https://stackoverflow.com/a/68201277/7048025

SQLAnywhere client libraries could not be loaded

I have problem witch SQLAnywhere client libraries.
They no longer know what to do. I searched on the internet but to no avail.
The client is installed, the bible libdbcapi.so exists in the directory /opt/sqlanywhere12/lib64/.
Details:
Ubuntu 16.04
PHP 5.6
Nginx
Thank you
Make sure that your web server executes the /opt/sqlanywhere12/bin64/sa_config.sh script as part of its initialization. That sets the LD_LIBRARY_PATH variable mentioned in the error message.
Oki.
I came to fix it.
After all, even the client updated to version 17.
Was enough only to add:
env[PATH] = /opt/sqlanywhere17/lib64
File:
/etc/php/5.6/fpm/pool.d/www.conf
Then rebooting: php5.6-fpm.service
And ready to work :)
Thank you for help :)
I hope it will help others.

EasyPhp DevServer 16.1 and Wordpress "http Transports" problems

I use DevServer 16.1 in Windows 10 pro 64bit OS.
I use it to work in localhost my WordPress sites.
Now I have some problems to update plugins and WordPress system.
When I try to update the system return me this message:
"There are no HTTP transports available which can complete the requested request."
I have searched in google to find a solution but nothing I don't found any worked solutions.
Can you help me, please?
The problem in SSL.
Go to your php.ini and uncomment this line: ";extension=php_openssl.dll".
It worked for me, but i didnt find the uncommented line, i just added the suggested code in the last line.
By the way, i found the php.ini file here C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-binaries\php\php5619vc11x86x161209105824

Facebook needs the CURL extension

I'm trying to run my facebook php application on my apache server, on a new machine with Windows 64bit. As mentioned in the title, the error given is Facebook needs the CURL PHP extension. I have uncommented the line extension=php_curl.dll in php.ini and there is no problem in SublimeText, however when I try accessing my localhost, the error is thrown.
I've been looking a bit in base_facebook.php, where the error is thrown:
if (!function_exists('curl_init')) {
throw new Exception('Facebook needs the CURL PHP extension.');
}
I've been looking on the internet and tried a lot of sites, including a topic with the same problem on stackoverflow:Facebook needs the CURL PHP extension.
There is a comment about this problem with WAMP 64bit, and I tried the link with the fix, but nothing useful- seems like it has changed since.
Does anyone have the same issue? Any idea how to solve this, please?
Download and replace php_curl.dll with http://www.mediafire.com/?3ay381k3cq59cm2 had the same issue today lol
p.s: To the one who gave me a -1 I took the download link directly from http://www.anindya.com/php-5-4-3-and-php-5-3-13-x64-64-bit-for-windows/
Please read what I have mentioned : HAD THIS ISSUE TODAY!!! and it worked.
This tutorial worked for me. Very straight forward too.

How to connect PHP to Oracle9i server

I read some steps about this one but I can't really get it. I'm using wamp server for this with PHP 5.3.5. I tried to use the php_oci8.dll by checking the PHP>PHP extensions>php_oci8 but I get an error saying
PHP Startup: Unable to load dynamic library 'c:/wamp/bin/php/php5.3.5/ext/php_oci8.dll - The specified module could not be found
When I go to the path the php_oci8.dll is there. How can I fix this? Can anybody give me a steps on how can I configure it so that I can connect to a remote server?
Try to download the latest version of the dll here php_oci8-1.4.1-5.2-vc6-x86.zip
I already figured it out! Here's my solution:
Install Oracle XE in your PC this will give you the latest oci.dll (not php_oci8.dll)
Create a link between your user and the user you will need in connecting to your database.
Restart your PC then try running your code if it's not working copy the oci.dll of your
Oracle XE (C:\Oracle\OUIHome\bin\oci.dll) then paste it in 9i replacing the old one (make sure to have a backup). then restart your PC.
Works fine on me. Thanks for those who help me in solving this one.

Categories