phpinfo() says I have PHP 5, php -v says PHP 4
Posted: Wed Jun 11, 2008 9:53 pm
I'm running Mac OS 10.4.11 and Apache 1.3.41, although I've read about similar problems on different OSs.
When I run phpinfo(), it tells me I have PHP 5.2.4. When I do "php -v" from the command line, it tells me I have PHP 4.4.8. I want PHP 5 only.
When I run phpinfo() from the command line, the output (which still says 4.4.8 there) tells me:
The only php.ini-like file that seemed to be in /etc was /etc/php.ini.default. I renamed it to /etc/php-THISSHOULDNOTWORK. PHP 4 still worked, even after restarting the whole computer.
Any ideas? The only posts I've found are people with the opposite problem - phpinfo() says PHP 4, command line says PHP 5. The solutions to that problem didn't apply here.
Also, there's this:
If there's no php.ini on the whole system, I don't see how any PHP could be running, let alone two versions at the same time. Does the file not have to be called php.ini?
Thanks,
Jason
When I run phpinfo(), it tells me I have PHP 5.2.4. When I do "php -v" from the command line, it tells me I have PHP 4.4.8. I want PHP 5 only.
When I run phpinfo() from the command line, the output (which still says 4.4.8 there) tells me:
Code: Select all
Configuration File (php.ini) Path => /etcAny ideas? The only posts I've found are people with the opposite problem - phpinfo() says PHP 4, command line says PHP 5. The solutions to that problem didn't apply here.
Also, there's this:
Code: Select all
jason-swetts-computer:~ root# find /* -name *php.ini*
/Users/jasonswett/php-5.2.4/php.ini-dist
/Users/jasonswett/php-5.2.4/php.ini-recommended
/Users/jasonswett/php-5.2.4/php.iniJASON
/usr/local/lib/php.iniJASON
/usr/local/php5/lib/php.ini-recommended
/usr/local/php5/lib/php.iniJASON
jason-swetts-computer:~ root#Thanks,
Jason