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

Best way to update amazon EC2 instance from Phalcon 1.3 to 2.x

I have this amazon aws EC2 instance running on Ubuntu 14.04 with Phalcon 1.3 and I want to update to 2.x. I tried using composer but it doesn't allow me to replace it so I tried the compilation instruction referenced here:

https://docs.phalcon.io/en/latest/reference/install.html

But I ran into the error Virtual Memory Exhausted. So I was wondering is there a easy way to do it?

edited Aug '15

hi,

RAM? Can u show me => cat /proc/swaps or swapon -s check swap is enabled or not

edited Aug '15

Hi, I am not familiar with linux that much so not sure what you mean... But I tried the command you suggested and it gives me 4 columns with nothing. The error I mentioned usually happend after I cloned and sudo install.

hi,

RAM? Can u show me => cat /proc/swaps or swapon -s check swap is enabled or not

edited Aug '15

Ok tried the installation from https://phalcon.io/en/download

and I am getting error rmdir: failed to remove "/usr/share/doc/php-apc": Directory not empty

edited Aug '15

u have low memory :) can u create and enable the swap file? after enable swap u can install with apt-get

can u show me => netstat -tulpn ? you can stop services in your system like : (apache2 , mysql) will free up more memory, and Phalcon will compile

Thanks I will look into it. Just for reference how do I enable the swap file?

u have low memory :) can u create and enable the swap file? after enable swap u can install with apt-get

can u show me => netstat -tulpn ? you can stop services in your system like : (apache2 , mysql) will free up more memory, and Phalcon will compile