Xdebug failed to run in php 7 in debug mode - php

I have compiled xdebug it added it to php.ini but this happens.
/opt/php/sbin/php-fpm
NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so' - /opt/php/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so: cannot open shared object file: No such file or directory in Unknown on line 0 , my php is in debug mode.
What should I do?
Edit
If I place the file inside the directory this other error happens:
/opt/php/sbin/php-fpm
NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/opt/php/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so' - /opt/php/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so: undefined symbol: _zval_ptr_dtor_wrapper in Unknown on line 0

Related

PHP Startup: Unable to load dynamic library 'php-qt-ng.so' - php-qt-ng.so: undefined symbol: _ZTI7QObject in Unknown on line 0

I installed PHP-CPP. After that I compiled and installed php-qt-ng. When I tried to debug given example test.php I got this error:
PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/php-qt-ng.so' - /usr/lib64/php/modules/php-qt-ng.so: undefined symbol: _ZTI7QObject in Unknown on line 0
Does anyone knows how to fix it?

Enable PDO module on CENTOS 6.9 using EasyApache4

I have installed 7.1.7-1.1.1.cpanel and 7.0.21-1.1.1.cpanel on my VPS server running on Centos 6.9 using EasyApache4. I have a laravel API and an angular4 app that I want to run on the server but I am having problems getting PHP to run properly. After installing the site using git I get an error;
could not find driver (SQL: select * from site_menu_placements where
active = 1)
I have checked error_log and I see the following which is not making much sense to me;
[22-Jul-2017 00:57:11 UTC] PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0
[22-Jul-2017 00:57:11 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_mbstring.dll' - /opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[22-Jul-2017 00:57:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo.dll' - /opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[22-Jul-2017 00:57:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_firebird.dll' - /opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_firebird.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[22-Jul-2017 00:57:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_informix.dll' - /opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_informix.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[22-Jul-2017 00:57:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_mssql.dll' - /opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_mssql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[22-Jul-2017 00:57:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_mysql.dll' - /opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[22-Jul-2017 00:57:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_oci.dll' - /opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_oci.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[22-Jul-2017 00:57:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_oci8.dll' - /opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_oci8.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[22-Jul-2017 00:57:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_odbc.dll' - /opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_odbc.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[22-Jul-2017 00:57:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_pgsql.dll' - /opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_pgsql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[22-Jul-2017 00:57:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_sqlite.dll' - /opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_pdo_sqlite.dll: cannot open shared object file: No such file or directory in Unknown on line 0
[22-Jul-2017 00:57:35 UTC] PHP Warning: Module 'PDO' already loaded in Unknown on line 0
[22-Jul-2017 00:57:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php71/root/usr/lib64/php/modules/pdo_mysql.so' - /opt/cpanel/ea-php71/root/usr/lib64/php/modules/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
[22-Jul-2017 00:57:35 UTC] PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0
[22-Jul-2017 00:57:35 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_mbstring.dll' - /opt/cpanel/ea-php71/root/usr/lib64/php/modules/php_mbstring.dll: cannot open shared object file: No such file or directory in Unknown on line 0
I think the error corresponds to not having php_pdo_mysql.dll running properly. I have checked phpinfo() and see that the main php.ini file is located at /opt/cpanel/ea-php71/root/etc I have tried to load the PDO modules in this file but with no effect even when I have;
extension=pdo.so
extension=pdo_mysql.so
extension=pdo_sqlite.so
extension=mysql.so
When I look on the phpinfo() page I can see that there is a section called 'PDO' but in this section I see just sqlite in the PDO drivers row. I believe I should see mysql as well.
When I run php artisan migrate via ssh I get the following errors;
[Doctrine\DBAL\Driver\PDOException] could not find driver
[PDOException] could not find driver
I think the package that's supposed to contain the pdo mysql driver is ea-php71-php-pdo-7.1.7-1.1.6.cpanel.x86_64 I have used rpm -ql ea-php71-php-pdo-7.1.7-1.1.6.cpanel.x86_64 to find out where it is installed and I get the following;
/opt/cpanel/ea-php71/root/etc/php.d/20-pdo.ini
/opt/cpanel/ea-php71/root/etc/php.d/20-sqlite3.ini
/opt/cpanel/ea-php71/root/etc/php.d/30-pdo_sqlite.ini
/opt/cpanel/ea-php71/root/usr/lib64/php/modules/pdo.so
/opt/cpanel/ea-php71/root/usr/lib64/php/modules/pdo_sqlite.so
/opt/cpanel/ea-php71/root/usr/lib64/php/modules/sqlite3.so
So the pdo_mysql is missing.
Follow the instructions:
Step-1: Run on command line pecl install pdo
Step-2: if it is already installed just edit /etc/php.ini
Step-3: Add the following lines
; Extension PDO
extension=pdo.so
2nd Way :
First install php-mysql
sudo apt-get install php7.0-mysql
then enable the module
sudo phpenmod pdo_mysql
and restart apache
sudo service apache2 restart
Hope it will helpful.

PhpStorm - xdebug issues

I've read a few blogs & tried replicating the setup to get xdebug working with PhpStorm but not able to. Infact I'm unable to get it working with Netbeans too.
The setup I have is as below
1) Windows 7 machine (Host OS) where I've installed PhpStorm and there is a local project directory for PhpStorm as I see form the project properties.
2) The code is deployed to a Linux environment (CentOS) hosting Apache, MySQL & PHP.
3) I'd like to be able click the option "Debug project" & be able to debug the code hosted on the virtual machine (Linux).
I've set up xdebug on the linux environment, Here's the errors that I'm seeing when I run the project in debug mode. Could I seek some advice please?
sftp://vcrt#192.168.1.10:22/usr/bin/php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=192.168.1.8 /home/vcrt/.phpstorm_helpers/phpunit.php --no-configuration /var/www/projectlive
Testing started at 12:36 PM ...
bash: line 0: cd: C:/Users/<<user>>/PhpstormProjects: No such file or directory
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/bz2.so' - /usr/lib64/php/modules/bz2.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/lib64/php/modules/calendar.so' - /usr/lib64/php/modules/calendar.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/lib64/php/modules/ctype.so' - /usr/lib64/php/modules/ctype.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/lib64/php/modules/exif.so' - /usr/lib64/php/modules/exif.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/lib64/php/modules/ftp.so' - /usr/lib64/php/modules/ftp.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/lib64/php/modules/gettext.so' - /usr/lib64/php/modules/gettext.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/lib64/php/modules/iconv.so' - /usr/lib64/php/modules/iconv.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Module 'ldap' already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqlnd.so' - /usr/lib64/php/modules/mysqlnd.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/lib64/php/modules/shmop.so' - /usr/lib64/php/modules/shmop.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/lib64/php/modules/simplexml.so' - /usr/lib64/php/modules/simplexml.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/lib64/php/modules/sockets.so' - /usr/lib64/php/modules/sockets.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/lib64/php/modules/tokenizer.so' - /usr/lib64/php/modules/tokenizer.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/lib64/php/modules/xml.so' - /usr/lib64/php/modules/xml.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Module 'curl' already loaded in Unknown on line 0
PHP Warning: Module 'dom' already loaded in Unknown on line 0
PHP Warning: Module 'fileinfo' already loaded in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/gd.so' - /usr/lib64/php/modules/gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Module 'json' already loaded in Unknown on line 0
PHP Warning: Module 'ldap' already loaded in Unknown on line 0
PHP Warning: Module 'mbstring' already loaded in Unknown on line 0
PHP Warning: Module 'mysql' already loaded in Unknown on line 0
PHP Warning: Module 'mysqli' already loaded in Unknown on line 0
PHP Warning: Module 'PDO' already loaded in Unknown on line 0
PHP Warning: Module 'pdo_mysql' already loaded in Unknown on line 0
PHP Warning: Module 'pdo_sqlite' already loaded in Unknown on line 0
PHP Warning: Module 'Phar' already loaded in Unknown on line 0
PHP Warning: Module 'posix' already loaded in Unknown on line 0
PHP Warning: Module 'sqlite3' already loaded in Unknown on line 0
PHP Warning: Module 'sysvmsg' already loaded in Unknown on line 0
PHP Warning: Module 'sysvsem' already loaded in Unknown on line 0
PHP Warning: Module 'sysvshm' already loaded in Unknown on line 0
PHP Warning: Module 'wddx' already loaded in Unknown on line 0
PHP Warning: Module 'xmlreader' already loaded in Unknown on line 0
PHP Warning: Module 'xmlwriter' already loaded in Unknown on line 0
PHP Warning: Module 'xsl' already loaded in Unknown on line 0
PHP Warning: Module 'zip' already loaded in Unknown on line 0
Process finished with exit code 1
Cannot find PHPUnit in include path (.:/usr/share/pear:/usr/share/php)

Why my server is loading these PHP variables?

I'm migrating my server to a new dedicated, and after the migration my main website shows 500 Internal Error message, on error_log I see
[28-Feb-2014 22:29:14 America/New_York] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/suhosin.so: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Feb-2014 22:29:14 America/New_York] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Feb-2014 22:29:14 America/New_York] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Feb-2014 22:29:14 America/New_York] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Feb-2014 22:29:14 America/New_York] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/phar.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/phar.so: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Feb-2014 22:29:14 America/New_York] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
[28-Feb-2014 22:29:14 America/New_York] PHP Fatal error: Directive 'allow_call_time_pass_reference' is no longer available in PHP in Unknown on line 0
I don't know why it is loading this many libraries, any way I can find out?
Should I just google them all and install them?
Look at your php.ini file; it refers to each of these libraries, or it wouldn't be trying to load them.

