I recently installed xdebug
on my server but restricted it's use to our test site, which uses it's own php.ini
file.
For example, the test sites php.ini
is located at:
/home/test_site/public_html/subdomain_name/php.ini
Inside this php.ini
file I have the below 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 thing is, xdebug works fine, no problems.
However, on our main site, which also has it's own php.ini
file, which is located for example at:
/home/main_site/public_html/php.ini
Inside this file I have nothing for xdebug
in there.
Now, I recently setup a cron in cpanel for the main site
such as:
php -f /home/main_site/public_html/cron_jobs/main_cron.php > /home/main_site/public_html/logs/main_cron.log 2>&1
Now, upon checking the output of the cron 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 shouldn't even be loading xdebug?