Javatpoint Logo
Javatpoint Logo

How to Install YII on CentOS.

Introduction

YII is an open source, object oriented, component-based MVC web framework written in PHP. Its alpha version was released in October, 2006. Its first formal version 1.0 was released in December, 2008. The current version of YII is 2.0.0 which also supports PHP 7. It can be an acronym for Yes It Is. In this tutorial, we will install YII2 on CentOS.

Prerequisites

  • CentOS 7
  • Login as an administrator on terminal
  • PHP 5.4.X or higher
  • PCRE Extension
  • Reflection Extension
  • SPL Extension
  • CType Extension
  • MBString Extension
  • OpenSSL Extension
  • Intl Extension

Installation

Installation includes following steps.

1. Install fxp/composer-asset-plugin

Execute the following command to install fxp/composer-asset-plugin which is necessary in order to craft new YII Application.

CentOS How to Install YII on CentOS

2. Create Project

Execute the following command to create a new YII powered Application (named as javatpoint3 in my case).

CentOS How to Install YII on CentOS 1

3. Provide Hidden Tokens

The process prompts us to enter the YII-tokens which needs to be generated by using our github account.

CentOS How to Install YII on CentOS 2

In order to generate our personal Access tokens, we need to login to our github account and go to user profile ---> select settings ---> Developer Settings ---> Personal access tokens ---> generate new tokens.

CentOS How to Install YII on CentOS 3

Fill yii-tokens in place of token description. Select all the options and click Generate token.

CentOS How to Install YII on CentOS 4 CentOS How to Install YII on CentOS 5

Now, our personal access token is generated. Copy this and paste on the terminal.

CentOS How to Install YII on CentOS 6

Since the token is in hidden form hence we are not going to see it. Just paste the token and press Enter. The process will show the message Token stored successfully.

CentOS How to Install YII on CentOS 7 CentOS How to Install YII on CentOS 8

4. Start the PHP development server

After all this process, we just need to start the PHP development server. First change the current working directory by typing cd javatpoint3 and then execute the following command.

CentOS How to Install YII on CentOS 9

5. Access on browser

Type localhost:8080 in the browser's search bar to access YII on browser.

CentOS How to Install YII on CentOS 10

Hence, we have installed and gat started with YII on CentOS.


Next TopicInstall Magento





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA