Re: path to binary for php on linux
| From: | jdavis | Date: | Thu, 08 Apr 2004 09:49:06 +0000 |
| Subject: | Re: path to binary for php on linux | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182806@lists.php.net to get a copy of this message | ||
On Wed, 2004-04-07 at 18:17, Andy B wrote:
> it was installed with get
> and which php doesnt do anything just returns to the prompt with no output
>
> ----- Original Message -----
> From: "Curt Zirzow" <czirzow@dotgeek.org>
> To: <php-general@lists.php.net>
> Sent: Wednesday, April 07, 2004 8:11 PM
> Subject: Re: [PHP] path to binary for php on linux
>
>
> > * Thus wrote Andy B (aborka1@wmis.net):
> > > anybody know what the exact path for the php binary on linux is?
> >
locate finds all files containing the search string ... this works..
but you can just find binaries and important conf-files with
mohadib@mohadib ~--->whereis php4
php4: /usr/bin/php4 /etc/php4 /usr/lib/php4 /usr/include/php4 /usr/share/man/man1/php4.1.gz
mohadib@mohadib ~--->
also depending on what linux you are using ...
you can just ask the package manager...
redhat-> rpm -qa | grep php4
then rpm -qp --filebypkg php4_main.rpm // or whatever the above command tells you the name is
debian-> dpkg -L php4
good luck,
jd