You are here: Re: php cli « PHP Programming Language « IT news, forums, messages
Re: php cli

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация