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

Phalcon on Packagecloud.io

We're introduced Phalcon cloud builds infrastructure.

Currently we support CentOS, Debia, Ubuntu:

Supported Operating Systems

  • Ubuntu 14.04: PHP 5.5.x, 7.0.x
  • Ubuntu 15.10: PHP 5.6.x
  • Ubuntu 16.04: PHP 7.0.x
  • Debian 8.5: PHP 5.6.x, 7.0.x
  • Debian 9: PHP 7.0.x
  • CentOS 7.2: PHP 5.5.x, 5.6.x, 7.0.x (IUS Remi repo)

Support of other RPM repos is coming soon

Installation/configuration details for each version and operating system:

Add new package repository

# Stable releases
curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | sudo bash

# Nightly releases
curl -s https://packagecloud.io/install/repositories/phalcon/nightly/script.deb.sh | sudo bash

Installation

PHP 5

# DEB
sudo apt-get install php5-phalcon

# RPM
sudo yum install php55u-phalcon
sudo yum install php56u-phalcon

PHP 7

# DEB
sudo apt-get install php7.0-phalcon

# RPM
sudo yum install php70u-phalcon

Links

edited Sep '16

Our production site has upgraded the ubuntu package automatically to 3.0.0. (php5-phalcon-3.0.0-build10-ppa1~trusty ) As it is not 100% compatible with Phalcon 2.0.13, the site is down. We'll eventually upgrade the site, but it will take a while.

We've tried to downgrade the package but it is not supported any more, no copies can be found. Could you provide a link to the php5-phalcon package for Ubuntu 14.04 (php5-phalcon-2.0.13-build10-ppa~trusty-i386.deb)?

TIA

Jose



39.2k
Accepted
answer

For old, not supported versions, you can use this aproach:

With Zephir

git clone --depth=1 --branch=phalcon-v2.0.13 [email protected]:phalcon/cphalcon.git
cd cphalcon

zephir fullclean
zephir build

Without Zephir

git clone --depth=1 --branch=phalcon-v2.0.13 [email protected]:phalcon/cphalcon.git
cd cphalcon

cd build
./install 

Is there any plan to do the same for Zephir? It will help a lot if we can install everything from the same place.

Right now not. May be in near future



3.7k

No package php70u-phalcon available.

error in RPM (centos7.2 php7.0)

edited Nov '16
[[email protected] /]# lsb_release -a
LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.2.1511 (Core)
Release:    7.2.1511
Codename:   Core
[[email protected] /]# curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.rpm.sh | bash
[[email protected] /]# yum search phalcon
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.colocall.net
 * extras: ftp.colocall.net
 * updates: ftp.colocall.net
==================================== N/S matched: phalcon ====================================
php55u-phalcon-debuginfo.x86_64 : Debug information for package php55u-phalcon
php56u-phalcon-debuginfo.x86_64 : Debug information for package php56u-phalcon
php70u-phalcon-debuginfo.x86_64 : Debug information for package php70u-phalcon
php55u-phalcon.x86_64 : High performance PHP framework
php56u-phalcon.x86_64 : High performance PHP framework
php70u-phalcon.x86_64 : High performance PHP framework

  Name and summary matches only, use "search all" for everything.
[[email protected] /]# yum install php70u php70u-json php70u-cli
[[email protected] /]# yum install php70u-phalcon
[[email protected] /]# php -v
PHP 7.0.13 (cli) (built: Nov 10 2016 08:44:18) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
[[email protected] /]# php --ri phalcon

phalcon

Web framework delivered as a C-extension for PHP
phalcon => enabled
Author => Phalcon Team and contributors
Version => 3.0.2
Build Date => Nov 27 2016 13:37:32
Powered by Zephir => Version 0.9.4a-dev

