500 Error adding php_flag register_globals off to .htacess

Discussion regarding Joomla! security issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Security Checklist
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
spinnaker
Joomla! Apprentice
Joomla! Apprentice
Posts: 43
Joined: Fri Oct 14, 2005 10:56 pm

500 Error adding php_flag register_globals off to .htacess

Post by spinnaker » Sat Oct 28, 2006 2:37 pm

I did a search and saw a thread that I should add php_flag register_globals off to my .htaccess file.    I did this but now get a 500 error when accessing the main page and the administration panel my website.  What is wrong?

P.S.  My .htaccess file was originally 0 bytes.

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24968
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: 500 Error adding php_flag register_globals off to .htacess

Post by pe7er » Sat Oct 28, 2006 2:43 pm

Could you use the original htaccess.txt, rename it to .htaccess
Test if your site works without a 500 error
Then add the php_flag register_globals off and test again.
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

User avatar
Hackwar
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 3788
Joined: Fri Sep 16, 2005 8:41 pm
Location: NRW - Germany
Contact:

Re: 500 Error adding php_flag register_globals off to .htacess

Post by Hackwar » Sat Oct 28, 2006 3:26 pm

god doesn't play dice with the universe. not after that drunken night with the devil where he lost classical mechanics in a game of craps.

Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.

spinnaker
Joomla! Apprentice
Joomla! Apprentice
Posts: 43
Joined: Fri Oct 14, 2005 10:56 pm

Re: 500 Error adding php_flag register_globals off to .htacess

Post by spinnaker » Sat Oct 28, 2006 8:54 pm

Thanks guys.  If I use the htaccess.txt that came with the 1.0.11 update, delete my .htaccess, then rename htaccess.txt to .htaccess, I get the following error when accessing the site.

Forbidden
You don't have permission to access /index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 


I did not edit the htaccess.txt file at all.  I just renamed it.

The permissions on index.php are 664.

spinnaker
Joomla! Apprentice
Joomla! Apprentice
Posts: 43
Joined: Fri Oct 14, 2005 10:56 pm

Re: 500 Error adding php_flag register_globals off to .htacess

Post by spinnaker » Wed Nov 01, 2006 1:03 am

Any answers on this?  I just got hacked again.  Could it because I do not have the .htaccess set up  correctly?  How did anyone find my site in the first place,  It is just a tiny prototype site that gets not use whatsoever.

User avatar
pe7er
Joomla! Master
Joomla! Master
Posts: 24968
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, Netherlands
Contact:

Re: 500 Error adding php_flag register_globals off to .htacess

Post by pe7er » Wed Nov 01, 2006 7:15 am

Have you read: http://forum.joomla.org/index.php/topic,54006.0.html ?
Could you give more info:
    * What version of PHP/MySQL/Apache do you have?
    * What kind of hosting do you have?
    * Do you have access to the access logs of the server?
    * Which third party extensions do you have installed? (Components, modules, plugins/mambots)
    * Which informations do you have from your provider? Did they send you something in addition?
    * Do you have a backup?
    * Have you checked the folder permissions?
    * Have you really been hacked?
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com

User avatar
keliix06
Joomla! Ace
Joomla! Ace
Posts: 1022
Joined: Wed Aug 17, 2005 11:46 pm
Location: Minneapolis, MN
Contact:

Re: 500 Error adding php_flag register_globals off to .htacess

Post by keliix06 » Wed Nov 01, 2006 7:45 pm

I'll take a guess. Comment out the line with Options FollowSymLinks and see if it works.
Doyle Lewis
BuyHTTP Internet Services
http://www.buyhttp.com/joomla_hosting.html - No Overselling Guarantee. Your Joomla site, faster.
http://www.joomlademo.com - 30 day free trial of Joomla


Locked

Return to “Security - 1.0.x”