|
Two PHP's are Better Than One
How to Setup Multiple PHP Builds on The Same Server
How to Setup Multiple PHP Builds on The Same Server
Step Two: Multiple PHP Builds
Now that you have the correct structure it is time to
create the different builds of PHP. The key here is to compile them
as a CGI version, not the Apache module. I know, I know, there are
some security risks, but the payoff far outweighs the risk. This
does mean, however, you should be much more conscious about your
code, and CGI data (but you all are anyway, so I'm wasting my
keystrokes as it were). For the moment, since you are going to be
using one PHP as a test point for your new module, just create two
identical (and functioning) PHP builds.
Don't
just copy the same PHP build. You should have two separate
directories of PHP source. Since you will be using one PHP source
for your new module additions, you will be making a lot of changes to
the folders in the directories. If you should accidentally overwrite
your stable PHP version in the future, you will wish you had an
untouched PHP directory set so that you could just compile another
one. Considering that reengagement time is crucial when anything
happens to a commercial webserver, the additional resource
expenditure is completely justified.
So now you
have two files called "php" on your drive. Move them to the
directory that you setup for the builds (you might consider renaming
the PHP's for identity purposes something like "php.stable" and
"php.test" would work).
Now link the correct
binary to the correct domain by going into the php directory of each
domain and creating a link called "php" (ln /path/to/php/php.stable
php)
[ Next Page ]
| Comments: | ||
| RE: Another way to do this | Bruce | 01/16/04 11:31 |
| Another way to do this | MoSs | 05/25/03 08:23 |
| RE: Overhead of CGI squanders benefits of C? | Ian | 12/30/02 14:31 |
| RE:Stupid Article and other things | Will Green | 09/03/02 15:18 |
| need some help | fantaghiro | 09/02/02 04:17 |
| RE: A simpler way | Amit Kothari | 08/31/02 07:51 |
| RE:Stupid Article and other things | Michael Galloway | 08/27/02 11:59 |
| RE: To anwser some questions | Tony | 08/26/02 06:57 |
| I stand corrected | Michael Galloway | 08/24/02 14:24 |
| Stupid article | James | 08/24/02 11:47 |
| Re: A simpler way | Mark Constable | 08/23/02 23:33 |
| To answer some questions | Michael Galloway | 08/20/02 12:18 |
| Overhead of CGI squanders benefits of C? | Jeff | 08/16/02 03:23 |
| very useful! | chickoslav | 08/15/02 01:42 |
| A simpler way | Tony | 08/13/02 05:22 |
| CGI vs PHP module | Joe Li | 08/12/02 03:55 |
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly. | ||


