Absolute noob - setup and install

Sorry for the dumb question, but here’s my dilemma.

I have read the getting started guide here- http://www.yiiframework.com/doc/guide/1.1/en/quickstart.first-app

But I’m not familiar with the workings of Yii, it’s different from what I have ever worked with.

I am familiar with drupal, so this is what I would do:

  1. Upload drupal to webhost at - www.mydomain.com/some directory

  2. Create db via cpanel

  3. Navigate to - www.mydomain.com/some directory/install

  4. Follow wizard instructions to install

  5. Login to drupal admin cp after install

I take it, this cannot be done with Yii out of the box?

Hosting - Linux with cpanel build 6

Requirements - Passed

[list=1]

[*]Upload Yii framework folder to webhost at - www.mydomain.com/framework (hint: the archive is well compressed, it’s faster to upload it and to uncompress on server with cpanel. If you create your app locally in no. 3, skip no. 1)

[*]Create db via cpanel

[*]In command line : [font="Courier New"]yiic webapp applicationName[/font] and answer Y / Yes :slight_smile: (I do it in my laptop, then upload my project to www.mydomain.com/applicationName, and since the framework is again included in the applicationName folder, I remove it before uploading. Otherwise, skip no. 1)

[*]Edit applicationName/index.php in order to point to correct folders

[*]Edit applicationName/protected/config/main.php in order to specify db connection details

[*]In your browser, go to www.mydomain.com/applicationName, it’s already there

[*]Develop your webapp in your IDE of choice, and consult extensively the available tutorials

[/list]

PS If you’re looking for a website/blog etc. framework, out of the box you don’t edit pages directly in Yii. You’ll have to look for some Yii CMS extension suiting your needs.

PPS Also there’s a Blog demo included in the downloaded archive that gives you an idea, and some really nice (open source) projects available here and there. Check http://www.yiiframework.com/forum/index.php/forum/14-yii-powered-applications/

PPPS For IDEs, Netbeans seems to be outstanding (and lauded by many members here), and obviously, Eclipse. I use Komodo Edit (free vs. Komodo IDE not free) on Mac OS X

Thanks Bennouna, at least I have a starting point now!

Where do I find the command line?

in [font="Courier New"]framework[/font]

In my case though (Mac OS X 10.6 + MAMP), I open terminal, cd to [font="Courier New"]framework[/font] directory and use this

[font="Courier New"]/Applications/MAMP/bin/php5.3/bin/php yiic webapp /Applications/MAMP/htdocs/myWebApp[/font]

lol…I suppose I will just wait to see if I can get a developer to design what I am looking for.

I am very comfortable with Drupal / Concrete5 but those are existing cms’ and not built with yii obviously.

I really wish that yii had an "out of the box" cms that is comparable to one of the above, but that is what we aim to build if we gain a developer.

Thanks bennouna

In addition to that: No executable files except index.php need to be accessable from the web(nor should they).

I’d recommed to place the framework dir somewhere over the webroot.

Ex:

framework under /bla/libs/yii/framework

‘protected’-folder under /bla/apps/appname

index.php/assets/img/css/etc under /bla/path/to/www(/appname) and edit the index.php file to point to the correct files

Ex:




<?php

$yii='/bla/libs/yii/framework/yii.php';

$config='/bla/apps/appname/config/main.php';



My server is configured like so, which is why I’m a bit confused…:

home / beer / public_html / mydomain.com