Page 1 of 1

Comment Line - Ini File.

Posted: Tue 18 May 2021 10:20 pm
by Phil23
Can't find my old post, but I did find out that ; could be used to comment out lines in CumulusUtils.ini.

Does the same apply to Cumulus.ini.

Would like to add some inactive lines in preparation for finally getting my install up to date again.

Re: Comment Line - Ini File.

Posted: Wed 19 May 2021 6:29 am
by sfws
Phil23 wrote: Tue 18 May 2021 10:20 pm Would like to add some inactive lines in preparation for finally getting my install up to date again.
I do not understand what you mean by that preparation.....

1). Since 3.10.1, the way to adjust the MX settings is via the various settings pages in the admin interface
2) You don't adjust settings directly in the file in any normal circumstances (exception: you might have to edit the file if MX cannot start up the admin interface)
3) MX ignores any parameters in the file that it does not recognise (a semicolon prefix or a "test_" prefix or any other modifier, would make it unrecognizable)
4) Take a copy of the current Cumulus.ini file, and rename that copy by adding "orig"
5) Now, with MX running, delete the Cumulus.ini file that MX is actually using
6) Go into say "Program Settings", and click Save settiings, that will make MX create a new Cumulus.ini with your current settings
7) Take a copy of this new file, and rename this copy by adding "save".
8) The best way to learn all the new parameters is to go into each of the new settings screens, open up each section in turn, and see what you can change.
9) Then you can experiment with changing options, until you decide which you prefer.
10) The copy in step 7) can always be reverted to, should your experimenting make your MX experience worse!

A general note to everyone, are you willing to help document the new settings at https://cumuluswiki.org/a/Cumulus.ini, MX has an awful lot of settings, and so lots of people need to contribute to get that page completed.

Re: Comment Line - Ini File.

Posted: Wed 19 May 2021 10:30 am
by Phil23
sfws wrote: Wed 19 May 2021 6:29 am
Phil23 wrote: Tue 18 May 2021 10:20 pm Would like to add some inactive lines in preparation for finally getting my install up to date again.
I do not understand what you mean by that preparation.....

1). Since 3.10.1, the way to adjust the MX settings is via the various settings pages in the admin interface
2) You don't adjust settings directly in the file in any normal circumstances (exception: you might have to edit the file if MX cannot start up the admin interface)
Basically I want the new settings I'm planning in place in the ini file as comments so I can have them entered below the old setting then when all is established, comment out the old & un-comment the new.

Should then only take a minute or so to restart with the new config.

My ini file is a bit messy in places as it has out of logical sequence entries due to it evolving over the past 10+ years.
[FTP Site] section is the worst area as there are blobs randomly distributed in it as the versions have evolved.
Spent some time today moving entries about so all but Extra Web Files is at the beginning of that section with all Extras following.

IE..

Code: Select all

ExtraLocal9=web\datasummaryT.htm
ExtraRemote9=datasummary.php
ExtraProcess9=1
ExtraBinary9=0
ExtraRealtime9=0
ExtraFTP9=1
UTF8encode=1
ExtraUTF0=0
ExtraUTF1=0
ExtraUTF2=0
ExtraUTF3=0
ExtraUTF4=0
ExtraUTF5=1
ExtraUTF6=0
ExtraUTF7=1
ExtraUTF8=1
ExtraEOD0=0
ExtraEOD1=0
ExtraEOD2=0
ExtraEOD3=0
ExtraEOD4=0
ExtraEOD5=0
ExtraEOD6=0
ExtraEOD7=0
ExtraEOD8=0
ExtraUTF9=1
ExtraEOD9=0
ExtraLocal10=data\dayfile.txt
ExtraRemote10=dayfile.txt
ExtraProcess10=0
ExtraBinary10=0
ExtraRealtime10=0
ExtraFTP10=1
ExtraUTF10=0
ExtraEOD10=1
There is plenty of Scope for me to reorganise that area better
Yes I do use the Admin interface; but my background in DOS/Win/Some-Linux tends to make me more interested in reading an inin file than browsing a collection of settings pages to get a full config overview.

Re: Comment Line - Ini File.

Posted: Wed 19 May 2021 10:48 am
by mcrossley
Phil23 wrote: Wed 19 May 2021 10:30 am My ini file is a bit messy in places as it has out of logical sequence entries due to it evolving over the past 10+ years.
[FTP Site] section is the worst area as there are blobs randomly distributed in it as the versions have evolved.
..
There is plenty of Scope for me to reorganise that area better
Once you are happy with the entries, then use the process above to recreate the file, and it will be reorganised for you - at least the FTP section will be ordered!

Re: Comment Line - Ini File.

Posted: Wed 19 May 2021 11:01 am
by sfws
Phil23 wrote: Wed 19 May 2021 10:30 am Basically I want the new settings I'm planning in place in the ini file as comments so I can have them entered below the old setting then when all is established, comment out the old & un-comment the new.
All I will add to Mark's reply is:

Time to learn a new way of working, don't edit file directly. The system has changed now, as you will discover if you read what I said before. Thus order MX determines for parameters within the file is immaterial.

(Perhaps you are remembering Steve Loft's advice for this file (your 10+ years ago) that said organise the parameters within sections in alphabetical order (or some other logical order), because in Steve's releases, many new parameters could.only be added directly into file).

Sometimes, I wish Mark had selected a new name for this file (with a routine to read old file and create new), the differences between old and new seem to cause some people so much hassle.

Re: Comment Line - Ini File.

Posted: Wed 19 May 2021 8:33 pm
by Phil23
sfws wrote: Wed 19 May 2021 11:01 am Time to learn a new way of working, don't edit file directly.
I Do know how to use an interface....
Quite a variety in fact.
The system has changed now, as you will discover if you read what I said before.
I did & do READ, and usually re-read for confirmation.
(Perhaps you are remembering Steve Loft's advice for this file (your 10+ years ago) that said organise the parameters....
Not the case at all,
I currently have 15 entries in Extra Webfiles, that needs to become about 25 once I'm done.

Making that change is in my mind much easier manages outside the interface where I can create the entire replacement block of entries;
confirm they are correct before shutting down & pasting them in.

Changing all those entries via the interface is prone to interruption in my case; phone call or call-out,
drop what you are doing mid stream & then have to pick up on where you were at later.

And Yes in advance,
I do plan to move everything to the newer Web look & functionality at some point,
but like everything that has it's learning curve & time constraints.
Until then I'll run a couple of test Sub-Dom's in parallel.