Re: /usr/bin/php Question
| From: | Jason Wong | Date: | Sun, 07 Apr 2002 05:32:10 +0000 |
| Subject: | Re: /usr/bin/php Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91906@lists.php.net to get a copy of this message | ||
On Sunday 07 April 2002 13:18, Chris Kay wrote:
> Hi
>
> I have compiled php -with-apxs option and I read in the archives it
> don't create a /usr/bin/php.
> But I wish to run 2 scripts I have made by command line, I have the 2
> scripts outside the web server
> Root.
>
> Is there a way to compile a php binary to use for my scripts?
Yes.
> Or does someone have any idea's what's the best way to go about this
> would be...
From the manual "The default is to build PHP as a CGI program".
By using the "--with-apxs" option you're telling it to build an Apache module
and not a standalone binary.
So just:
./configure; make;
then copy the resulting "php" executable somewhere.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
"Show business is just like high school, except you get paid."
- Martin Mull
*/