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

Seting up Amazon Linux: nginx + php 5.6 fpm + phalcon + mongodb

Hello:

¿Is there any phalcon yum package out there?

I'm doing a setup on amazon linux, so I don't have apt but have yum. I don't want to compile phalcon on machine every time is setup, son if I have no luck with yum, I was thinking to make my own .os and then just deliver it to machines.

Any ideas wellcome!



21.7k
edited Nov '14

You need to install epel repository to get full php features on centos/RH. Phalcon will be there too.

$ cat /etc/*-release
CentOS release 6.6 (Final)
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
CentOS release 6.6 (Final)
CentOS release 6.6 (Final)

$ yum repolist
Loaded plugins: presto, priorities, security
2444 packages excluded due to repository priority protections
repo id                    repo name                                 status
base                       CentOS-6 - Base                                 6,518
elrepo                     ELRepo.org Community Enterprise Linux Rep       324+2
epel                       Extra Packages for Enterprise Linux 6 - x  10,440+786
extras                     CentOS-6 - Extras                                  35
nginx-release              nginx repo                                         69
remi                       Les RPM de remi pour Enterpise Linux 6 -        2,342
rpmforge-rhel5             RPMForge RHEL5 packages                   3,166+1,552
updates                    CentOS-6 - Updates                                388
repolist: 24,671

$ yum install php-phalcon
Loaded plugins: presto, priorities, security
Setting up Install Process
2444 packages excluded due to repository priority protections
Package php-phalcon-1.3.4-1.el6.remi.5.4.x86_64 already installed and latest version
Nothing to do


4.0k
edited Nov '14

Thanks roman; you post didn't fix my issue, but I is pointing me some where.... I enabled the epel repository that came by default in amazon linux, it look like is fedora 6 based, but also looks like it doesn't have phacon in. ¿Is possible to use other repository like the one that you are using? ¿can you provide me the url so I can add it to cloudinit?

Here is my data:

ps: can you tell me how you did mark up to terminal? I tried ''' but din't work.



21.7k
Accepted
answer
edited Nov '14

Yup. I've double checked which repo is exactly installed phalcon (i have always many repos) and this is REMI (not EPEL). Sorry for confusing.

Url for REMI mirrorlist in my system is https://rpms.famillecollet.com/enterprise/$releasever/remi/mirror

To install them you can use (fedora 18+, change 20 to number of your system release):

$ wget https://rpms.famillecollet.com/remi-release-20.rpm
$ yum install remi-release-20.rpm
$ nano /etc/yum.repos.d/remi.repo # Change "enabled" to 1

ps: after three backticks just write language name as described here. "bash" works too.



4.0k
edited Dec '14

I'm up and running nginx + php 5.6 fpm + mongodb on amazon linux. So for the ones to come, here my cloud init:

#cloud-config
#
# We update all packages
repo_upgrade: all
# Set extra repositories
yum_repos:
    # The name of the repository
    mongodb:
        # Any repository configuration optionsa
        #
        # This one is required!
        baseurl: https://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
        enabled: 1
        gpgcheck: 0
        name: MongoDB Repository
#            
# We install what we can we available reps
packages:
 - nginx
 - git
 - mongodb-org
#
# Set & start services
runcmd:
 - service mongod start
 - chkconfig mongod on
 - service nginx start
 - chkconfig nginx on
 - yum-config-manager --enable epel
 - wget https://rpms.famillecollet.com/enterprise/remi-release-6.rpm
 - rpm -Uvh remi-release-6*.rpm
 - yum-config-manager --enable remi remi-php56
 - yum install php56-php-phalcon php56-php-fpm php56-php-pecl-mongo -y
 - service php56-php-fpm start
#

Thanks to roman for pointing me to remi repositories.