Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

Two PHP's are Better Than One
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 ]

[Page 1]  [Page 2]  


Comments:
RE: Another way to do thisBruce01/16/04 11:31
Another way to do thisMoSs05/25/03 08:23
RE: Overhead of CGI squanders benefits of C?Ian12/30/02 14:31
RE:Stupid Article and other thingsWill Green09/03/02 15:18
need some helpfantaghiro09/02/02 04:17
RE: A simpler wayAmit Kothari08/31/02 07:51
RE:Stupid Article and other thingsMichael Galloway08/27/02 11:59
RE: To anwser some questionsTony08/26/02 06:57
I stand correctedMichael Galloway08/24/02 14:24
Stupid articleJames08/24/02 11:47
Re: A simpler wayMark Constable08/23/02 23:33
To answer some questionsMichael Galloway08/20/02 12:18
Overhead of CGI squanders benefits of C?Jeff08/16/02 03:23
very useful!chickoslav08/15/02 01:42
A simpler wayTony08/13/02 05:22
CGI vs PHP moduleJoe Li08/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.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.