xterm@dellxps:~$ /usr/bin/php-cgi -v
PHP 5.3.6-13ubuntu3.2 with Suhosin-Patch (cgi-fcgi) (built: Oct 13 2011 23:13:37)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
/usr/local/bin/php -v
ps ax | grep tpd
locate libphp5
ps ax | grep tpd
locate libphp5
fastcgi.server = ( ".php" => ((
"bin-path" => "/path/to/php-cgi",
Change it to the php-cgi executable that is in PHP 5.38.
You can use "locate php-cgi" to find all of them first, and then do "php-cgi -v" to determine which version is the right one.