I have a need for anonymous functions in php (soundcloud php wrapper) and so I upgraded my audio server to PHP 5.3. The server is linux CentOS 5.5.
After what I assumed was a successful install, php -v and php-cgi -v both show 5.3 is installed, but the server is still reporting 5.1.2.
I am using lighttpd, not apache. I can only find one php.ini file on the server. I’ve searched through my lighttpd.conf files and cannot for the life of me figure out how to get Lighttpd to see the new PHP version.
Cheers
Edit: I forgot to mention that I’m using FastCGI. Here is the fastcgi.conf file for lighttpd:
fastcgi.server = ( ".php" => ((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/tmp/php.socket",
"max-procs" => 2,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "16",
"PHP_FCGI_MAX_REQUESTS" => "10000"
),
"bin-copy-environment" => (
"PATH", "SHELL", "USER"
),
"broken-scriptfilename" => "enable"
)))
Even if you restart lighttpd or apache service, the php-cgi processes can still be running.
In order to fix this issue, I stopped the service, then killed php-cgi processes
killall php-cgi
Then started lighttpd and phpinfo is now showing that im running the new version of PHP.
Many thanks for all your help