Part of the EllisLab Network
   
 
Help me to solve this error “No input file specified.”
Posted: 18 July 2008 01:53 AM   [ Ignore ]  
Summer Student
Total Posts:  13
Joined  04-03-2008

Hi all,

I can run well this website on localhost. But, when i publish this website on http://www.lib4you.com/ . I don’t run any page on this website. It occur a error: “No input file specified.”.

This is my phpinfo() file: http://www.lib4you.com/info2.php

Please help me to solve this problem! Thanks very much!

Profile
 
 
Posted: 18 July 2008 03:41 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1772
Joined  07-30-2007

Change the URI Protocol within config/config.php - there are various settings there documented within the comments. REQUEST_URI seems to be a winner on most every host.

 Signature 

MichaelWales.com

Profile
 
 
Posted: 18 July 2008 04:06 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  13
Joined  04-03-2008

Thanks. I changed uri_protocol = REQUEST_URI. But it also occur this error.

/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string.  The default setting of "AUTO" works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'AUTO'            Default - auto detects
| 'PATH_INFO'        Uses the PATH_INFO
| 'QUERY_STRING'    Uses the QUERY_STRING
| 'REQUEST_URI'        Uses the REQUEST_URI
| 'ORIG_PATH_INFO'    Uses the ORIG_PATH_INFO
|
*/
$config['uri_protocol']    = "AUTO";

Profile
 
 
Posted: 18 July 2008 05:25 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1772
Joined  07-30-2007

Are you using a .htaccess file? Delete it so we start over at step 1 (make sure you add in index.php to your config.php again).

Did you try any of the other settings in URI Protocol?

 Signature 

MichaelWales.com

Profile
 
 
Posted: 18 July 2008 08:47 AM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  13
Joined  04-03-2008
Michael Wales - 18 July 2008 05:25 AM

Are you using a .htaccess file? Delete it so we start over at step 1 (make sure you add in index.php to your config.php again).

I don’t use .htaccess file.

Michael Wales - 18 July 2008 05:25 AM

Did you try any of the other settings in URI Protocol?

Yes, I changed other option, but ... It don’t works.

Profile
 
 
Posted: 18 July 2008 08:52 PM   [ Ignore ]   [ # 5 ]  
Summer Student
Total Posts:  13
Joined  04-03-2008

Other solution?! Is this a bug in CI 1.6.1?

Profile
 
 
Posted: 19 July 2008 01:56 AM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1772
Joined  07-30-2007

Who is your webhost?

 Signature 

MichaelWales.com

Profile
 
 
Posted: 19 July 2008 02:03 AM   [ Ignore ]   [ # 7 ]  
Summer Student
Total Posts:  13
Joined  04-03-2008

My website: http://www.lib4you.com/ on GodAddy hosting. I test on localhost, it works well.

Profile
 
 
Posted: 19 July 2008 02:13 AM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1772
Joined  07-30-2007

Are you using their Windows hosting or Linux hosting?

This Google search should get you pointed in the right direction - basically, GoDaddy is a crappy host. On their Linux hosting you should be okay (well, your app will work - it will just be insanely slow, as all GoDaddy hosted sites are).

Personally, I highly recommend changing hosts. GoDaddy is only good for mom-and-pops that want to use basic HTML - GoDaddy’s customer is the guy who saw the commercial and decided he wanted to start grandmasuescookiesinalabama.com and his cousin Ricky is going to design the website in MS Word.

 Signature 

MichaelWales.com

Profile
 
 
Posted: 19 July 2008 02:42 AM   [ Ignore ]   [ # 9 ]  
Summer Student
Total Posts:  13
Joined  04-03-2008

Oh, thanks… I use linux hosting. What do I change special configuration’s hosting? CI don’t working on GodAddy hosting. Why? Please explain it to me!

I test CI demo and there are the results:
+ http://www.lib4you.com/test_ci_1.6.1/ [OK]
+ http://www.lib4you.com/test_ci_1.6.1/index.php/welcome [Error: No input file specified.]

Can you introduce any hosting working with CI 1.6.*? Thanks very much!

Profile
 
 
Posted: 19 July 2008 03:03 AM   [ Ignore ]   [ # 10 ]  
Summer Student
Avatar
Total Posts:  5
Joined  07-16-2008

Try Dreamhost instead.

If you have problem with htaccess in Dreamhost, check this out: http://codeigniter.com/wiki/Dreamhost_.htaccess/

Profile
 
 
Posted: 19 July 2008 03:50 AM   [ Ignore ]   [ # 11 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1772
Joined  07-30-2007

CI will work on GoDaddy - you just have to really work on it - the Google search I linked to has literally hundreds of Wiki entries, forum posts, and more concerning GoDaddy.

Personally, GoDaddy sucks - it’s a horrible host. Dreamhost is a good one although I had issues with downtime. I use ASmallOrange.com and have been very happy with them thus far.

 Signature 

MichaelWales.com

Profile
 
 
Posted: 19 July 2008 10:30 PM   [ Ignore ]   [ # 12 ]  
Summer Student
Total Posts:  13
Joined  04-03-2008

Thanks you.

I solved this problem.
This is a solution:

uri_protocol = QUERY_STRING
index_page
= index.php?

So url like: http://www.lib4you.com/index.php?/view/detail/133.html

But i don’t use my website with a .htaccess file. My .htaccess file:

Options -Indexes
Options
+FollowSymLinks
DirectoryIndex index
.php


RewriteEngine on
RewriteBase
/
RewriteCond $1 !^(index\.php|website|templates|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteRule
^(.*)$ index.php?$1 [L]

Can you help me to solve my htaccess?! Thanks!

Profile
 
 
Posted: 21 July 2008 07:43 PM   [ Ignore ]   [ # 13 ]  
Grad Student
Avatar
Rank
Total Posts:  58
Joined  10-26-2007

Hi,

If you don’t mess much with your config file CI must be ok on any host!

If you want a cheap and fast has hell host give this a look:

Site5

I’m changing all my websites to it!

Of course you have always Engine Hosting from our guys of Ellis Lab.

 Signature 

CodeIgniter Portugal { ci_pt }

http://www.e-coisas.com

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 61065 Total Logged-in Users: 22
Total Topics: 73887 Total Anonymous Users: 1
Total Replies: 398535 Total Guests: 344
Total Posts: 472422    
Members ( View Memberlist )