I would like to know if I can launche the following tools throught CLI/script command?
See attached file.
thanks
L.
Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Latest post by toonetcreation on Thursday, 12 March 2020 08:55 CDT
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!
php imaginary-script.php wafopt set nofesalogin 1
php imaginary-script.php htmaker add fepexdirs subfolder
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!
While I understand the use case I am not convinced that having a CLI script would be practical for you to use or for us to document and support.
What I typed above is not deliberately obfuscated. It's what you would be actually getting with a script like you asked. These are the internal parameter names of the "Forbid frontend Super Administrator login" and "Frontend directories where file type exceptions are allowed" options in WAF and .htaccess Maker respectively. They are indecipherable to you and extremely complicated for us to document. More so when we have options which internally are represented as arrays, strings, integers (with certain limits) or booleans. Even worse when you realize there are interconnected parameters. The potential for breaking your site with a script like that is more than real, it's a near certainty.
If you are making changes to the WAF configuration on your dev site they are transferred and applied to the live site by restoring the #__admintools_storage table. If, quite to the contrary, you DO NOT want any changes you made to the WAF configuration to survive the site transfer then quite simply don't include the #__admintools_strage table when transferring the site.
Regarding the .htaccess, you could have the configuration ready when transferring the site and just click on the Save and Create .htaccess button. That's something that can be automated with Selenium or a similar tool.
But that's complicated. A simpler thing to do is set up the .htaccess Maker before the site transfer and generate the .htaccess. Your dev site will break BUT you have the .htaccess that you need on the live site. This can be transferred with the site itself
if you are using Akeeba Backup, rename it to htaccess.bak, do not include a .htaccess in the backup archive and you can rest assured that this file will be renamed to .htaccess at the end of the (manual or automatic) restoration.
Regarding the .htaccess, you could have the configuration ready when transferring the site and just click on the Save and Create .htaccess button. That's something that can be automated with Selenium or a similar tool.
File permissions: you SHOULD NOT use Admin Tools after the site transfer to enforce permissions! By definition, your site transfer process transfers files. This is where the correct ownership and permissions need to be applied. If you are getting the wrong permissions to begin with you are doing the site transfer wrong or, at least, in a very suboptimal manner.
Same with the temporary directory and logs directory. If you expect to use Admin Tools after the transfer to fix glaring configuration.php issues you are doing the site transfer wrong.
FWIW Akeeba Backup handles that automatically and it can be automated in the Pro version using Akeeba UNiTE.
With a minimum of planning you can transfer your sites automatically without having to click anything. Take that from the guy who is restoring a backup of the akeebabackup.com live site on a dev server every day, unattended, without either the live or dev site requiring manual reconfiguration :)
But this means thanks to Akeeba Backup, I will be able to schedule an automatic rename of .htaccess.bak file from DEV website to .htaccess file on PROD website?
Of so what is the goal of admin tools permission tool?
What can do Akeeba UNiTE exactly?
When you say : it can be automated ?
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!
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!
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!