Support

Admin Tools

#9946 500 error using htaccess generator

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Thursday, 14 July 2011 03:07 CDT

TurnTex
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the forum before posting? Yes
Have I read the documentation before posting (which pages?)? All
Joomla! version: 1.5.23
PHP version: 5.2.17
MySQL version: 5.1.56-community-log
Host: Bluehost.com dedicated IP
Admin Tools version: 2.1.2


Description of my issue:

Just recently subscribed and installed Admin Tools Pro. Great component, btw! I used the .htaccess maker utility and get a 500 error when I click save and create. If I then click back 3 times, I am taken back to the admin tools control panel and it says that the file is saved and and can confirm the date and timestamp with ftp. The exact error message I am getting is:

Internal Server Error



The server encountered an internal error or misconfiguration and was unable to complete your request.



Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.



More information about this error may be available in the server error log.



Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Apache Server at www.xxx.com Port 80



I then checked my server logs and found the following:
[Wed Jul 13 00:56:40 2011] [warn] RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored. [Wed Jul 13 00:56:43 2011] [error] [client xx.xxx.xx.xxx] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Wed Jul 13 00:56:43 2011] [error] [client 66.249.67.109] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.


Do you have any suggestions or should I just not worry about it?

nicholas
Akeeba Staff
Manager
Hi!

As noted in our documentation page, in the very big warning box:

""
Depending on your web server settings, some of these options may be incompatible with your site. In this case you will get a blank page or an Internal Server Error 500 error page when trying to access any part of your site. If this happens, you have to remove the .htaccess file from your site's root directory using an FTP application or the File Manager feature of your hosting control panel. Since Admin Tools 1.2, your old .htaccess file is saved as .htaccess.admintools. You can rename that file back to .htaccess to revert to the last known good state. If you are unsure how this works, please consult your host before trying to create a new .htaccess file using this tool.

Some prepackaged server environments, like WAMPserver, do not enable Apache's mod_rewrite module by default, which will always result in an Internal Server Error upon applying the .htaccess file. In this case you are strongly suggested to enable it. On WAMPserver you can click on its tray icon, go to Apache, Modules and make sure rewrite_module is checked. On other server environments you have to edit your httpd.conf file and make sure that the LoadModule mod_rewrite line is not commented out (there is no hash sign in front of it). Once you do either of these changes, you must restart your server for the change to become effective.

We strongly suggest that you begin by setting all options to No and then enable them one by one, creating a new .htaccess file after you have enabled each one of them. If you bump into a blank or error page you will know that the last option you tried is incompatible with your host. In that case, remove the .htaccess file, set the option to No and continue with the next one. Unfortunately, there is no other way than trial and error to deduct which options may be incompatible with your server.
""

Have you tried following the advice of the last paragraph?

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

TurnTex
Nicholas,
Did you even read my message before replying? Just curious what I did to deserve such a condescending reply!?

Yes, I did indeed read THE BIG WARNING BOX as well as every page of your documentation unlike most I would guess. I am not having any problems at all on my website. Pages load just fine and everything works on my front end and my back end. All components are working fine. The only time I get the message, as described above in the first paragraph is when I save the file but everything is saving just fine. Maybe I should have been more clear that I am NOT having any problems on my website. Sorry about that. I guess I will just ignore the error message anytime I make any changes and will now just go back under my rock! :)

TurnTex
BTW, my website is Turntex.com if you should happen to want to take a look. And yes, my site is working fine in IE8, Firefox, Chrome, and Safari.

nicholas
Akeeba Staff
Manager
Of course I read your support request, including the error message. See, when you click on Save in the .htaccess Maker configuration page it tries to save the configuration and generate a new .htaccess. I thought that maybe one of those options caused the error. I want to have our bases covered, by ruling out the most common problem. Is this so bad? Besides, the error log message you presented reads:

RewriteCond: NoCase option for non-regex pattern '-f' is not supported and will be ignored

This lead me to believe that the problem is one of the dozens of RewriteRules written in your .htaccess by the .htaccess Maker. Moreover, I saw this:

Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

Knowing that Joomla! uses redirections after save operations, I tried to think what could cause redirections go wild. Again, the most likely explanation is one of .htaccess Maker's options, most likely the non-www to www redirection or vice versa. That's why I wanted you to try disabling all options and start enabling them one by one.

Before you assume that I am an idiot or an arrogant bastard who gives condescending replies, please do consider that I am trying to solve an issue that I can not replicate, on your site where I don't have access, based solely on the information you give me. When I have you try different things I do that because it is exactly what I have done should this issue occur on my site. Now that we can get past the irony, would you please try disabling all options and enabling them one by one to see if the problem occurs because of a .htaccess Maker or not? Thanks.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