PHP Startup Error

I have a website running mysql and apache on Ubuntu (where it works), windows (where it works), ans suse where it doesn't. I am trying to run an artisan migration using php and I get the following error (it also errors out on anything dealing with php). I trying updating everything, and I was told it might be something in my php.ini file, but I haven't found anything pointing to that because it works on the other machines. Also I can't just comment them out as many of these are necessary.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/extensions/bcmath.so' - /usr/lib/php5/extensions/bcmath.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/extensions/bz2.so' - /usr/lib/php5/extensions/bz2.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/extensions/calendar.so' - /usr/lib/php5/extensions/calendar.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/extensions/ctype.so' - /usr/lib/php5/extensions/ctype.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/extensions/fileinfo.so' - /usr/lib/php5/extensions/fileinfo.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/extensions/json.so' - /usr/lib/php5/extensions/json.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/extensions/mbstring.so' - /usr/lib/php5/extensions/mbstring.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/extensions/mcrypt.so' - /usr/lib/php5/extensions/mcrypt.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/extensions/mysql.so' - /usr/lib/php5/extensions/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/extensions/mysqli.so' - /usr/lib/php5/extensions/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/extensions/openssl.so' - /usr/lib/php5/extensions/openssl.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/extensions/pdo.so' - /usr/lib/php5/extensions/pdo.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/extensions/pdo_mysql.so' - /usr/lib/php5/extensions/pdo_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/extensions/tokenizer.so' - /usr/lib/php5/extensions/tokenizer.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/extensions/xmlwriter.so' - /usr/lib/php5/extensions/xmlwriter.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/extensions/zip.so' - /usr/lib/php5/extensions/zip.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/extensions/zlib.so' - /usr/lib/php5/extensions/zlib.so: cannot open shared object file: No such file or directory in Unknown on line 0
Could not open input file: phpinfo
EDIT:
It seems the directory is empty, any ideas on how to restore it?

Categories