I have deployed WordPress on debian VM on GCP.
I am getting an error:
Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected.
I have run below commands to install soap client:
sudo apt-get install php-soap
After installation, it is still same showing same error.
When I checked the php version, it shows below warning
PHP Warning: PHP Startup: Unable to load dynamic library 'soap' (tried: /usr/lib/php/20190902/soap (/usr/lib/php/20190902/soap: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/soap.so (/usr/lib/php/20190902/soap
.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
What to do to remove this error?
Seems to be that the php7.3-soap package is corrupted, please try reinstalling it and after that restart the Apache service, then validate the error is no longer present.
$ sudo apt-get reinstall php7.3-soap
$ php -m | grep soap
$ php -v
Please note that Debian 10 (buster) default Php version is 7.3.
Related
Using PHP 7.4 & Ubuntu 20.04 LTS
I have installed GRPC using these steps:
sudo apt-get install autoconf zlib1g-dev php-dev php-pear
sudo pecl install grpc
I then added the following line to the folder shown for both cli and fpm
extension=grpc.so
/etc/php/7.4/cli/php.ini
/etc/php/7.4/fpm/php.ini
When I then run php I get the following error:
PHP Warning: PHP Startup: Unable to load dynamic library 'grpc.so' (tried: /usr/lib/php/20190902/grpc.so (/usr/lib/php/20190902/grpc.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/grpc.so.so (/usr/lib/php/20190902/grpc.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
After install pecl outputted that it was installed here:
/usr/lib/php/20200930/grpc.so
Trying to be clever I thought I could just copy the file to where php was expecting it:
sudo cp /usr/lib/php/20200930/grpc.so /usr/lib/php/20190902/grpc.so
But when you run php after you get the following:
PHP Warning: PHP Startup: grpc: Unable to initialize module
Module compiled with module API=20200930
PHP compiled with module API=20190902
These options need to match
Any ideas?
Install with the below command
sudo pecl -d php_suffix=8.1 install grpc
Initially i had php7.4 and php8.1 versions. Default version was php8.1 and was trying to install for the same. But for some reason it was installing in the wrong folder (/usr/lib/php/20200930/grpc.so). Removing php7.4 did not help.
Installing specific to php8.1 solved the issue.
Make sure to remove any previous versions
sudo pecl uninstall grpc
same issue anyone
PHP Warning: PHP Startup: Unable to load dynamic library 'grpc.so' (tried: /usr/lib/php/20190902/grpc.so (/usr/lib/php/20190902/grpc.so: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/grpc.so.so (/usr/lib/php/2
0190902/grpc.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
I'm setting up square api, integrated it in client side and now working on server side but for that i need to manage dependencies with composer, while installing composer I got above error.
I was installing composer, when i run composer install, composer was installed but I got the PHP warning in addition i.e
PHP Warning: PHP Startup: Unable to load dynamic library
'cassandra.so' (tried: /usr/lib/php/20170718/cassandra.so
(/usr/lib/php/20170718/cassandra.so: cannot open shared object file:
No such file or directory), /usr/lib/php/20170718/cassandra.so.so
(/usr/lib/php/20170718/cassandra.so.so: cannot open shared object
file: No such file or directory)) in Unknown on line 0
I googled and tried all the solutions that have already been done, but none worked to mine. I have tried:
To find out cassandra at php.ini in /etc/php/7.2/cli but i did't find it.
To install Cassandra by using command sudo apt-get install php-cassandra in /usr/lib/php/20170718, but it still shows the same error.
Update and upgrade the Ubuntu, to make sure that there are no internal errors, if there was any?
I expect to install cassandra and load it dynamically.
The DataStax PHP driver extension is a wrapper around the C/C++ driver and requires installation of all of its dependencies:
C/C++ driver
libuv 1.x
OpenSSL v1.0.x or v1.1.x (depends on how your PHP is built)
The GNU Multiple Precision Arithmetic Library
Since you are using the PHP driver with PHP v7.2 you will need to build the extension as their are no pre-built binaries for this version of PHP:
git clone https://github.com/datastax/php-driver.git
cd php-driver/ext
phpize
cd ..
mkdir build
cd build
../ext/configure
make
sudo make install
Note: The development packages of all of dependencies will be required in order to properly build the extension.
Once the driver is installed you will need to edit your php.ini file to enable the extension which can be located by executing php -r "echo php_ini_loaded_file();":
; DataStax PHP Driver for Apache Cassandra
extension=cassandra.so
To ensure the the driver is being properly loaded via CLI you can execute the following:
php -m | grep cassandra
or
php -i | grep -A 10 "^cassandra$"
php -m will print out all the extension/modules that PHP was able to load whereas php -i will display more verbose information about your PHP installation configuration.
i am trying to install php5-ldap extension on my server which is ubuntu 16 and this server has no access to the internet, how do i go about?
Note: i have tried .deb files still i have not managed to solve the problem,
but when i used .deb files this error was coming out
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/ldap.so' - /usr/lib/php/20131226/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20131226/ldap.so' - /usr/lib/php/20131226/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
Please someone help me to figure this out.
thank you in advance.
You can simple install on ubuntu desktop and copy this binary extensions to /usr/lib/php/20131226/ldap.so but this bad way. Better way download source and copy to server
$ cd /path/to/source
$ phpize
$ ./configure
$ make
$ make test
$ make install
but I can't find this extension, I think you need compile php with support ldap --with-ldap
I recently installed EHCP with all the necessary packages and now everytime I try to run my laravel project by typing php artisan serve, I get the following error:
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php/20151012/mysql.so' - /usr/lib/php/20151012/mysql.so:
cannot open shared object file: No such file or directory in Unknown
on line 0
Please help, thank you.
Do you have the mysql extension installed? If not, you may need to install it.
apt-get install php-mysql
In ubuntu 16.04 and above (as I can remember), this will install the module for PHP7 by default. So you need to check your php version and install the relevant one.
Ex: apt-get install php5.6-mysql
Then check you have the module installed by running:
php -m | grep mysql
Hope it helps!
I have installed curl in ubuntu server using this command
sudo apt-get install curl php5-cli git
it's succeeded now i am trying to enable this extension in php on linux platform.so i commented out the extension=php_curl.dll line in php.ini .But it giving this error
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php/20131226/curl.so' - /usr/lib/php/20131226/php_curl.dll:
cannot open shared object file: No such file or directory in Unknown
on line 0
i got this error while confirming the whether curl is enabled in php with this command
php -i | grep curl
please help with me how to enable curl extension in php on linux platform
You've installed Curl, and you've installed PHP, but I think you are missing the PHP-Curl integration libraries.
sudo apt-get install php5-curl
This is available from the main repository in 14.04 - http://packages.ubuntu.com/trusty/php5-curl
However from 16.04 onwards only PHP7 is included by default, so you'll probably have to use a 3rd-party PPA.