Wednesday 8 January 2014

How to install yii php framework on ubuntu linux?

Yii helps Web developers build complex applications and deliver them on-time.
Yii is pronounced as Yee or [ji:], and is an acroynym for "Yes It Is!". This is often the accurate, and most concise response to inquires from those new to Yii:
Is it fast? ... Is it secure? ... Is it professional? ... Is it right for my next project? ... Yes, it is!

Yii is a free, open-source Web application development framework written in PHP5 that promotes clean, DRY design and encourages rapid development. It works to streamline your application development and helps to ensure an extremely efficient, extensible, and maintainable end product.

Steps to install yii php framework on ubuntu

1. Dowanload the latest version of yii framework from

2. Extract downloaded yii framework tar.gz file in same directory

3. Rename extracted folder as yii

4. Move yii folder to root directory of your webserver (opt/lampp/htdocs/yii)

5. Create a new folder as name appyii in root directory (appyii will contain yii framework files)

6. Apply yii framework to your appyii folder by yiic.php webapp file using php cli

7. Test that the installation has been done (

Note: if php command line interpreter not installed

PHP command line installation on Ubuntu Linux

The PHP command-line interpreter runs PHP scripts from the command line.
copy and paste the following command to your terminal
sudo apt-get install php5-cli
In the next lesson i will show you how to configure yii php framework 


  1. iT izza gOod post akshay pal

    i thank for the post

  2. usefull post :) thank you,

  3. Very clearly step by step u have mentioned the installation process. thank you so much for this article.

    If you like to learn about Yii 2.0 beta version, please visit this video:

  4. amigo estoy migrando mis servidores windows a linux y tengo problema para correr una aplicacion con el framework yii ...coloco la aplicacion en en directorio /var/www/ y tambien el framework pero a la hora de correrla en el navegador me da error ..he intrentado darle permisos de escrituras chmod 775 -R tanto al (assets) y al (runtime) pero nada d nada que corre...he revisado la ruta en el index.php pero nada

    he buscado en internet pero la informacion no me ha servido ...por los momentos lo sigo corriendo en un servidor windows server hasta q de con la solucion..

    Es para saber si me pueden dar una idea de como optimizarlo ..

  5. que podría ser un problema de permisos que tiene que dar el permiso de lectura de escritura para la carpeta de activos. acaba de dar permiso completo a la carpeta raíz de la aplicación, así como la carpeta marco yü
    por ejemplo, si la aplicación nombre de la carpeta raíz es: sample_app y yü nombre de la carpeta marco es: yii_framework
    usuario @ host: / var / root $ R chmod 777 sample_app
    usuario @ host: / var / root $ R chmod 777 yii_framework
    mejor de las suertes

  6. I'm a Framework developer, Your Information is very useful to me. Thank you for all your Info..!

    Yii framework development

  7. Nice article thanks for given this information. i hope it useful to many pepole.more php jobs in hyderabad.