Re: how to get a php shell binary
| From: | Ray Hunter | Date: | Sat, 16 Mar 2002 17:03:49 +0000 |
| Subject: | Re: how to get a php shell binary | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-6379@lists.php.net to get a copy of this message | ||
PHP does not compile as a binary (CLI) and as a module at the same time.
You will have to compile as binary first then compile again as a module.
For compiling as a CLI do this:
$ ./configure --prefix=/path/to/php
$ make
$ make install
Move the files in the bin directory to somewhere like /usr/bin
Then delete the file "config.cache" and run "make clean", next recompile
with the options that you want for your apache module...make...make
install...
That is all to it...
"Nicholas Ritter" <ritter@hermes.lfc.edu> wrote in message
news:3C912F35.4070504@lfc.edu...
> I have another question, how do I compile php so that have it as a
> module in apache and also a shell binary? I want to call php from a cron
> job (for cacti.)
>
> Nicholas
>
>