Yii Framework Forum: Yiic problem in Ubuntu - Yii Framework Forum

Jump to content

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Yiic problem in Ubuntu

#21 User is offline   vonnero 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 15-July 10

Posted 10 March 2013 - 02:22 AM

View Postmacinville, on 26 October 2010 - 10:57 PM, said:

There's no response from the topic creator whether the problem has been solved or not...

Anyway, for the sake of Ubuntu users and wanted to try Yii as their framework, here's what I've done:

1) Extract your downloaded Yii pack to a web-accessible folder, let's say the folder's name YiiFramework.

2) Open your command line, and go to your web server's document root, say MyWebroot.
$ cd MyWebroot

3) To create your demo folder, type in your command line:
$ YiiFramework/framework/yiic webapp demo

4) It will ask a confirmation from you if you really want to create a web application under /MyWebroot/demo, so just type in there Yes and hit enter. It will create all the default files and folders for the framework's web application skeleton .

5) Go to http://localhost/demo/index.php to verify if the web application has been created.

* bash and ./ wont work because yiic is not an ubuntu or even a linux command. As a matter of fact, I was able to run yiic in the command prompt of windows 7! ;)
* I extracted Yii right in my apache's documentroot. If you placed it (extracted Yii files) inside a folder under your documentroot, you need to change the directory in step #3 to access yiic
* There might be a need to change the yiic file's permission for it to become executable (like chmod +x) if permission denied error appears when executing step #3.
* If ever you encounter the error "/usr/bin/env: php: No such file or directory", just install php5-cli

sudo apt-get install php5-cli

works just fine!

Share this topic:

  • (2 Pages)
  • +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users