how to handle warning: PHP Warning unable to load php_openssl.dll on centos server No such file in unknown on line 0 - warnings

thanks everyone,
when I run php artisan tinker or any other php artisan command on my centos machine, it works find, but it shows warning,
PHP Warning unable to load dynamic library '/usr/*/*/*/php_openssl.dll' on centos server No such file in unknown on line 0
and then everything seems to work fine, how can I handle this warning?
is it something important? we are using this application internally,

Related

Apache not working on DigitalOcean droplet transfer

I’ve recently created a DigitalOcean droplet from a transferred snapshot.
I thought that recreating a droplet would have kept the original stack LAMP so that it would have worked out of the box.
MySQL seems to be working after re-installation, but I am getting an error message from APACHE.
I’ve tried to reinstall Apache, unfortunately it didn’t resolve the issue.
This is the error message I am getting:
Note: The original datacenter was located in New York, but I enabled and created the new droplet in Toronto.
Edit to include the Apache error Log:
[18-Jan-2022 18:09:01 America/New_York] PHP Warning: PHP Startup:
Unable to load dynamic library 'grpc.so' (tried: /usr/lib/php/20170718/grpc.so (/usr/lib/php/20170718/grpc.so: cannot open shared object file: No such file or directory ),
/usr/lib/php/20170718/grpc.so.so
(/usr/lib/php/20170718/grpc.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Anyone ever ran into this issue? Any suggestions on how to resolve this problem?
Any good documentation on a DigitalOcean droplet transfer would be appreciated.

ERROR :Could not load the script in /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL

I am getting this error when trying to create the database on kamailio.
I've used the following command : sudo /usr/local/sbin/kamdbctl create.
I've set the DBENGINE=MYSQL in kamctlrc file and saved as well. Still getting this error. Anyone please suggest me how to proceed. I've tried all possible ways but couldn't find the solution anywhere online.
ERROR :Could not load the script in /usr/local/lib64/kamailio//kamctl/kamdbctl.mysql for database engine MYSQL
ERROR: database engine not loaded - tried 'MYSQL'
The file kamdbctl.mysql is installed when you install db_mysql module. Be sure that module is installed. Next is a sequence to get the module installed:
make include_modules="db_mysql" cfg
make all
make install

having issues getting php to talk to mysql set up on a mac -

My friend has a mac - we got AMPPS set up so he can run Apache, PHP and MySQL.
We got it up running. I can talk to mysql using phpMyAdmin.
I am running codeigniter - its working fine - but I'm getting an error when it tries connect to the database
Fatal error: Call to undefined function mysqli_init() in
mysqli_driver.php on line 126
I have a feeling that I'm missing the mysql.so extension or module in the Apache install or the PHP install.
How do I install that on a mac, or which config file do I need to modify?
That error indicates that the mysqli.so module is not loaded. Check the results of phpinfo() to see where the configuration file is, and make sure the module's being included properly. Often times there is a separate ini file for each module that's separately installed.
Personally I'd stay away from mysqli and use something higher level like PDO. I'd also recommend installing something maintainable like MacPorts or Homebrew to run Apache/MySQL/PHP instead of a pre-packaged solution.

SOCI MySQL problems on OS X

My project is trying to incorporate SOCI for easy MySQL database access from C++. One of my teammates created a running SOCI test program in linux using the MySQL backend with only this link in his CMake file:
target_link_libraries(MyExecutable ${SOCI_LIBRARY})
Under Mac, however, when I try to run the program it errors out on the session creation line:
session sql("mysql", "service...")
with this error:
Error: Failed to find shared library for backend mysql
I definitely have MySQL installed and I definitely built SOCI with MySQL support, the make for SOCI even says it found MySQL libraries.
Should a CMake project using SOCI with a MySQL backend also link against MySQL or the SOCI MySQL plugin? I have tried going down that route but end up getting different runtime errors, like:
dyld: Library not loaded: libmysqlclient.18.dylib
Referenced from: MyExecutable
Reason: image not found
Any help would be greatly appreciated, I can provide our test program if needed, thanks!

Symfony2 Doctrine2 MS SQL Server connection on WHM/CPanel

SEE UPDATE BELOW:
I'm using Symfony2/Doctrine2 on CPanel and I need to make a connection to a MS SQL Server database. I keep getting an error saying
could not find driver
I've tried to install FreeTDS on WHM/CPanel following these instructions:
http://forums.cpanel.net/f5/definitive-freetds-installation-instuctions-88561.html
I also added an additional option to the PHP compilation (all_php5) so it looks like this:
--with-mssql=/usr/local/freetds --with-pdo-dblib=/usr/local/freetds
I then also added an entry to my php.ini file (/usr/local/lib/php.ini) that says:
extension= "mssql.so"
I rebuilt Apache/PHP after making all these changes but I still get the error saying the driver cannot be found. Anybody have this setup and know what I'm missing?
UPDATE:
So, instead of compiling FreeTDS, I found some packages through yum which I installed. I did, however, compile .so files for both mssql.so and pdo_dblib.so. They are now both referenced in my php.ini that I know is getting loaded. I can successfully use the mssql_* functions but PDO is still not working for me. I still get the the "could not find driver" error. I no longer have an all_php5 file since I don't think I need it anymore since I just compiled the .so files. Is this correct? What else can I do to get PDO working? Here is a screenshot of my phpinfo() page: