Yii Framework Forum: No Input File Specified Yii - Yii Framework Forum

Jump to content

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

No Input File Specified Yii hosting in shared server godaddy Rate Topic: -----

#1 User is offline   elavarasan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 13-July 13

Posted 23 July 2013 - 03:47 PM

i have hosted my site in godaddy shared linux hosting and my .htaccess file contains
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php/$1 [L,QSA]
</IfModule>

and main.php file cointains
'urlManager'=>array(
'urlFormat'=>'path',y 'showScriptName'=>false,
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
my home page is loading correctly but when i click in any link i am getting a "no input file specified" error
i hosted the same website in website.org and there its working properly.
what should i do to make the site work on godaddy.
0

#2 User is offline   Kostas Apazidis (KonApaz) 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,342
  • Joined: 21-February 11
  • Location:Greece

Posted 23 July 2013 - 05:33 PM

I am not sure, but you could test by remove one of them

RewriteRule ^(.*)\?*$ index.php/$1 [L,QSA]
or
'showScriptName'=>false,

check both of them
Yii is the best php framework in the world!
It is also powerful and flexible for large scale websites
find our demo Yii extension on www.webkit.gr
Is it post useful? please v++ ;)
0

#3 User is offline   Da:Sourcerer 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 1,269
  • Joined: 30-March 11
  • Location:Berlin, Germany

Posted 24 July 2013 - 03:39 AM

This sounds a bit like an nginx error ... could you perhaps show us the complete and exact error message? Otherwise, you might find this thread helpful.

Edit: Check this thread as well. This might actually be the solution to your problem as the error message is the exact same you are getting.
programmer /ˈprəʊgramə/, noun: a device that converts ►coffee into ►code
0

#4 User is offline   elavarasan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 13-July 13

Posted 24 July 2013 - 10:45 AM

got the work finished thanks to Da:Sourcerer and KonApaz.
My .htaccess file is:
RewriteEngine on

# if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# otherwise forward it to index.php
RewriteRule ^.*$ /index.php? [L]

and main.php is:
'urlManager'=>array(
'urlFormat'=>'path',
'rules'=>array(
'<controller:\w+>/<id:\d+>'=>'<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
),
),
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