Linux

Install Phalcon PHP on Debian 9

Contents:

Phalcon is a full-stack PHP framework. It provides ready to use classes and functions. Phalcon provides the lowest overhead for MVC-based applications. This tutorial will help you to install Phalcon PHP framework module on your Debian 9 systems.

Prerequsities

First of all, you need to install some prerequisites packages in your system using the following commands.

sudo apt install ca-certificates apt-transport-https

Then install PHP 5.6 or later version with required modules.

wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list
sudo apt update
sudo apt install php php-curl php-gd php-json php-mbstring

Install Apache2

sudo apt install apache2 libapache2-mod-php

Install MySQL

sudo apt install mysql-server php-mysql

Install Phalcon PHP Module

PHP Phalcon framework is available as of PHP module. You can install it from the same repositories used for PHP installation.

Run the following command to install:

sudo apt 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.

Source

Share:
Leave a Comment
Share
Published by
itfromzero

Recent Posts

Configure IP Network with ‘nmtui’ Tool

An alternative for the nmcli is the nmtui, short for Network Manager Text User Interface,…

4 years ago

Install MariaDB on Debian 9 (Stretch)

MariaDB is an enhanced, drop-in replacement for MySQL. MariaDB can be a better choice for…

5 years ago

Install MariaDB on Ubuntu 18.04 LTS

MariaDB is an enhanced, drop-in replacement for MySQL. MariaDB can be a better choice for…

5 years ago

Sync Files Directories from Different Cloud Storage with Rclone

Rclone is a command line program written in Go language, used to sync files and…

5 years ago

Enable Authentication – Create Admin/Root User in MongoDB

By default, authentication is disabled in MongoDB, but this is not so critical as, out…

5 years ago

Python Pip Basic Commands

What is Pip? pip is a tool for installing and managing Python packages. With pip…

5 years ago