Basically I am just wondering if I can drag and drop the libphp5.so file to another server without PHP and have the functionality of PHP and all the extensions statically compiled into it. (Compiled from source with a bunch of extensions)
I tried using the ld tool on the so file (on my server) but it just spit out a bunch of undefined references. Which are irrelevant since its a working install.
Edit:
I realize now that I was using ld
instead of ldd
.
Now I get a list of the dependencies. I am guessing I would need all these files correct? So my question is if I recursively get all the shared object files and put them in their same locations on a destination server (probably via a custom RPM) would PHP function a new server without a formal install of PHP?
Could I be missing any hidden dependencies that are not found by ldd?