EE hosted on BlueHost - only getting index.php as of this afternoon
Posted: 08 January 2008 06:43 PM   [ Ignore ]  
Summer Student
Avatar
Total Posts:  10
Joined  09-05-2006

Hello - Are there any other folks hosting EE at BlueHost - bluehost.com?

I ask because as of mid afternoon Central time in the US, my sites were only showing index.php!  After some investigation it appeared that the php.ini files were overwritten with changes, and the /system/config.sys file was modified as well.  This does not appear to be a hack, more like a global search & replace.

I have 2 sites/blogs on my BlueHost account and both have this problem.  I have contacted BlueHost support but have not received a response.  I replaced all of the overwritten files and that did not change anything.  I captured the changes and am now reviewing all of them.

Any help is appreciated!

thnx… mp/m

 Signature 

Mike Maddaloni

Dunkirk Systems, LLC - Delivering Internet Solutions
The Hot Iron - Blog on Business, Technology and Occasional Diversions

Profile
 
 
Posted: 08 January 2008 06:56 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12251
Joined  04-29-2002

Mike,

Thanks for reporting this. We take security very seriously and will do our best to work with you on figuring out what’s going on. To that, we need some additional information from you ...

1. EE version and build (found at the bottom of your control panel)

2. Other scripts on your account, whether in use or not (phpBB, etc…)*

* If this is a shared hosting environment, the host can make a determination if the attack came through scripts on another account on the server, which is commonly the case with these types of hacks.

While we work through this, please check through these files:

* path.php
* config.php
* index.php

to ensure that there is no unusual code such as iFrames or Javascript includes; if you do find that code, then please back-up the file and remove said code.  If you are unsure of what does or doesn’t belong in these files, do not hesitate to ask.

You may also wish to refresh your files by following the build update instructions.

Also please ensure that you report this to your host immediately as they can help identify where the attack originated from so that steps can be taken to prevent this in the future.

The php.ini isn’t a part of the EE install - that would be something provided to you.

Are you able to get into your CP back end?

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 09 January 2008 09:01 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Avatar
Total Posts:  10
Joined  09-05-2006

Hi Sue:

Thanks for your follow-up.  I have been in contact with the host and they believe there was a PHP upgrade, however I have yet to hear back from them with regards to this issue.

The blog - www.thehotiron.com is working, though all links point to the home page, which is related to this known issue:

http://expressionengine.com/knowledge_base/article/main_page_content_appears_on_every_page_i_get_404s_except_on_the_main_page_/

I had this problem when I setup the blog a year ago, and followed these steps and it was working well up until yesterday whenever they updated PHP.

In my haste to troubleshoot the issue, I upgraded the site to 1.6.1, though I have another site on the same hosting account - www.sourcegate.com - that is running 1.6 and has the same issue.  I am able to log into the CP and even posted a “broken” post.  I can turn on “Force URL Query String” but I would prefer not to as the blog has been running for over a year without a questionmark in the URL.

Do you have any troubleshooting recommendations?

thnx… mp/m

 Signature 

Mike Maddaloni

Dunkirk Systems, LLC - Delivering Internet Solutions
The Hot Iron - Blog on Business, Technology and Occasional Diversions

Profile
 
 
Posted: 10 January 2008 04:02 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12251
Joined  04-29-2002

In my haste to troubleshoot the issue, I upgraded the site to 1.6.1, though I have another site on the same hosting account - www.sourcegate.com - that is running 1.6 and has the same issue.  I am able to log into the CP and even posted a “broken” post.  I can turn on “Force URL Query String” but I would prefer not to as the blog has been running for over a year without a questionmark in the URL.

If your host upgraded PHP across the board, and you need to turn on Force URL Query Strings, then you’ll need to turn them on. Sometimes there is a way of turning them off, but sometimes the only thing you can do is change hosts if it is a deal breaker.

