I am trying to run a php file in my web server in command line using
php test.php
But it is not working. it runs forever and takes 100% resources. It was working yesterday and now it is not working.
I tried to debug the process using
strace -p <pid>
and got lots of
times(NULL) = -2058427839
Can anyone help me to debug this? Rebooting and upgrading is my last resort. Please suggest a solution without reboot or upgrade.
php -vtells you something likePHP x.y.z (**cli**), not cgi or something like that?