Skip to content

Instantly share code, notes, and snippets.

@CodinCat
Last active June 17, 2019 12:51
Show Gist options
  • Save CodinCat/d319ec19b466fbb9c5aa to your computer and use it in GitHub Desktop.
Save CodinCat/d319ec19b466fbb9c5aa to your computer and use it in GitHub Desktop.
Install Phalcon on WebFaction host

How to install Phalcon on WebFaction

http://www.webfaction.com/

WebFaction is a great hosting service for everyone, it's as easy as shared hosting, and as powerful as VPS. SSH is allowed, and built in git, so you can install anything you want.

WebFaction uses CentOS 64bit, here is the installation guide with PHP 5.5

Get the latest Phalcon source code

cd ~
git clone --depth=1 git://github.com/phalcon/cphalcon.git

Prepare for compiling

cd cphalcon/ext
phpize55
./configure --with-php-config=/usr/local/bin/php55-config --enable-phalcon

Have some coffee

make

Create a directory for your Phalcon extension file

mkdir ~/php55-exts
cp modules/phalcon.so ~/php55-exts/

Make a link to sync other extensions

ln -s /usr/local/lib/php55/extensions/no-debug-non-zts-20121212/* ~/php55-exts/

Now add a php.ini file to your application directory

cd you/app/path
touch php.ini
vim php.ini

(of course, you can use nano if you preferd)

with the following content:

extension_dir = /home/yourusername/php55-exts
extension = phalcon.so

let's have a test:

touch phpinfo.php
vim phpinfo.php
<?php

phpinfo();

open http://yourdomain.com/phpinfo.php

use ctrl+F (cmd+F) and search phalcon to check if it's working.

@iqdavidh
Copy link

Sorry for the late. Yes it works, my problem was I was login with a differten user (not main user), when I looged with the main credentials it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment