| 
 Posted by Carl Pearson on 01/27/07 21:01 
lukemack wrote: 
> hi, 
>  
> can anyone tell me how to configure php cli with mysql support? i;ve  
> tried adding defaul username, password and host in /etc/php5/cli/ 
> php.ini but this didnt work. 
>  
> php-m does not list mysql. 
>  
> php version is 5.1.6 running on Ubuntu 6.10 with Apache/2.0.55 
>  
> many thanks, 
>  
> lukemack. 
>  
 
PHP doesn't know where the ini file is when run from the cli, so your  
MySQL (or any other) extension is never getting loaded. 
 
Try: 
	php -c /path/to/php.ini 
 
Note this doesn't have to be the same one that Apache uses.
 
[Back to original message] 
 |