Compile phalcon on a different machine than production server

Hi,

I'm considering moving all my websites, hosted on different dedicated servers, to a full hosting on VPS's. Some of my websites are build with phalcon. I already got a VPS with all the developpement/build libraries where I've build phalcon.so php extension.

Assuming that all other VPS's will be the same (architecture, linux distro and so on), do I have to copy only phalcon.so in the php5 library dir or are there other files to copy ?



84.0k

Yes, if the architecture, os and php version is the same you can freely copy the phalcon.so from one server to another.

edited Jul '14

or if you know how to make a rpm or deb package you can install them manually with dpkg or rpm.

You can follow these steps ...

for RPM https://fedoraproject.org/wiki/How%5to%5create%5an%5RPM%5package for deb https://wiki.debian.org/HowToPackageForDebian



30.4k

@phalcon: thank you, I will give it a try.

@guneshamet: why not, it doesn't look so complicated.

was just advice and i know @phalcon said easiest way. But rpm and deb package is universal.