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.
500 Error adding php_flag register_globals off to .htacess
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.
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.
-
- Joomla! Apprentice
- Posts: 43
- Joined: Fri Oct 14, 2005 10:56 pm
- pe7er
- 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
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.
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
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
- Hackwar
- 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
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.
Since the creation of the Internet, the Earth's rotation has been fueled, primarily, by the collective spinning of English teachers in their graves.
-
- Joomla! Apprentice
- Posts: 43
- Joined: Fri Oct 14, 2005 10:56 pm
Re: 500 Error adding php_flag register_globals off to .htacess
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.
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.
-
- Joomla! Apprentice
- Posts: 43
- Joined: Fri Oct 14, 2005 10:56 pm
Re: 500 Error adding php_flag register_globals off to .htacess
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.
- pe7er
- 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
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?
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
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
- keliix06
- 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
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
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