ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Solution: How to fix problems with GoDaddy hosting

March 17, 2008 11:28pm

Subscribe [4]
  • #1 / Mar 17, 2008 11:28pm

    philfreo

    50 posts

    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.

  • #2 / Mar 18, 2008 10:14am

    Robin Sowell

    13255 posts

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

  • #3 / Mar 18, 2008 11:23am

    philfreo

    50 posts

    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)

  • #4 / Mar 18, 2008 11:46am

    Robin Sowell

    13255 posts

    😉 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.

  • #5 / Mar 18, 2008 11:51am

    philfreo

    50 posts

    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.

  • #6 / Aug 23, 2008 1:50pm

    wjonthomas

    22 posts

    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.

  • #7 / Aug 24, 2008 9:55am

    Robin Sowell

    13255 posts

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

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases