My problem is that when I execute php -i
it shows the php version as php 5.4 and the loaded config file as /usr/local/lib/php.ini
. When I execute the script phpinfo.php
from the command line it shows php 5.3 and the loaded config file as /etc/php.ini
.
How can I enable the default PHP interpreter as php 5.3?
I need 5.3 because php 5.3 is configured with PDO and pdo_mysql
where php 5.4 is not configured with it also the zend version of php 5.3 is 220090626 whereas that of php 5.4 is 220090525.
When I try to execute a PHP script from a browser it is being compiled with php 5.4 (which doesn't have the PDO extension) and is throwing a fatal error as undefined PDO.
How do I configure my Apache to load php 5.3 for the scripts.
The phpinfo.php
script is as follows
<?php
phpinfo();
?>