The other option is to remove index.php? from your URLs using .htaccess (which we can’t give you any official support for) but works for many others.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
Posted: 10 January 2008 07:41 AM   [ Ignore ]   [ # 4 ]  
Summer Student
Avatar
Total Posts:  10
Joined  09-05-2006

Is it possible to just remove the “?” and not the entirety of “index.php?” for this would allow my URLs out there to continue to work?

I see a lot of wiki and forum posts that mention this - can you refer me to one?

thnx… mp/m

 Signature 

Mike Maddaloni

Dunkirk Systems, LLC - Delivering Internet Solutions
The Hot Iron - Blog on Business, Technology and Occasional Diversions

Profile
 
 
Posted: 10 January 2008 08:35 AM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23474
Joined  05-20-2002

Hm- all the ones I’ve seen to remove the ? via htaccess have also been removing the index.php bit.  So I don’t have an example of just removing the ?.  Let me poke a bit- but my first approach would be to contact the host.  Explain the change has broken your site- could reference the info here and ask them to add support for path_info.  I’d rather have the server supporting it than have to hide it via htaccess.  If they aren’t willing to poke it, I can move this over to ‘How to’ and we can take a closer look at some of the htaccess options.  (Not my strong point, but there’s bound to be a way as long as the htaccess approach will work at all.)

Sound good?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 11 January 2008 11:47 AM   [ Ignore ]   [ # 6 ]  
Summer Student
Total Posts:  3
Joined  05-11-2007

I was having the same issue, and I fixed it by changing two things inside my index.php page.

FIRST: 

$qtype variable was set to 0 (auto). I changed it to 1 (path_info).

$qtype = 1;

SECOND:

Then I looked at around line 78 in the code and made sure that it was:

$path_info = (isset($_SERVER['PATH_INFO'])) ? $_SERVER['PATH_INFO'] : @getenv('PATH_INFO');

and not…

$path_info = (isset($_SERVER['ORIG_PATH_INFO'])) ? $_SERVER['ORIG_PATH_INFO'] : @getenv('ORIG_PATH_INFO');

That fixed it

Profile
 
 
Posted: 11 January 2008 09:59 PM   [ Ignore ]   [ # 7 ]  
Summer Student
Avatar
Total Posts:  10
Joined  09-05-2006

And it worked for me too!  Thanks!

mp/m

 Signature 

Mike Maddaloni

Dunkirk Systems, LLC - Delivering Internet Solutions
The Hot Iron - Blog on Business, Technology and Occasional Diversions

Profile
 
 
Posted: 13 January 2008 02:52 PM   [ Ignore ]   [ # 8 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  210
Joined  02-18-2007

Sue, this is just a question but where do paid licence users ask questions that aren’t officially supported, like the removing index.php from URLs? Just asking for future reference and for those who find this by means of the search feature. Oh, and you might wanna consider editing the getting help post once you have an answer, because frankly it would confuse me. wink

 Signature 

KMRL Mojo Radio Live!
My Blog
Running 1.6.1 Build 20071114

“I know more than you do, for you think you know something, and I know I know nothing.” - Socrates


Must-Have Addons:

Accessible Captcha
Akismet for EE

Profile
 
 
Posted: 13 January 2008 03:21 PM   [ Ignore ]   [ # 9 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32760
Joined  05-14-2004

For help with customizations, you post in the How To forum.  Removing index.php is a customization, so questions about that should go to How To. =)

 Signature 
Profile
MSG
 
 
Posted: 13 January 2008 03:23 PM   [ Ignore ]   [ # 10 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  210
Joined  02-18-2007

Thank you, Lisa! *kisses*

 Signature 

KMRL Mojo Radio Live!
My Blog
Running 1.6.1 Build 20071114

“I know more than you do, for you think you know something, and I know I know nothing.” - Socrates


Must-Have Addons:

Accessible Captcha
Akismet for EE

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 09:33 AM
Total Registered Members: 64468 Total Logged-in Users: 35
Total Topics: 80993 Total Anonymous Users: 25
Total Replies: 435809 Total Guests: 244
Total Posts: 516802    
Members ( View Memberlist )
Newest Members:  VamediaGabesCiDudecargolseckadanisNogDogLNBCNeli_laosaijinTapan Kumer Das