I'm trying to load an extension on my PHP site:
$db->loadExtension('libdbplusql_81203.so');
PHP.ini:
sqlite3.extension_dir = /usr/lib/php/20180731
Error-Log from Apache2:
PHP Warning: SQLite3::loadExtension(): /usr/lib/php/20180731/libdbplusql_81203.so.so: cannot open shared object file: No such file or directory in /var/www/pdb/index.php on line 76
Can't figure out why this is not working.... and it's weird, that in the error log it says ".so.so" - when I change my code to:
$db->loadExtension('libdbplusql_81203');
Error Log say:
PHP Warning: SQLite3::loadExtension(): Unable to load extension at '/usr/lib/php/20180731/libdbplusql_81203' in /var/www/pdb/index.php on line 76
Maybe you have an idea :-)
Related
I try to load PHP from console (in windows) and when I run phpinfo.php the line
Loaded Configuration File => (none)
but when I run this pagin in web browser I see it:
Loaded Configuration File C:\MAMP\conf\php5.6.28\php.ini
My problem appear when I try to install symfony
Warning: readfile(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in Command line code on line 1
Warning: readfile(https://symfony.com/installer): failed to open stream: Invalid argument in Command line code on line 1
I can't able to download this file from console, can anyone help me please?
When I want to scrap data from https site, I get this warning:
file_get_contents(): Unable to find the wrapper "https" - did you
forget to enable it when you configured PHP? in
C:\wamp\www\Demo\simple_html_dom.php on line 76 Warning:
file_get_contents(https://www.google.com.pk/?gws_rd=cr&ei=wqsUWObDHYbhvgTAworgBQ):
failed to open stream: No error in
C:\wamp\www\Demo\simple_html_dom.php on line 76
I tried all the things like uncomment extension=php_openssl.dll and On allow_url_include. Is there something else that I can do?
Are you sure that you're editing the right php.ini file?
Under WAMP there are two php.ini files one for the cli and one for apache.
Maybe your apache is compiled without the php-openssl lib.
Could you provide your phpinfo() settings?
I get this error every now and then on my websites. After some Googling, I noticed that Linux doesn't support .dll files - but how do I get rid of this message?
Full error message:
A PHP Error was encountered
Severity: Core Warning
Message: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/php_openssl.dll' - /usr/local/lib/php/extensions/no-debug-non-zts-20121212/php_openssl.dll: cannot open shared object file: No such file or directory
Filename: Unknown
Line Number: 0
Backtrace:
Seems like php_openssl.dll was being included from my php.ini, I commented this line out and it works!
every time when a page of my site is loaded by someone i got these error in my error log file
PHP Warning: Module 'PDO' already loaded in Unknown on line 0
PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/pdo_mysql.so:
how to resolve this error please help me
i dont know how to access these file etc
You are using cPanel control panel so you need to check /usr/local/lib/php.ini file on your server.
My site was developed using CodeIgniter and was working fine before but now it's showing an error.
When I checked error log it's showing:
[07-Jul-2012 09:17:11] PHP Warning: PHP Startup: Suhosin Extension does not officially
support PHP 5.2 and below anymore, because it is discontinued. Use it at your own risk. in
Unknown on line 0
[07-Jul-2012 09:17:11] PHP Warning:
require(/home/maya3d/public_html/system/codeigniter/Common.php) [href='function.require'>function.require]: failed to open stream: No such file or directory in /home/maya3d/public_html/system/codeigniter/CodeIgniter.php on line 38 [07-Jul-2012 09:17:11] PHP Fatal error: require() [href='function.require'>function.require]: Failed opening required '/home/maya3d/public_html/system/codeigniter/Common.php' > (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/maya3d/public_html/system/codeigniter/CodeIgniter.php on line 38
Can anyone please help me to fix it?
Log into the server and run:
ls -l /home/maya3d/public_html/system/codeigniter/Common.php
If it says the file doesn't exist then there's your problem. It could be permissions related as well.