I recently installed xdebug on my server, but limited its use on our test site, which uses its own php.ini .
For example, php.ini test sites are located at:
/home/test_site/public_html/subdomain_name/php.ini
Inside this php.ini , I have the following for xdebug:
[XDebug] zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so xdebug.profiler_append = 0 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir = /home/test_site/xdebug xdebug.profiler_output_name = "cachegrind.out.%s-%u.%h_%r"
Now the fact is that xdebug is working fine, no problem.
However, on our main site, which also has its own php.ini , which is located, for example, at:
/home/main_site/public_html/php.ini
Inside this file I have nothing for xdebug there.
Now I recently installed cron in cpanel for the main site , for example:
php -f /home/main_site/public_html/cron_jobs/main_cron.php > /home/main_site/public_html/logs/main_cron.log 2>&1
Now, checking the cron output inside the log file, I get the output:
Failed loading xdebug.so: xdebug.so: cannot open shared object file: No such file or directory
Why am I getting this error when the main site should not even load xdebug?
debugging php apache xdebug php-ini
Bret
source share