Close Menu
    Facebook X (Twitter) Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook X (Twitter) Instagram
    TecAdmin
    You are at:Home»PHP Framework»How To Install Phalcon PHP Framework on Ubuntu 18.04 & 16.04

    How To Install Phalcon PHP Framework on Ubuntu 18.04 & 16.04

    By RahulAugust 30, 20181 Min Read

    Phalcon is a high performance Php framework with MVC support. It is a very useful framework for developing dynamic applications rapidly. This article will help you install and enable the Phalcon PHP framework in your Ubuntu system.

    Prerequsities

    Firstly you need to install some prerequisites packages in your system using the following commands.

    sudo apt-get install gcc libpcre3-dev software-properties-common
    

    Then install PHP 5.6 or later version with required modules.

    sudo add-apt-repository ppa:ondrej/php
    sudo apt-get update
    sudo apt-get install php php-curl php-gd php-json php-mbstring 
    

    Install Apache2

    sudo apt-get install apache2 libapache2-mod-php
    

    Install MySQL

    sudo apt-get install mysql-server php-mysql
    

    Install Phalcon PHP Framework

    Phalcon framework is available as of PHP module. Run the following command to install.

    sudo apt-get install php-phalcon
    

    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.

    PHP Phalcon Setup on Ubuntu

    Create Project with Phalcon

    As you have successfully installed Phalcon PHP module to your system. Let’s visit below URL to install Phalcon Developer Tools for creating a project and add components in the 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

    Getting Started with Flask: A Beginner’s Guide

    How to Disable Functions in PHP

    How to Schedule a Cron Job for PHP: A Step-by-Step Guide

    View 1 Comment

    1 Comment

    1. Sri on April 9, 2015 4:12 am

      Hey Rahul,

      Thanks for the steps. Everything worked, except adding the extensions.

      For that, I had to do the following:

      #Add extension
      echo ‘extension=phalcon.so’ | sudo tee -a /etc/php5/mods-available/phalcon.ini

      cd /etc/php5/mods-available

      sudo php5enmod phalcon

      # Restart apache
      sudo /etc/init.d/apache2 restart

      I can’t take credit as I found this mentioned elsewhere.

      Thanks.
      Sri

      Reply

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • How to Change Port in Next.Js
    • Ubuntu 24.04 LTS: The Future of Open-Source Excellence
    • How to Execute Linux Commands in Python
    • Creating MySQL User with GRANT OPTION
    • Where to find crontab (cron) logs in Ubuntu & Debian
    Facebook X (Twitter) Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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