Part of the EllisLab Network
   
1 of 2
1
Dreamhost => [No input file specified]
Posted: 03 July 2007 02:40 AM   [ Ignore ]  
Summer Student
Total Posts:  4
Joined  04-27-2007

Hi Guys,

I tried uploading my system in dreamhost, and I always get “No input file specified.” error/notice. Checked the config file but it was ok, I tried to upload the system in another host (my friend’s), and it worked well.  However since dreamhost is my main hosting I need to fix this issue.

Anybody who has encountered the same issue before? Need some help.

Thanks smile

Profile
 
 
Posted: 03 July 2007 04:08 AM   [ Ignore ]   [ # 1 ]  
Grad Student
Rank
Total Posts:  72
Joined  11-02-2006

I host with dreamhost, make sure you select the php 5 option this may be the cause as CI only works with PHP 5 on Dreamhost hope this helps.

 Signature 

Apache 2 PHP 5 Ubuntu Sellersrank.com [TextMate CodeIgniter Bundle]

Profile
 
 
Posted: 03 July 2007 04:13 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  4
Joined  04-27-2007

yeah, I just did that, and it finally worked! :D

Profile
 
 
Posted: 04 July 2007 05:09 AM   [ Ignore ]   [ # 3 ]  
Summer Student
Avatar
Total Posts:  18
Joined  06-26-2007

I am also on Dreamhost, and made sure that PHP5 was selected, but this error still appears.

Profile
 
 
Posted: 04 July 2007 01:18 PM   [ Ignore ]   [ # 4 ]  
Grad Student
Rank
Total Posts:  72
Joined  11-02-2006

Maybe a path error see wiki http://codeigniter.com/wiki/Server_URL_problems/

 Signature 

Apache 2 PHP 5 Ubuntu Sellersrank.com [TextMate CodeIgniter Bundle]

Profile
 
 
Posted: 04 July 2007 05:13 PM   [ Ignore ]   [ # 5 ]  
Summer Student
Avatar
Total Posts:  18
Joined  06-26-2007

Actually, it was a tiny addition to the .htaccess file that finally solved it. So, for all you Dreamhost users out there, use this to strip that nasty index.php string from your URLs:

RewriteEngine On
RewriteCond
$1 !^(index\.php)
RewriteRule ^(.+)$ index.php?$1 [L]

It seems the question mark on teh third line is the key.

Profile
 
 
Posted: 09 August 2007 11:32 AM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  9
Joined  08-09-2007

yeah it worked!! :D
but i had this code with me

RewriteRule ^(.*)$ /index.php/$1 [L]


so i had to put the question mark right after the ’.php’ like:

RewriteRule ^(.*)$ /index.php?/$1 [L]


any idea what that means? just a curious question.

Profile
 
 
Posted: 27 September 2007 11:37 PM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  397
Joined  09-20-2007

I think it makes the 2nd p optional, which still doesn’t make much sense why it works…

I had the same problem, using php5 with mod_security enabled. fastcgi disabled. and the ? works.

I feel like I mostly understand what is going on in the .htaccess, but not fully and not enough to explain it. :(

 Signature 

Plurk > Pownce > Twitter

Profile
 
 
Posted: 18 October 2007 09:47 PM   [ Ignore ]   [ # 8 ]  
Summer Student
Total Posts:  6
Joined  09-07-2007

i have a sneaking suspicion that this has somethign to do with the mod_security apache module enabled by default on Dreamhost Shared account setups.

But, I have no proof.

[Update: After testing a few different scenarios surrounding CI and mod_security on Dreamhost Servers it seems that my sneaking suspicion… snuck away. I thought that is was playing against the mod_rewrite module setup in an anomalous way but this is, as far as I can tell, not the case or the cause.]

Profile
 
 
Posted: 08 November 2007 10:08 AM   [ Ignore ]   [ # 9 ]  
Summer Student
Total Posts:  10
Joined  04-16-2007

That worked for me too, thank you for the workaround of the problem.

I’m however not using Dreamhost servers, but rather my own server that has been configured from the scratch and I’m pretty much interested why this happens.

If someone, that is more enlightened with the mod_rewrite and the apache structure can shed some light on that particular issue?:)

Thanks in advance!

Profile
 
 
Posted: 03 December 2007 05:42 AM   [ Ignore ]   [ # 10 ]  
Summer Student
Avatar
Total Posts:  7
Joined  03-08-2007

same here - on a Media Temple (mt) account
the question mark to the rescue

Profile
 
 
Posted: 06 December 2007 04:52 PM   [ Ignore ]   [ # 11 ]  
Summer Student
Total Posts:  13
Joined  04-04-2007

I’ve had the exact same problem, adding the ’?’ solved everything. I’m not using DreamHost, I’m on GatorHost.

 Signature 

May the source be with you

Profile
 
 
Posted: 06 December 2007 06:10 PM   [ Ignore ]   [ # 12 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1819
Joined  07-30-2007

If you set the uri protocal to REQUEST_URI you can drop the question mark.

 Signature 

MichaelWales.com

Profile
 
 
Posted: 08 December 2007 06:26 PM   [ Ignore ]   [ # 13 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  397
Joined  09-20-2007

http://codeigniter.com/wiki/Dreamhost_.htaccess/

See the wiki page

RewriteEngine On
RewriteCond
%{REQUEST_FILENAME} !-f
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteRule
^(.*)$ index.php/$1 [L]

and

RewriteEngine on
RewriteCond
%{REQUEST_FILENAME} !-f
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteRule
^(.*)$ index.php?$1 [L]

Also works.

 Signature 

Plurk > Pownce > Twitter

Profile
 
 
Posted: 08 December 2007 06:32 PM   [ Ignore ]   [ # 14 ]  
Lab Assistant
RankRank
Total Posts:  230
Joined  03-12-2007

This tends to happen when people are running PHP as a CGI versus an Apache module due to the way the environment is set up.  I feel like this has happened enough to warrant a note in the docs.

Profile
 
 
Posted: 08 December 2007 07:15 PM   [ Ignore ]   [ # 15 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  397
Joined  09-20-2007

This page on EE wiki explains in more detail about the different options that programmers have at solving this issue. EE is built off CI and so faces a similar problem in this regard.


http://expressionengine.com/wiki/Remove_index.php_From_URLs/

 Signature 

Plurk > Pownce > Twitter

Profile
 
 
   
1 of 2
1
 
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: 62604 Total Logged-in Users: 17
Total Topics: 77091 Total Anonymous Users: 2
Total Replies: 416307 Total Guests: 174
Total Posts: 493398    
Members ( View Memberlist )
Newest Members:  wengbaoshanGenki1gabewellsGlaucoeudj1nsehartEasyMLance SloanandrewjhscottShuvo
Active Members:    bri@ncahvarnoDark PreacherdodmoGenki1j0hanKoolavyMiragerobertcsmithrussegbseinfeldsharpestensistooptdktank59vendiddyZac G.