Where Do I Unzip Yii To?!
Posted 23 November 2012 - 10:28 AM
The Documentation contradicts itself right away:
"Unpack the Yii release file to a Web-accessible directory."
"Tip: Yii does not need to be installed under a Web-accessible directory."
My WampServer installed to C:\wamp
so that's C:\wamp\www as the root folder where a test php script runs fine.
Also in C:\wamp\ - long with "www" are other folders: logs,alias,lang,scripts,tmp,tools,bin and apps
I downloaded yii-1.1.12.b600af.zip and it contains 4 text files and 3 folders:
Where does it all go? And yes, I've Googled and found all sorts of different answers, but I'm still none the wiser!
Posted 23 November 2012 - 12:50 PM
Almost all of them say to put it in the webroot folder (C:\wamp\www in my case), against the tip
"Yii does not need to be installed under a Web-accessible directory."
Yet the requirements does need to be, and so I presume demos, like any project I create?
This wiki comment recommends folders away from webroot, one for each version of Yii, instead of replacing previous versions :
In the absence of any help, I'd be tempted to try :
1) create a yii folder in C:\wamp so it's at the same level as www, not under it
2) unzip the zip's single root folder (with the version number name) into the new C:\wamp\yii
3) drill down into C:\wamp\yii\yii-1.1.12.b600af\ and move the demo and requirements folder into C:\wamp\www - i.e.
C:\wamp\www\requirements to run as http://localhost/requirements
leaving just the framework folder where it was : C:\wamp\yii\yii-1.1.12.b600af\framework
4) attempt to configure everything to work
Am I anywhere near right?
Posted 26 November 2012 - 08:54 AM
My comment was as follows - in what world would this not be useful to someone as puzzled as I was...?
Example : Windows 7 and WampServer
I downloaded yii-1.1.12.b600af.zip and it contained a yii-1.1.12.b600af/ folder, containing:
- demos/ (demos)
- framework/ (framework source files)
- requirements/ (requirement checker)
- CHANGELOG (describing changes in every Yii release)
- LICENSE (license of Yii)
- README (instructions)
- UPGRADE (upgrading instructions)
I created a folder yii/ in my Wamp folder ( C:\wamp\yii ) so that it was outside the 'webroot' ( C:\wamp\www ).
I unzipped the download here, ending up with C:\wamp\yii\yii-1.1.12.b600af\framework etc.
I moved the requirements/ and demos/ folders into 'webroot' - i.e. C:\wamp\www\requirements
The requirements test ran fine as localhost/requirements/index.php
For the demos Hangman game to work ( localhost/demos/hangman/index.php )
I had to edit index.php :
Posted 14 December 2012 - 09:10 PM
i.e. the following might be in your index.php file:
the live folder would be under /data/live/protected and not under /public_html/data/live/protected
By default the yiic tool will put it all in the same location (I guess it makes it easier for an auto tool).
You Do It List: http://youdoitlist.com.au
Posted 15 December 2012 - 01:47 PM
So far it has remained in place
My more WAMPServer-specific comments ended up in the wiki at
- at least it seems to be appreciated there!