| First of all:
Are you sure you need a custom build php stack?
It is not a one-time effort:
Installing on other machines
and keeping php and its dependancies up-to-date
is a time consuming job.
If possible, one should go with the php included in the package manager
of the linux distribution.
If you need your own php stack,
1) the best way would be to go the extra mile and build a (rpm|deb|whatever) package for it.
To do that, build a dedicated "build machine" before.
ie: a PC or virtual machine, that is very barebone and only used for
package building, so you get repeatable results.
2) Another way is: document the compile process and dependancies.
Write down every step you did to build the php stack and repeat it (or script it)
on the others.
3) It is possible to copy only the binaries and libs to another machine.
But this is the worst option.
You have to do it manually,
it is errorprone,
after a certain time you will have no clue, what you did back then and why.
Also, if the development machine differs from production (in terms of update status for example) php might not even work or not work correctly.. |