Support

Admin Tools

#38378 is it safe to delete .htaccess.admintools

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 Tuesday, 24 January 2023 23:46 CST

habusam

hello, how are you Nick, it has been a while, since we installed Admin tools, then we had to remove it for reasons of development, and still, we are facing some issues, even though we did the correct uninstall based on admin tools documentations, is it safe to delete 

.htaccess.admintools

and if it's not how we can fix the Sucuri requirements please read below the last third between us, thanks

Matt T.2 days ago
Hello

Checking on this, currently, we are still receiving a 403 when attempting to access the Server side scanner file, so it's either in the wrong location or there is some server-side level configuration preventing access to that file.

curl https://smderangospizza.com/sucuri-f96294e5922c8005cdafce872127afd0.php
============================================================================
HTTP/1.1 403 Forbidden
Server: Sucuri/Cloudproxy
Date: Thu, 19 Jan 2023 05:09:38 GMT
Content-Type: text/html; charset=iso-8859-1

For us to troubleshoot this further, we will need you to provide us your cPanel login credentials, or alternatively, I see you are hosted with InMotion hosting, you can provide us your Inmotion Hosting account login details, either of those should suffice.

Those can be provided securely If this does not resolve your issue, please provide:

1) A screenshot of the full error page you are seeing including the URL. You can share a screenshot using a tool such as https://snipboard.io
2) Your public IP address. This can be retrieved using https://www.whatismyip.com/ or similar tool.
3) Step-by-step instructions to reproduce the issue, including access to a suitable test account if required. 
Test credentials can be provided via our secure credential form in this ticket 

https://support.sucuri.net/support/ticket/1673873066387

and the "I need to provide new connection details" checkbox. 

We look forward to hearing back from you.
Best regards
Matt T.

 

nicholas
Akeeba Staff
Manager

Yes, you can remove that file. It's an inert backup file.

Do remember that uninstalling Admin Tools does not modify your .htaccess file. You may want to replace its contents with the contents of the htaccess.txt file provided with Joomla.

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!

habusam

Hello Nick and thank you, when you said ## You may want to replace its contents with the contents of the htaccess.txt ##
do you mean I should copy whatever inside the htaccess.txt and paste it on top of .htaccess ? Thanks

nicholas
Akeeba Staff
Manager

> do you mean I should copy whatever inside the htaccess.txt and paste it on top of .htaccess ? Thanks

Copy whatever is inside of htaccess.txt.

Remove the contents of the .htaccess file (make it a blank file).

Paste the contents of the htaccess.txt file on top of the now empty .htaccess file.

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!

habusam

Alright will do that tomorrow, thank you

habusam

Hello, 

After what id id the akeeba backup give me this error which is not true *** 

An error has occurred.
0 Akeeba Backup requires at least PHP version 7.4.0. Your server currently uses PHP version 7.3.33. Please upgrade your PHP version.

 Return to Dashboard***

Please help, thanks 

 

nicholas
Akeeba Staff
Manager

The current PHP version shown in this message is what PHP itself reports, through the PHP_VERSION constant. The value of this constant is set when your host, or the provider of the Linux distribution they use, compiled PHP from its C sources. Therefore, this message cannot be wrong. Ever.

You can verify that it's correct by going to Joomla's PHP Information page and see for yourself that the PHP version is indeed 7.3.

Remember you asked me how to reset your .htaccess, I told you how to do it, and you did it. However, do you remember how your host tells the web server which PHP version to use to load your site? Yup, by adding a server-specific AddHandler line to your .htaccess file. Since you replaced the .htaccess file's contents this line was removed. Therefore the web server reverts to the default PHP version set up by your host which appears to be PHP 7.3.33. Therefore, you need to go back to your hosting control panel and select once again the PHP version you want to apply to your site. If unsure what this means, ask your host.

To understand better how this works, edit your .htaccess file again after you do that. You will very likely see something like this (the following example is from the server hosting my personal blog):

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

The first two and the last line is a comment. The <IfModule> lines are just a guard expression which prevents the web server from spitting out an error if it's misconfigured in a way that it cannot apply a custom PHP version. All of these lines are not actually necessary.

The line that does the trick on this particular server is the AddHandler line which tells it to handle .php files with the application/x-httpd-ea-php81 handler. On this particular server the aforementioned handler is set up system-wide to use PHP 8.1.14. Don't try to copy that line on your server; there's a very good chance that your server is set up differently.

 

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!

habusam

Hello Nick, yes the htaccess all good as you said, and then happened but I fixed the issue I went to the panel and from there I resaved the php8.0, and that fixed it even though it already was PHP 80, we are all good for now thanks

 

nicholas
Akeeba Staff
Manager

You're welcome!

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

Easter vacation: We will be closed from 17 April 2025 16:00 UTC to 21 April 2025 06:00 UTC due to observing the Christian Easter holiday. Support will be closed during that time for both new tickets, and replies to existing tickets.

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!