I followed the phalcon documentation and added the repo to my system.
> curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.rpm.sh | sudo bash
...
The repository is setup! You can now install packages.
But then when I continue to follow documentation:
> yum install php70u-phalcon
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
No package php70u-phalcon available.
And searching for phalcon does not return anything:
> yum search phalcon
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Warning: No matches found for: phalcon
So where am I going wrong?
2
Answers
Unfortunately Phalcon documentation install guide just doesn’t work.
Believe or not it’s easier to compile phalcon extension from scratch.
I have a cookbook that I always use when create a new EC2 instance and have to install phalcon extension:
Installing php7.2 and some of its extensions
Installing some packages needed for compiling phalcon
Installing phalcon 3.4.x since I’m not feeling 4.0 reliable enough
This code is just in case you don’t have enough RAM
Compiling phalcon. It may take several minutes
Enabling phalcon extension
Restarting services
Again, this commands are just if you don’t have enough RAM
Hope it helps 😉
Here is my solution: using php 7.1 and phalcon 3.4.0
Hope it helps!