Javatpoint Logo
Javatpoint Logo

Phalcon Installation

We need to install WAMP/MAMP/LAMP/XAMP according to your operating system. Below the installation is based on WAMP (Windows Apache MySQL PHP).

We install the following prerequisite:

  1. Phalcon
  2. Developer tools

Installing Phalcon

Step1: Download Phalcon from https://phalconphp.com/en/download for windows.

Download Phalcon dll file for Windows.

Phalcon Installation 1

Step 2: Unzip the folder in C:\wamp\bin\php\php5.5.12\ext i.e. in extension folder of php.

Phalcon Installation 2

Step3: Edit the php.ini file which is located at C:\wamp\bin\php\php5.5.12\php.ini with notepad or other similar editor.

Phalcon Installation 3

Step 4: Restart WAMP server and we can see the Phalcon extension added.

Phalcon Installation 4

Installing Developer tools

Step 1: Download developer tools from https://github.com/phalcon/phalcon-devtools of correct version. Extract in C:\ drive which looks like C:\phalcon-devtools-master.

Version info in WAMP

Check by running WAMP server then click on phpinfo().

Phalcon Installation 5
Phalcon Installation 6

Step 2: Set environment variables for PHP and Phalcon developer tools.

Phalcon Installation 7
Phalcon Installation 8
Phalcon Installation 9

Step3: Open cmd and type command "phalcon".

Phalcon Installation 10

Step 4: Create project demo using command.

Phalcon Installation 11
Phalcon Installation 12

Edit: We edit the server config file

  1. Open apache's configuration file in text editor. The configuration files location at {wamp_dir}/apache/conf/httpd.conf.
  2. Search for the following string: #LoadModule rewrite_module modules/mod_rewrite.so and uncomment it (remove the '#' sign).
  3. Now search for another string AllowOverride None and replace it by AllowOverride All.
  4. Finally save the changes and restart your wamp server.

Run- To check the successful installation of project we run project file located under directory file:///C:/wamp/www/demo/index.html and run on localhost.

Phalcon Installation 13




Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA