Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»Programming»PHP»How To Install Phalcon PHP Framework on CentOS / RedHat

    How To Install Phalcon PHP Framework on CentOS / RedHat

    By RahulNovember 25, 20142 Mins Read

    Phalcon is a high performance Php framework with MVC support. Its is very useful framework for developing dynamic applications rapidly. This article will help you install and enable Phalcon php framework in CentOS, Redhat and Fedora Systems.

    Advertisement

    Install Required Packages

    To start with Phalcon Project, we first need to setup a running LAMP server. If you have already running LAMP stack skip this step else use followings commands to setup lamp stack.

    Install Apache

    # yum --enablerepo=remi,epel install httpd
    

    Install MySQL

    # yum --enablerepo=remi,epel install mysql-server
    # service mysqld start
    # /usr/bin/mysql_secure_installation
    

    Install PHP

    # yum --enablerepo=remi,epel install php php-mysql gcc libtool
    # service httpd restart
    

    Install Phalcon PHP Framework

    Now download latest source code from Github and build it using following commands. You will required to have git installed on your system.

    $ cd /opt/
    $ git clone https://github.com/phalcon/cphalcon.git
    $ cd cphalcon/build
    $ sudo ./install
    

    Enable Phalcon php extension in your system.

    $ echo "extension=phalcon.so" > /etc/php.d/phalcon.ini
    $ service httpd reload
    

    Verify Phalcon

    Before proceeding for development, make sure phalcon php framework has been successfully installed with your php.

    Create a info.php on your web document root with following content and access it in browser.

    <?php
      phpinfo();
    ?>
    

    You will see output like below.

    2014-12-24_1541

    Create Project with Phalcon

    As you have successfully installed phalcon php extension in your system. Lets visit below url to install Phalcon Developer Tools for creating project and add components in project.

    https://tecadmin.net/creating-project-with-phalcon-developer-tools-in-linux/

    Framework phalcon PHP
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    How to Prevent SQL-injection in PHP using Prepared Statements

    Preventing SQL injection attacks with prepared statements in MySQL

    PHP Arrays: A Beginner’s Guide

    View 3 Comments

    3 Comments

    1. Lucas Serafim on April 5, 2017 12:21 pm

      Little tip, if you are using php70 and can’t install phalcon for missing php-config, install: php70-devel

      Reply
    2. Victor on March 15, 2017 1:01 pm

      Many, many years ago, package managers were invented!
      However, many people, up to now, write howto for not package managment distributions.
      This howto NOT FOR CENTOS. This for linux from scratch.

      Reply
    3. Nic on August 4, 2015 3:05 pm

      Cool, Phalcon some reason my Windows refused to install. Gave an error, look under the Linux

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • Implementing a Linux Server Security Audit: Best Practices and Tools
    • cp Command in Linux (Copy Files Like a Pro)
    • 15 Practical Examples of dd Command in Linux
    • dd Command in Linux (Syntax, Options and Use Cases)
    • Iptables: Common Firewall Rules and Commands
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.