TurnTex
Nicholas,

It was late last night and I was grumpy. I am sorry that I read more into your message than you intended. I CERTAINLY DO NOT think you are an idiot or arrogant bastard! I have read almost every message in this forum and have seen your professional replies to all of them. You do a WONDERFUL job, hence part of the reason I choose to use and pay for your components. I have also been using Akeeba Backup for a few years as well. Have not paid for it because I have never needed support and don't need any of the pro features.

I guess what struck me a little wrong was I had not see that type of reply to other requests and pointing out the "very big warning box" after I had filled out the required information indicating that I had read all of the documentation. I figured that since the file saved fine and the website works fine, that the information in that big box did not apply.

I will certainly try to make the time to disable everything one by one to see if there is a problem. I guess the fundamental question is, if it save fine and my website is working fine, how critical is it that I get this resolved right away?

If you see a need for access to my site, please let me know and I will be more than willing to provide you with credentials.

Thank you for a great component and great support and I am sorry I read more into your reply and started this off bad!

nicholas
Akeeba Staff
Manager
Hi!

OK, no problem. I also get cranky sometimes. Let's face it, written communication is hardly ever the best way to express oneself. As humans, we rely on non-verbal communication to express feelings, an opportunity not given through our writings on this forum.

Well, I've seen many people who did read the documentation, but thought that a specific part of it doesn't apply to them. Unfortunately, because of that understandable behaviour (I plea guilty as charged of the same offence!), I almost always have to start with some "is it plugged in" kind of questions so as not to waste too much of your time trying to solve an issue.

Is this issue critical? I would say, most likely yes. If disabling all .htaccess Maker's options and clicking on save results in 500 Internal Server Error it may be possible that nothing does get saved, ever. This would present a big problem should we need to add exceptions to it to cater for an extension installed in the near future on your site. So, I'd like to get it nailed down as soon as possible.

If after disabling all .htaccess Maker options and trying to save you still get the same issue, please send me a Personal Message with the following information:
- URL of your site's administrator section
- Super Administrator username/password
- FTP connection information (so that I can fix your site if I accidentally screw up the .htaccess file)
- A link back to this thread so that I can see our conversation and know exactly what issue I am trying to resolve

Thank you in advance for your feedback!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

TurnTex
Nicholas,

The funny thing is, the new .htaccess file IS saving just fine. I have even verified it with opening the file via FTP and it has all the necessary changes in it. I also had to add some exceptions so that my images would show up in virtuemart and so that I could run JoomlaWatch without any problems. I followed your instructions on finding the necessary components in Firefox that needed access and all works great. Your .htaccess file is certainly in use on my website with all the tweaks I made including exceptions and adding JPG. It just gives the error when I click to save the file but it saves it anyway.

I have a few minutes so I will try to wade through disabling all the options and then add them back one by one. Thanks for your help!

TurnTex
OK, it was not as painful as I had imagined it would be! I thought I would have to re-do all of my exceptions and tweaks. I found the culprit. I turned everything to no and saved without any problems. I then turned on Disable directory listings (recommended) and got the 500 error. I then turned it off and turned the next one on with no problems. I repeated this until all of the rest of the settings were as before with the exception of the Disable directory listings (recommended) (still off) and have no issues so that pinpoints it to the disable directory listings setting. Is this a concerns to not have that on and if so, is there a work around that I have just not paid attention to? I will go looking through the documentation right now, you may have already addressed this!

TurnTex
OK Nicholas, I looked through the documentation and did not run across anything about issues with Disable directory listings so any help you could provide would be appreciated!

BTW, THANK YOU, THANK YOU, THANK YOU, for being such a great developer and providing such prompt support. I have a number of components on my site, many of which I paid for, where I can never get any kind of support. It is refreshing to see a responsible developer and I am not just kissing your ass!!!!

nicholas
Akeeba Staff
Manager
You're welcome! I am glad we got that nailed down and beaten to submission :)

Regarding the option you disabled, it's not really required if you enable the Server Protection features of .htaccess Maker. The reason is that this option simply doesn't allow a potential attacker to list the contents of any random directory, but allows execution of arbitrary PHP files. The Server Protection goes one step further, not only disallowing the listing I'd filer contents but also disallowing access to any file except those that must be accessed (hence the need for exceptions). So, despite disabling the directory listings option, your site is still protected very well :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

TurnTex
Thanks Nicholas. I actually just sent an e-mail to a number of other Joomla! site administrators that I know, recommending Admin Tools. Keep up the great work, sir!

nicholas
Akeeba Staff
Manager
Thank you very much! I am glad I could be of service :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!