Solution: How to fix problems with GoDaddy hosting
Posted: 17 March 2008 09:28 PM   [ Ignore ]  
Summer Student
Total Posts:  9
Joined  05-31-2007

I had a site running well for quite some time on GoDaddy shared linux hosting, by doing the following:

1. Forcing PHP5 with a .htaccess file of the following:

AddHandler x-httpd-php5 .php
AddHandler x
-httpd-php .php4

2. Use ORIG_PATH_INFO instead of PATH_INFO

3. After the line added to /index.php in Step 2, add this:

$path_info = substr($path_info, strlen("/index.php"));

This worked fine.  However, as of a few days ago, I started getting “No input file specified.” on every page except the index, as described here. Without wanting to switch to Forced Querystring Mode, I finally figured out how to solve it.

It seemed to be a problem with Apache’s “AcceptPathInfo” being off.  However, phpinfo() said that I was running Apache 1.3, and you can’t turn AcceptPathInfo on until Apache 2.

The solution was the following:

1. Leave .htaccess as above

2. Stop doing this and start using PATH_INFO again instead of ORIG_PATH_INFO

3. Keep using this line:

$path_info = substr($path_info, strlen("/index.php"));


4. Create “php5.ini” (rather than php.ini) containing the following and place it in your web root.

cgi.fix_pathinfo = 1

Hope that helps people.  I saw posts on other forums from people the same day my site broke but nothing on how to fix things for ExpressionEngine sites.  GoDaddy often doesn’t admit when they make server changes such as those as of recent.

 Signature 

http://philfreo.com

Profile
 
 
Posted: 18 March 2008 08:14 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  21262
Joined  05-20-2002

Appreciat the overview, philfred.  I added a note to the wiki entry here linking back to this thread.  Very helpful!

 Signature 

AKA rob1

Help Request Tips * Pro Network

Profile
 
 
Posted: 18 March 2008 09:23 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  9
Joined  05-31-2007

Cool, thanks.  Perhaps you should also add a link http://expressionengine.com/knowledge_base/article/main_page_content_appears_on_every_page_i_get_404s_except_on_the_main_page_/ since that page described my exact problem (but no working solution)

 Signature 

http://philfreo.com

Profile
 
 
Posted: 18 March 2008 09:46 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  21262
Joined  05-20-2002

wink I did- but always feel free to edit wiki entries- it’s a community effort.  So when you have a good idea or suggestion to make there?  You can jump in and do it, no problem.

 Signature 

AKA rob1

Help Request Tips * Pro Network

Profile
 
 
Posted: 18 March 2008 09:51 AM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  9
Joined  05-31-2007

Ah, I see.  I actually meant add a link FROM the knowledge base article, which I can’t edit, since it was what what describing my problem.

 Signature 

http://philfreo.com

Profile
 
 
Posted: 23 August 2008 11:50 AM   [ Ignore ]   [ # 5 ]  
Summer Student
Total Posts:  2
Joined  08-28-2007

Beautiful.  I gave up trying to remove index.php on godaddy and went with this method.  I know it’s possible, but I’m on a deadline.  I just want my pages to load.

Profile
 
 
Posted: 24 August 2008 07:55 AM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  21262
Joined  05-20-2002

Glad philfreo got you squared away!  (This community rocks!)

 Signature 

AKA rob1

Help Request Tips * Pro Network

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 1149, on July 16, 2007 10:33 AM
Total Registered Members: 61109 Total Logged-in Users: 50
Total Topics: 73947 Total Anonymous Users: 32
Total Replies: 398839 Total Guests: 541
Total Posts: 472786    
Members ( View Memberlist )