Yii Framework Forum: Gii installation - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Gii installation Yii could not be found after installation Rate Topic: -----

#1 User is offline   Gregoire 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 11-March 10

Posted 08 July 2010 - 08:49 AM

Hello,

Today I installed Yii 1.1.3 (stable) and started my app like this:
yiic webapp <path>/MyApp (see the log below)

The issue is that doing this, it seems that Gii is not available/installed. I have followed the Getting started instruction and everything else is working fine. Under yii-1.1.3.r2247/framework/ I can see a folder gii but I could not find it anywhere under MyApp/ folder. I have configured Gii as a module of MYApp in the main.php configuration as instructed but when i call http://localhost/art...index.php?r=gii I recieve a polite 404 page not found.

I've probably missed something but I can't find what... (I have read the doc, googled for it and when through the forums).

yii-1.1.3.r2247/framework/yiic webapp arts563 
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
Create a Web application under '/var/www/arts563'? [Yes|No] Yes
      mkdir /var/www/arts563
      mkdir /var/www/arts563/themes
      mkdir /var/www/arts563/themes/classic
      mkdir /var/www/arts563/themes/classic/views
      mkdir /var/www/arts563/themes/classic/views/site
      mkdir /var/www/arts563/themes/classic/views/layouts
   generate themes/classic/views/.htaccess
      mkdir /var/www/arts563/themes/classic/views/system
      mkdir /var/www/arts563/css
   generate css/screen.css
   generate css/main.css
   generate css/form.css
   generate css/print.css
   generate css/bg.gif
   generate css/ie.css
      mkdir /var/www/arts563/protected
   generate protected/yiic.php
      mkdir /var/www/arts563/protected/controllers
   generate protected/controllers/SiteController.php
      mkdir /var/www/arts563/protected/components
   generate protected/components/UserIdentity.php
   generate protected/components/Controller.php
      mkdir /var/www/arts563/protected/tests
      mkdir /var/www/arts563/protected/tests/fixtures
   generate protected/tests/bootstrap.php
      mkdir /var/www/arts563/protected/tests/unit
   generate protected/tests/WebTestCase.php
   generate protected/tests/phpunit.xml
      mkdir /var/www/arts563/protected/tests/functional
   generate protected/tests/functional/SiteTest.php
      mkdir /var/www/arts563/protected/tests/report
   generate protected/yiic.bat
      mkdir /var/www/arts563/protected/models
   generate protected/models/LoginForm.php
   generate protected/models/ContactForm.php
   generate protected/yiic
      mkdir /var/www/arts563/protected/data
   generate protected/data/schema.sqlite.sql
   generate protected/data/testdrive.db
   generate protected/data/schema.mysql.sql
      mkdir /var/www/arts563/protected/runtime
      mkdir /var/www/arts563/protected/messages
   generate protected/.htaccess
      mkdir /var/www/arts563/protected/extensions
      mkdir /var/www/arts563/protected/commands
      mkdir /var/www/arts563/protected/commands/shell
      mkdir /var/www/arts563/protected/views
      mkdir /var/www/arts563/protected/views/site
   generate protected/views/site/contact.php
   generate protected/views/site/login.php
   generate protected/views/site/error.php
      mkdir /var/www/arts563/protected/views/site/pages
   generate protected/views/site/pages/about.php
   generate protected/views/site/index.php
      mkdir /var/www/arts563/protected/views/layouts
   generate protected/views/layouts/column1.php
   generate protected/views/layouts/column2.php
   generate protected/views/layouts/main.php
      mkdir /var/www/arts563/protected/config
   generate protected/config/test.php
   generate protected/config/console.php
   generate protected/config/main.php
   generate index-test.php
      mkdir /var/www/arts563/assets
      mkdir /var/www/arts563/images
   generate index.php

Your application has been created successfully under /var/www/arts563.


Any help would be greatly appreciated.

Cheers
0

#2 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 08 July 2010 - 08:59 AM

Can you show the configuration of your Gii module?
0

#3 User is offline   Gregoire 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 11-March 10

Posted 08 July 2010 - 09:11 AM

View PostMike, on 08 July 2010 - 08:59 AM, said:

Can you show the configuration of your Gii module?

Here it is (file: protected/config/main.php):
	// autoloading model and component classes
	'import'=>array(
		'application.models.*',
		'application.components.*',
	),

	'modules'=>array(
		'gii'=>array(
			'class'=>'system.gii.GiiModule',
			'password'=>'*****',
		),
	),

0

#4 User is offline   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 09 July 2010 - 01:29 AM

Looks ok. Is the 404 the standard error created by your webserver (apache) or is it already an Yii exception (which looks differen)? If it's an apache error, there's obviously something wrong with your webserver configuration.
0

Share this topic:


Page 1 of 1
  • 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