Support

UNiTE, Remote CLI, eXtract Wizard

#28141 – UNiTE : options about php.ini, original .htaccess and .htaccess in /administrator ?

Posted in ‘UNiTE, Remote CLI, eXtract Wizard’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Wednesday, 19 July 2017 10:39 CDT
Hi there,

I have been playing a lot with UNiTE since yesterday and it is a killer !
I wish I had discovered that before :-)
With that in hand, it becomes so easy to take the time every month to check all the backups of tens of sites...

But still I have a very practical question
When doing a manual install with KICKSTART, on the last screen it is possible to choose these options :
1. Remove .user.ini and / or php.ini files from the main site directories
2. Replace main .htaccess file with default
3. Delete the .htaccess and .htpasswd files in the administrator directory

This is great especially when reinstalling sites on a local server because it solves issues and avoids having to make those changes by hand... on 100 sites :-)

But still I see no way to enable the equivalent of these options while using UNiTE

How to do then ? (is it not in the options of UNiTE ? If not, could it be implemented for a next version ?)


Txs !

Marc
Custom Fields
Which tool do you want support for? UNiTE
Tool version (in x.y.z format) 3.0.1
 
woluweb
Thursday, 20 July 2017 01:16 CDT
My preliminary response is "probably yes".

I need more time to answer that question authoritatively. I want to see if we can pass these parameters directly to ANGIE or if we need to modify ANGIE as well. Looking into that requires a couple of hours of my time to follow through the code. Right now I'm alone at the office due to summer vacations so it's hard to find that time - especially in the morning when I have to process outstanding support requests from the previous half day I wasn't in the office.

I'll leave this ticket open and I'll get back to you, hopefully later today.


Nicholas K. Dionysopoulos

Lead Developer and Director



Greek: native

English: excellent

French: basic



Please keep in mind my timezone and cultural differences when reading my replies. Thank you!



nicholas
Thursday, 20 July 2017 05:33 CDT
Txs Nicholas.
Please take your time.
I am asking now because I was busy now with putting UNiTE in place, but there is nothing urgent.

I'll probably make a topic around UNiTE in september for my Joomla User Group (Wallonie, ie French-speaking Belgium) and write an article for the Cinnk Magazine (#1 magazine around Joomla in France, with special editions in English like the one delivered lately at #jd17uk and which will be delivered at #JWC17 in Rome).

So as long as we know whether it is possible or whether it will be made possible by end of August for example, I'am happy :)
 
woluweb
Thursday, 20 July 2017 09:17 CDT
Yes, we can add these and other Site Setup parameters in the configuration. I cannot commit to a time frame. Right now my todo list grows exponentially by a factor of 5 (5 new tasks for 1 closed). Since it's easy to implement I'll TRY to do that in the next couple of weeks.


Nicholas K. Dionysopoulos

Lead Developer and Director



Greek: native

English: excellent

French: basic



Please keep in mind my timezone and cultural differences when reading my replies. Thank you!



nicholas
Friday, 21 July 2017 05:59 CDT
So, I closed support for today so I can focus on all the dev tickets I opened yesterday. This feature request was quite simple so I implemented this. You can test it with the latest UNiTE dev release. If you have any feedback please reply back to this ticket on Monday. Thank you!


Nicholas K. Dionysopoulos

Lead Developer and Director



Greek: native

English: excellent

French: basic



Please keep in mind my timezone and cultural differences when reading my replies. Thank you!



nicholas
Monday, 24 July 2017 04:20 CDT
Hi Nicholas,

Txs for the quick development of those features !

It was not easy for me to test as I did not know how to activate the additional ANGIE options :-)
(not in Documentation nor in example in the ZIP, of course)

Then finally I found the following file xmlparser.php.

// Joomla-specific parameters
'tmppath' => null,
'logspath' => null,
'cookiedomain' => null,
'cookiepath' => null,
'force_ssl' => null,
'removephpini' => 0,
'replacehtaccess' => 0,
'replacewebconfig' => 0,
'removehtpasswd' => 0,

There I changed in that file the 0 into 1 (but just tell me how to do it properly in the XML files !)

It works, except for one thing : with replacehtaccess set to 1, half of the job is done, namely
1. indeed, the original .htaccess is *not* put back in place
2. ... but the .htaccess which is present is still the "stealth" one, not the default htaccess.txt renamed into .htaccess (side-effect : therefore in localhost the website directory would not even appear in the list since the stealth .htaccess hides it :-) And if you call the site, the SEF will not work of course since the default htaccess is not in place)

