Support

Admin Tools

#34458 apache 2.2 vs 2.4 and errors

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 vthomas on Tuesday, 02 February 2021 05:23 CST

vthomas

web server Apache/2.4.46    Admin Tools is guessing that my site is Apache 2.2

I recently (Jan 21, 2021) asked my server admin to update Apache from 2.2 to 2.4.  I didn't think much about it, no doubt total ignorance on my part.

I am working on a new site, that connects to Stripe using Joomlashack's Simple Renew.  I got a message from Stripe:

"We’re contacting you because we’ve had some trouble sending requests to a webhook endpoint associated with your  account in test mode. Webhooks are used to notify your server about events that happen in your Stripe account, such as a payout completing or an invoice being created. The failing webhook endpoint is https://xxx.com/simplerenew/notify/stripe...

Here is the summary of errors we have received when sending you webhooks:
* 107 requests returned HTTP 500, which is an indicator of a server error on your end."

I am trying to track down the cause of the 500 errors, which seem to be intermittent.  Many times the webhook endpoint has been successful in addition to the errors.  

First issue, I wondered if I need to add something to the .htaccess file and have already sent a ticket to joomlashack with that question.

Second, my question for you ... In looking at my htaccess file, I see it says at top: Auto-detected Apache version: 2.2 (best guess). Could the htaccess file create for 2.2 cause problems in my 2.4 environment?  What needs to happen so that Admin Tools can detect my correct Apache version?

 I see this error at server level often, but this one was occurring before the Apache upgrade, so probably not related:

[Mon Feb 01 14:06:35.426698 2021] [authz_core:error] [pid 1506249:tid 47303347140352] [client 1xx.233.230.xxx:45054] AH01630: client denied by server configuration: /homexxx/public_html/administrator/components/com_akeeba/backup/akaccesscheck_3faa35353b7d9a0c6e4b0a1f4391b140.txt

I am doing my best to find cause of 500 error, just happened to notice that admin tools wrote htaccess for Apache 2.2.

Thank you, Vicky

 Vicky Thomas

nicholas
Akeeba Staff
Manager

When Admin Tools cannot reliably detect your Apache version (Apache is configured not to set it in the environment) it assumes that it's Apache 2.2. In this case it is very conservative, in the sense that it is not using newer features only found in Apache 2.4. So, no, it cannot cause an intermittent 500 error.

You do not have to believe me. Just replace the .htaccess content with the content of the htaccess.txt file shipped with Joomla itself. This is the bare minimum .htaccess you need for a site with SEF URLs to work.

Regarding HTTP 500 errors, they can be something on your server or something with PHP itself. Check the Apache and PHP error logs around the times the requests from Stripe receive the error 500. If there's an error recorded in the Apache error log but not in PHP's then the problem is with the web server. In this case you need to ask your host's help. If there is an error in the PHP error log you can see what it was and figure out what is causing it.

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!

vthomas

Nicholas, you gave me the first laugh of my morning, "You do not have to believe me".  If you only knew ... I believe you above anyone when it comes to your area of expertise!  Thank you for that giggle.

I will contact my host to find out how to configure Apache to 'set in the environment'.  I want to take advantage of whatever you have in the htaccess file for Apache 2.4.

Thanks for the tip re: error logs.  That makes sense and will help me today as I troubleshoot.

Sincerely, Vicky

 Vicky Thomas

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!