Directive => Local Value => Master Value
phalcon.db.escape_identifiers => On => On
phalcon.db.force_casting => Off => Off
phalcon.orm.events => On => On
phalcon.orm.virtual_foreign_keys => On => On
phalcon.orm.column_renaming => On => On
phalcon.orm.not_null_validations => On => On
phalcon.orm.exception_on_failed_save => Off => Off
phalcon.orm.enable_literals => On => On
phalcon.orm.late_state_binding => Off => Off
phalcon.orm.enable_implicit_joins => On => On
phalcon.orm.cast_on_hydrate => Off => Off
phalcon.orm.ignore_unknown_columns => Off => Off


3.7k

curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.rpm.sh | bash


Detected operating system as centos/7.
Checking for curl...
Detected curl...
Downloading repository file: https://packagecloud.io/install/repositories/phalcon/stable/config_file.repo?os=centos&dist=7&source=script
done.
Installing pygpgme to verify GPG signatures...
Loaded plugins: fastestmirror, langpacks, tsflags, universal-hooks
EA4                                                      | 2.9 kB     00:00     
base                                                     | 3.6 kB     00:00     
extras                                                   | 3.4 kB     00:00     
phalcon_stable-source/signature                          |  836 B     00:00     
phalcon_stable-source/signature                          | 1.0 kB     00:00 !!! 
updates                                                  | 3.4 kB     00:00     
Loading mirror speeds from cached hostfile
 * EA4: 185.85.238.50
 * base: mirror.idealhosting.net.tr
 * extras: mirror.idealhosting.net.tr
 * updates: mirror.idealhosting.net.tr
Package pygpgme-0.3-9.el7.x86_64 already installed and latest version
Nothing to do
Installing yum-utils...
Loaded plugins: fastestmirror, langpacks, tsflags, universal-hooks
Loading mirror speeds from cached hostfile
 * EA4: 185.85.238.50
 * base: mirror.idealhosting.net.tr
 * extras: mirror.idealhosting.net.tr
 * updates: mirror.idealhosting.net.tr
Package yum-utils-1.1.31-34.el7.noarch already installed and latest version
Nothing to do
Generating yum cache for phalcon_stable...

The repository is setup! You can now install packages.

[[email protected] ~]# yum search phalcon
Loaded plugins: fastestmirror, langpacks, tsflags, universal-hooks
Loading mirror speeds from cached hostfile
 * EA4: 185.85.238.50
 * base: mirror.idealhosting.net.tr
 * extras: mirror.idealhosting.net.tr
 * updates: mirror.idealhosting.net.tr
No matches found


3.7k

ı try this but return an error:

No Match for argument php70u-phalcon-3.0.2-15.ius.el7.centos.src

Who return? OS, site? What exactly did you do?



3.7k

https://packagecloud.io/phalcon/stable/packages/el/7/php70u-phalcon-3.0.2-15.ius.el7.centos.src.rpm

ı run this commands in ssh my server and second command return :

yumdownloader --source php70u-phalcon-3.0.2-15.ius.el7.centos.src

Loaded plugins: fastestmirror, langpacks
Enabling updates-source repository
Enabling base-source repository
Enabling extras-source repository
base-source                                              | 2.9 kB     00:00     
extras-source                                            | 2.9 kB     00:00     
updates-source                                           | 2.9 kB     00:00     
(1/3): extras-source/7/primary_db                          |  45 kB   00:00     
(2/3): updates-source/7/primary_db                         | 157 kB   00:00     
(3/3): base-source/7/primary_db                            | 949 kB   00:06     
Loading mirror speeds from cached hostfile
 * EA4: 185.85.238.50
 * base: mirror.idealhosting.net.tr
 * extras: mirror.idealhosting.net.tr
 * updates: mirror.idealhosting.net.tr
No Match for argument php70u-phalcon-3.0.2-15.ius.el7.centos.src
Nothing to download

Just wget it and use rpm -ivh php70u-phalcon-3.0.2-15.ius.el7.centos.src.rpm