We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

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 ?



98.9k

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_to_create_an_RPM_package for deb https://wiki.debian.org/HowToPackageForDebian



43.9k

@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.