Re: [PHP] php cli and mysql



James Tu wrote:
Please see below


...

you fell foul of the 'there is no php.ini' trap :-)
(please repeat in a homer simpson voice)


or should I create a symbolic link to the php.ini that Apache is using?

use a seperate php.ini - more flexibility



That'll tell you where the php.ini file is for the CLI version.

Enjoy.



James Tu wrote:
ok. so the location of mysql.sock is a problem.
I found it at /tmp/mysql.sock

Why is the CLI looking for it at /var/myslq/mysql.sock?

Now the question is...
Do I change the mysql settings so that mysql.sock is at
/tmp/mysql.sock? (If I do, will the PHP module with Apache still be
ok?)
or
Do I change where the CLI is looking for mysql.sock?

pointing the CLI at the actual .sock seems least invasive, no?

rgds,
.



Relevant Pages

  • Re: RH9 to Fedora
    ... > I dont think switching off selinux for apache is the right thing to ... James Wilkinson ...
    (Fedora)
  • Re: [PHP] php cli and mysql
    ... James Tu wrote: ... Why is the CLI looking for it at /var/myslq/mysql.sock? ... will the PHP module with Apache still be ... To unsubscribe, visit: http://www.php.net/unsub.php ...
    (php.general)
  • shell_exec() - PHP CLI version and Apache SAPI module
    ... I have a web application from which I run a PHP script with the CLI version ... The script does some updating of a mySQL DB. ... According to the Apache ...
    (alt.php)
  • Re: php_network_getaddresses: getaddrinfo failed
    ... When running the same scipt from the CLI (php ./dns.php), ... This site is available both from apache, and from CLI. ... on a DNS servers change (or new DHCP ...
    (comp.lang.php)
  • RE: Apache server read permissions
    ... I see the DocumentRoot at /var/www and the ServerRoot is set to ... James D. Parra wrote: ... under which you run apache eg. user apache, ... -- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)