Support

Admin Tools

#39913 Missing .htaccess file

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
4.4.1
PHP version
8.1.25
Admin Tools version
7.4.4

Latest post by enclavecoa on Friday, 08 December 2023 13:28 CST

enclavecoa

I'm in the process of upgrading my server at GoDaddy. At present, I have not moved my domain name to the new server but expect to do that within the next day or so. I'm testing all of my components / extensions to verify that they are working.

In texting Akeeba Admin Tools Pro 7.4.4, I'm testing to verify the .htaccess Maker function. Although the .htaccess maker says that it completes successfully and displays properly with the Preview button, the actual .htaccess file isn't writing to the public_html folder as it should.

Is there something that I should change or do to allow the file to be written?  At present, I access my new server using the c:/windows/system32/drivers/etc/host file where I'm inserting

208.109.39.221 enclave-coa.org www.enclave-coa.org

 

P.S. I paid one of GoDaddy's team to copy my files from the old server to the new VPS server and I did notice that the .htaccess files from the old server were not copied to the new server. The new VPS server is running AlmaLinux v9.3.0.

Here is a link to a screencast of the steps I took: https://www.awesomescreenshot.com/video/22908787?key=4aeff2086ffc97b3968ea51a36cd0343

nicholas
Akeeba Staff
Manager

All files and folders whose name starts with a dot (called dot-files) are hidden on Linux and other UNIX™ systems (e.g. macOS, *BSD, etc). Since .htaccess's file name begins with a dot, it's a dot-file, therefore hidden by default.

When you launch cPanel's File Manager it asks you whether you want to display hidden files (it's a checkbox). By default, it's unselected, which means that it hides dot-files. The files or folders whose names start with a dot are there, just not displayed. I can tell that you have not told it to show hidden files by looking at timestamp 00:05 in your video where you list your account's root folder. There should be a number of hidden files and folders listed there including the .cpanel folder. The fact we do not see it means that you have not told cPanel's File Manager to show hidden files, which explains why you don't see the (hidden) .htaccess file when you drill down the folders later.

The same applies for FTP / SFTP clients. Dot-files are hidden unless you explicitly enable the client's option to display hidden files. Therefore, even if you tried to connect with such a client (e.g. FileZilla, CyberDuck, WinSCP, …) to your server you'd still not see the file which is there, but hidden.

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!

enclavecoa

Thanks Nicholas. I didn't know about the default setting on cPanel about dot-files. Once I changed that setting, everything began to show up as desired.

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!