RE: [PHP] /usr/bin/php Question

2002-04-07 Thread Chris Kay


So I should compile without axps to make the binary then recompile
--with-axps to compile the apache module again.?

Cause I want both apache module and command line.

Or will it work as a apache module without axps?

---
Chris Kay, Eleet Internet Services
[EMAIL PROTECTED]
---


-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, 7 April 2002 3:32 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] /usr/bin/php Question


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
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] /usr/bin/php Question

2002-04-07 Thread Jason Wong

On Sunday 07 April 2002 19:37, Chris Kay wrote:

 So I should compile without axps to make the binary then recompile
 --with-axps to compile the apache module again.?

 Cause I want both apache module and command line.

If you want both, then yes, you need to compile twice. Once using 
--with-apxs, then again omitting --with-apxs.

 Or will it work as a apache module without axps?

There are two types of Apache modules, the preferred being apxs, so just 
stick with it -- unless you have special reasons not to.


-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
It is better to have loved and lost than just to have lost.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] /usr/bin/php Question

2002-04-07 Thread Chris Kay


Thanks Jason this worked..

---
Chris Kay, Eleet Internet Services
[EMAIL PROTECTED]
---


-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]] 
Sent: Monday, 8 April 2002 4:01 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] /usr/bin/php Question


On Sunday 07 April 2002 19:37, Chris Kay wrote:

 So I should compile without axps to make the binary then recompile 
 --with-axps to compile the apache module again.?

 Cause I want both apache module and command line.

If you want both, then yes, you need to compile twice. Once using 
--with-apxs, then again omitting --with-apxs.

 Or will it work as a apache module without axps?

There are two types of Apache modules, the preferred being apxs, so just

stick with it -- unless you have special reasons not to.


-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
It is better to have loved and lost than just to have lost.
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] /usr/bin/php Question

2002-04-06 Thread Rasmus Lerdorf

Just compile again with --with-apxs

On Sun, 7 Apr 2002, 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?

 Or does someone have any idea's what's the best way to go about this
 would be...

 ---
 Chris Kay, Eleet Internet Services
 [EMAIL PROTECTED]
 ---


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] /usr/bin/php Question

2002-04-06 Thread Jason Wong

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
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php