So, to summarize :
* removephpini : php.ini was indeed renamed into php.ini.bak
* replacehtaccess : as said above, stealth .htaccess still has to be replaced by the default htaccess.txt (or isn't it the way it is supposed to work with a manual installation ?)
* replacewebconfig : what is it ?
* removehtpasswd : I do confirm : in /administrator .htaccess and .htpsswd were indeed deleted

I have also tested again Amazon S3 : I still get the error "Please use AWS4-HMAC-SHA256".
But I don't know whether you had worked on that (I saw something about S3 in your changelog but was unsure of what it meant in practise)

Yours,

Marc

PS : by the way, one little detail : on all my sites being installed with UNiTE (40+), I have the following row in the xml file :
<name>My Shiny Restored Site</name>
Still, in the browser in the local server, I would see that the Name of the website was changed only for 25% of them.
I first found that mysterious.
And then after two nights of sleep, I understood why : 75% of my sites are multilingual :-D
So now it seems logical : UNiTE changes the name of the Site in configuration.php, but for multilingual sites this is generally overriden in Components > Languages > Content Languages > Name of the site
With other words, *no issue* here eventually.
But still, one question : in the Documentation, <name> is not mentionned as *optional*.
<name>My Shiny Restored Site</name>
And indeed : I have tested and if I simply delete it from the xml file then the Name of the site... becomes empty.
So the question is : is it somehow possible just to keep the Name site unchanged ?
(note that this is *not* a critical point of course : in my own case, the local copies are just for testing purposes. But even then it is convenient that the Name is correct just to distinguish a given site among the 40 tabs in the browser for example :-)
 
woluweb
Monday, 24 July 2017 05:10 CDT
There I changed in that file the 0 into 1 (but just tell me how to do it properly in the XML files !)


Under the site information tag, alongside all of the other parameters you pass to ANGIE, e.g. <replacehtaccess>1</replacehtaccess>.

but the .htaccess which is present is still the "stealth" one, not the default htaccess.txt renamed into .htaccess


You cannot use both features at the same time. ANGIE tries to run before stealth, creating a conflict over what needs to be done. Hm, interesting. I will have to actually remove support for these ANGIE options because of that. Sorry. This feature request is canceled :(

So now it seems logical : UNiTE changes the name of the Site in configuration.php, but for multilingual sites this is generally overriden in Components > Languages > Content Languages > Name of the site


UNiTE cannot cater for multilingual sites. It seems that every version of Joomla! slightly changes things in that front, making it impossible to provide a good solution. The same holds true for ANGIE as well.

Do note that you CAN use a custom SQL file as documented to modify arbitrary database data.

So the question is : is it somehow possible just to keep the Name site unchanged ?


No. UNiTE was designed to spin off clone sites based on a master template.


Nicholas K. Dionysopoulos

Lead Developer and Director



Greek: native

English: excellent

French: basic



Please keep in mind my timezone and cultural differences when reading my replies. Thank you!



nicholas
Monday, 24 July 2017 05:45 CDT
Hi Nicholas,

Txs for the detailed answer again.

This feature request is canceled :(


uh, you mean you have to cancel replacehtaccess only ?

Don't remove the others please :)
'removephpini' => 0,

'replacewebconfig' => 0,

'removehtpasswd' => 0,


To come back on two little questions :
- replacewebconfig : what is it ?
- Amazon S3 : I have tested again to download from S3 (Germany) but without success. What was the S3 feature mentionned in the changedlog then ?
 
woluweb
Monday, 24 July 2017 07:46 CDT
I have to remove all of the features which have ANGIE touch system configuration files until I find a more elegant way to do it.

replacewebconfig


Just like replacehtaccess but for IIS, which uses web.config files instead.

- Amazon S3 : I have tested again to download from S3 (Germany) but without success. What was the S3 feature mentionned in the changedlog then ?


The Changelog said that we added support. You have to enable it, though. You'll have to wait for the stable version to read the documentation. The S3 v4 signature method requires providing even more information about your bucket which I cannot explain in a ticket.


Nicholas K. Dionysopoulos

Lead Developer and Director



Greek: native

English: excellent

French: basic



Please keep in mind my timezone and cultural differences when reading my replies. Thank you!



nicholas
Monday, 24 July 2017 07:53 CDT
1. angie

No problem. When you think of a more elegant way, just let me know if you wish : I'll be happy to test

2. replacewebconfig

OK, I have never touched IIS (and never will :) ).
That's why replacewebconfig would not ring any bell.
I can live without :)

3. Amazon S3

Great news ! I'll wait until it is released then since it requires more Documentation.
I'll be happy to test & give feedback if any.

Txs again for your kind & professional follow-up !

Marc
 
woluweb
Wednesday, 23 August 2017 17:17 CDT
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.
system
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

Support Information

Working hours: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

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!

Cookies Notification - Action required

This website uses cookies to provide user authentication and improve your user experience. Please indicate whether you consent to our site placing these cookies on your device. You can change your preference later, from the controls which will be made available to you at the bottom of every page of our site.