Support

Admin Tools

#25097 Can't password protect other directories

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 on Wednesday, 08 June 2016 17:20 CDT

ericjay
 Hello,

I cannot password protect other directories (not the administrator) within my public_html directory using cPanel since generating a new .htaccess file with Admin Tools.

This is the error I get:
Failed to open .htaccess for writing.

Do I need to adjust permissions for the new .htaccess file? If so what should they be? Currently the permissions for this file are: 644

Thank you for your help.

tampe125
Akeeba Staff
Hello Eric,

please try to change the permissions for your .htaccess file to 664, in this way cPanel should be able to write in it.
However, I suspect that cPanel will overwrite current .htaccess file, so, after applying the password to your folder, please double check the contents of the file.
If cPanel replaced the contents created with the Htaccess Maker, don't worry. Simply copy them and paste inside the field Custom rules on top of the file inside the Htaccess, then recreate the file. That should do the trick.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

ericjay
Thanks for your quick reply. Unfortunately changing the permissions on .htaccess did not allow me to write to it. I still receive the same error.

tampe125
Akeeba Staff
What if you remove the current one, try to create it using cPanel and then copy such rules inside Htaccess Maker?

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!