I'm trying to cross to mint11, but xampp installation is giving me a headache!!
So I installed xampp, then installed xdebug, via xdebug pages, (i went with tailored installation, so my xdebug file is ok). I try to debug in NetBeans and nothing, it says waiting for connection. I can see that it is installed via phpinfo(), but when i try to hit
$php -i | grep xdebug
the output tells me that remote_enabled is off, although i edited it in php.ini.
Also, i get this in the beginning :
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/mysql.so' - /usr/lib/php5/20090626+lfs/mysql.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/php5/20090626+lfs/mysqli.so' - /usr/lib/php5/20090626+lfs/mysqli.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/php5/20090626+lfs/pdo_mysql.so' - /usr/lib/php5/20090626+lfs/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
/etc/php5/cli/conf.d/xdebug.ini
the [phpinfo()] output tells me that remote_enabled is off, although i edited it in php.ini.
You need to enable that remote_enabled setting, otherwise it won't work with NetBeans.
It's most likely you are editing the wrong php ini file.
The mysql*.so errors you see are most likely not related to xdebug, locate the lines in the diverse .ini files that are scanned and comment those so you don't get distracted by that error.
Then locate the right place where to configure xdebug, most likely in:
/etc/php5/cli/conf.d/xdebug.ini
Related
I am trying to install composer on my system but I am receiving an error "PHP Warning: PHP Startup: Unable to load dynamic library 'gd2'". I downloaded and placed the required gd_2.dll file in the folder. Checked php.ini for extension_dir and it has the absolute path E:\xampp\php\ext. Everything seems fine but I am still receiving this error. Please have a look at the screenshot below. In the image you can also see that I have the required .dll file highlighted which means I have the file that the installer reported as missing.
What should I do now?
I guess you have just installed PHP 8. Open your php.ini and locate the line near the bottom of the file:
[PHP_GD2]
extension=php_gd2.dll
Change the extension name from php_gd2.dll to php_gd.dll (this should match the one existing in your ext directory) and save the php.ini. Run the Composer installation again.
(PHP 8 somehow renamed php_gd2 to php_gd.)
I used to have this extension running before my reinstall of php. phpinfo() shows my ini file is located at /etc/php/7.4/apache2/php.ini
In the php.ini file I have:
extension=/usr/lib/php/20190902/libpuzzle.so
The error.log shows:
PHP Warning: PHP Startup: Unable to load dynamic library
'libpuzzle.so' (tried: /usr/lib/php/20190902/libpuzzle.so
(/usr/lib/php/20190902/libpuzzle.so: cannot open shared object file:
No such file or directory), /usr/lib/php/20190902/libpuzzle.so.so
(/usr/lib/php/20190902/libpuzzle.so.so: cannot open shared object
file: No such file or directory)) in Unknown on line 0
I don't know why but in the log it says: libpuzzle.so.so. So I also created a libpuzzle.so.so in addition to libpuzzle.so. Restarted Apache and still, phpinfo will not show libpuzzle nor does libpuzzle work. Libpizzle required the GD library and I have the gd library installed and enabled. I verified the file exists and the permissions are root:root 644 just like all the other extension.
php -m does not show it as loaded either.
I am lost now and don't know where to look to get this up and running. Any help on what to do next?
I would like to install Mongodb driver to Wamp so according the documentation I have downloaded mongo driver from this site and stored it in php/ext directory as the picture shows also in php.ini extension is included like next picture shows but php_error.log still shows me an error: [07-Nov-2018 09:33:56 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'mongodb' (tried: c:/wamp64/bin/php/php7.2.4/ext/mongodb (The specified module could not be found.), c:/wamp64/bin/php/php7.2.4/ext/php_mongodb.dll (The specified procedure could not be found.)) in Unknown on line 0
What am I doing wrong? Is there misssing something?
Make sure to restart Apache after make changes in php.ini, the architeture from .dll you have downloaded (compatible with your machine) etc, if the error persist, try this Reference, i had a similar issue, and i needed to put some .dll files (having nothing to do with mongo .dlls, yes it is strange!) from PHP installation to Apache bin directory.. Hope it helps!
I get this warning :
Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/php_openssl.dll: cannot open shared object file: No such file or directory in Unknown on line 0
You seem to be trying to load a Windows dll on a Linux machine. Windows calls these things .dll, where as Linux uses .so.
This error shows up because you have in one of your php.ini files, the statement extension=php_openssl.dll. You need to find that ini file, and remove that line. You can find the ini files that PHP uses, by:
php --ini on the command line
check output of phpinfo()s first section "Loaded Configuration File" and "Additional .ini files parsed"
After you have found the ini file(s), look in each of them for "php_openssl.dll", and remove that line. Then restart your Web server.
This is becoming a very frustrating issue. I am trying to do a clean install of apache 2.2 and PHP 5.2.11. Everything seems to be configured correctly but the php modules aren't starting...
PHP Warning: PHP Startup: Unable to load dynamic library '.;C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php/ext/php_mcrypt.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '.;C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php/ext/php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '.;C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php/ext/php_openssl.dll' - The specified module could not be found.\r\n in Unknown on line 0
in the php.ini
include_path = ".;C:\Program Files (x86)\Apache Software Foundation\Apache2.2\php"
extension_dir = ".;C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php/ext/"
All the files are there... The .dll files such as ssleay32.dll, libmcrypt.dll, libmysql.dll, libeay32.dll are all installed at...
C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php/
I also included them in the C:\Windows\System32
and even added C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php/ to the windows path.
I have no idea why this isn't working and it feels like a no win situation. Anyone have any ideas on how to get this all working ok?
Try this:
extension_dir = "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/php/ext/"
without starting with the .;
You just uncomment the extension_dir in php.ini
Just for my future self if no-else. This is with PHP 5.2.13 running in Windows on IIS 8.
I got the following error:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files (x86)\PHP\ext\php_openssl.dll' - The specified module could not be found.
From phpinfo() the loaded php.ini file was C:\Program Files (x86)\PHP\php.ini.
The extension directory:
extension_dir ="C:\Program Files (x86)\PHP\ext"
These were the last two lines of the php.ini file:
[PHP_SQLSRV]
extension=php_sqlsrv_52_nts_vc6.dll
[PHP_OPENSSL]
extension=php_openssl.dll
The php_openssl.dll and php_sqlsrv_52_nts_vc6.dll files are in the ext directory. The php_openssl.dll isn't corrupt (it's the same file size as one on another machine that's working).
PHP will find the sqlsrv dll but not the openssl dll. No idea why. No amounts of IIS restarting did anything.
The solution until I know better was to install the openssl.dll extension using the Windows PHP installer. You can re-run the installer and select 'Change' and it allows you to add or remove libraries. I can't see any difference in the file or the php.ini file now, but now the file loads.
I suspect actually that my problem was similar to this comment about OpenSSL installation on Windows:
At this point, when you start Apache it will attempt to load php_openssl.dll, but if your setup is anything like mine you will see an error. I prefer to start Apache manually, and the error appears in a dialog box: "The ordinal 4114 could not be located in the dynamic link library LIBEAY32.dll". (I'm not sure whether you would get this message if you started Apache as a service). The Apache log also contains an error message saying that php_openssl.dll cannot be loaded, though that message doesn't name libeay32.dll. Welcome to DLL Hell.
Libeay32.dll enters the picture because php_openssl.dll depends on it (and also on ssleay32.dll). What I think happens is that Apache first tries to load php_openssl.dll programmatically from the path specified by the extension_dir key. But then, the loading of the so-called dependent DLLs is left to Windows' default mechanism. If Windows finds an incompatible version of a dependent DLL, you get the error.
I noticed errors about ssleay32.dll when trying to run php -i from the command line. I just assumed that it didn't have it in the environment. IIS made no mention of any ssleay32.dll errors in its logs.
Had same errors, but instead of copying files added php folder to system path and restated the server.
Windows 8.1 have a bib problem with system PATH names what cannot editable with the general editor because this line is too long......and for PHP module extension good loading must to define PHP path in the system enviroments.
ONLY one thing helped for me:
https://rix0rrr.github.io/WindowsPathEditor/