1
Kainaij
Need help - My site possibly hacked...
  • 2006/6/16 3:23

  • Kainaij

  • Quite a regular

  • Posts: 256

  • Since: 2004/10/5


First, visit http://blackfootcountry.com

Notice the error. Can someone please assist me in telling me what is the matter with my site? I am using ver 2.0.9.2 still.

Thanks.

P.S.
Can this possibly be at the fault of my hosting company?

2
ghettonet
Re: Need help - My site possibly hacked...
  • 2006/6/16 3:37

  • ghettonet

  • Not too shy to talk

  • Posts: 176

  • Since: 2005/12/4


Hm, a 500 error. There isn't enough to go on to say what's wrong though. Here are a few things you'll need to post:

Has the site ever worked? Like did it work for a long time then stop? If so, did you make *any* configuration changes before it stopped? What version of XOOPS is it? If you could, you might also want to see if your host can find anything in their logs. I doubt it's been hacked, most of the time it turns out to be just an error, and with a 500 most of the time it's a problem in the Apache config that your host will have to fix.

3
zyspec
Re: Need help - My site possibly hacked...
  • 2006/6/16 3:55

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


I had a similar problem - earlier today as a matter of fact. I've checked around and apparently several hosting companies have decided to not allow php.ini override values in .htaccess files any more.

I had changed upload_max_filesize to allow larger uploads and my hosting company turned off the ability to override the default value. This causes php_value statements in .htaccess files to be invalid and so it throws a 500 error.

To verify this is the problem go to your cpanel (or 'other' control panel) and check your error log. You'll see a message that says something to the effect that php_value is not allowed.

If this is the problem then all you have to do to get your site back is remove the php_value settings from your .htaccess file. Unfortunately, this also means that you can't override the default php.ini settings chosen by your hosting company any more.

* EDIT * - After my initial post I did find that, in my case, this was due to the hosting company as CGI (PHPsuexec) instead of as an Apache module. It is possible in this scenario to change "most" of the php settings by removing the php_value settings in the .htaccess file as described above and then including a php.ini in your root directory with the appropriate php setting in the php.ini (upload_max_filesize = 5M in my case).

Another potential issue when switching to PHPsuexec is that you can no longer have directories set to 777. The max. allowed is 755. If you have directories set to 777 they will also cause a 500 error. You can find a more detailed explaination from one of the hosting companieshere.

4
Kainaij
Re: Need help - My site possibly hacked...
  • 2006/6/16 15:48

  • Kainaij

  • Quite a regular

  • Posts: 256

  • Since: 2004/10/5


Thanks for the great leads. I'll get on that as soon as I get back this afternoon.


5
kaotik
Re: Need help - My site possibly hacked...
  • 2006/6/16 15:53

  • kaotik

  • Just can't stay away

  • Posts: 861

  • Since: 2004/2/19


rename your .htaccess file to:
temp.txt

See if that works

6
Kainaij
Re: Need help - My site possibly hacked...
  • 2006/6/17 7:24

  • Kainaij

  • Quite a regular

  • Posts: 256

  • Since: 2004/10/5


It worked!

That last recommendation worked. I renamed and presto it worked.

One last question. What am I losing out on NOT having a .htaccess file and/or what should I do next?

Thanks Kaotic and the rest of you for your help.


Login

Who's Online

297 user(s) are online (251 user(s) are browsing Support Forums)


Members: 0


Guests: 297


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits