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

How to install Phalcon with PHP 5.6 under Debian 7 Wheezy?

I have bought a VPS with Debian 7 Wheezy. I have installed LAMP Stack: PHP 5.3, MySQL and Apache2. Then, I have upgraded PHP to 5.6 version using this package: https://packages.dotdeb.org/dists/wheezy-php56/. And I have got stacked here. I don't know what to do in the next step.

1. I am not sure but I don't have FPM. Do I need it? How to check if I have PHP with FPM?

2. I have read in Phalcon's docs that I need a PHP version with "development resources". Is the package of PHP 5.6 that I have insalled a version with development resources? If it's not, how to get it?

3 I have found a tutorial on Digital Ocean https://www.digitalocean.com/community/tutorials/how-to-install-and-get-started-with-phalcon-on-an-ubuntu-12-04-vps but this is for Ubuntu and I am not sure what is diffirent for Debian.

What should I do now to complate the installation and have properly running Phalcon on it? Is it possible at all? Do I need to downgrade to PHP 5.5?



8.1k

Debian 7 Wheezy use PHP 5.4..14 as standard package.

I suggest you use this PHP version.

Many other packages is corresponding with this version and may be have issues with PHP 5.6.

You can use UBUNTU 14.04 with PHP 5.5.9 as a standard version also.

LAMP Debian Wiki https://wiki.debian.org/LaMp



25.1k
edited Sep '14

I run Debian 7 using DotDeb packages for PHP 5.6 currently and it works fine.

To answer your questions.....

1) No you do not need FPM. Out of the box, Debian will setup Apache with MOD PHP which is fine for personal development.

2) They are probably referring to the php5-dev package which is a package that should be installed along with the others.

3) The tutorial you mentioned should work fine. Phalcon's own docs provide a simple set of steps to install as well.

The instructions here are pretty basic and should work for Debain. I'll sprinkle some comments that might help you along... Phalcon Install On Linux

In particular, you can generally sub in Ubuntu instructions when Debian aren't provided.

Ubuntu
sudo apt-get install php5-dev libpcre3-dev gcc make php5-mysql

You could optionally use the "Native Driver" swap php5-mysql for php5-mysqlnd

If you are running Debian with php5-fpm, restart it:
sudo service php5-fpm restart

The FPM reference is optional...if you don't have FPM installed, restart apache instead. Swap this...

sudo service php5-fpm restart

for this...

sudo service apache restart

The instructions don't mention it, but a quick way to test if Phalcon is installed is to run this as a PHP page...

test.php....

<?php phpinfo();

And look for the Phalcon module.