I am migrating a few existing moodle site to a newer Windows server from an older version. They are installed on one databases. In the process somehow existing 'dash' in the URLs seems to be problematic on our dns so I took it out. I went further shorten it from "abc-def.domainname.com\abc-def" to "abcdef.domainname.com". Binding on IIS Website, dns server entry and config.php in moodle code are all udpated. It seems to work fine.
Except I am not certain about all previously uploaded files, images of students work or teachers' course content etc. I had done this on a development site and like to confirm all necessary steps and learn how to verify things before rolling out to production sites. Can anyone tell me how I can verify, search in databases or fix old path, etc? I am a tech not a teacher.
Many many thanks.
In reply to Johnny Lo
Re: Impact of changing wwwroot setting in config.php for an existing moodle site
by Ken Task -
Yes, there is more than changing DNS and config.php.
Your moodle has used that variable to build internal links so you need to run the admin tool for search and replace.
Search for old utl replace with new url.
And, dunno if typo or not, but slashes in URL's for the globe (all of internet) lean to the right (/) .... not \ as in a Windows domain. 
'SoS', Ken
In reply to Ken Task
Re: Impact of changing wwwroot setting in config.php for an existing moodle site
by Johnny Lo -
Thanks for your quick respond. It is a typo in the URL I gave. Sorry.
I am running version 3.11. Is the admin tool all I need? What about plugins? The Office 365 integration plugin and OIDC plugin would need to be setup again with the new URL, which is mainly on 365 side. Is there any other type of plugins I should pay more attention to? The sites are for K-12 education. I have some LTI tools but their configuration doesn't seem to include URL.
I am running version 3.11. Is the admin tool all I need? What about plugins? The Office 365 integration plugin and OIDC plugin would need to be setup again with the new URL, which is mainly on 365 side. Is there any other type of plugins I should pay more attention to? The sites are for K-12 education. I have some LTI tools but their configuration doesn't seem to include URL.
In reply to Johnny Lo
Re: Impact of changing wwwroot setting in config.php for an existing moodle site
by Ken Task -
Sounds like you didn't research any! 
The search and replace I referred to was for moodle internal links only.
Yes, third party remote apps/authentication, etc. might have 'call back' URL's configured on the other end. Those would have to be changed on the other end.
Since you've not fully disclosed all the plugins you've installed, how could anyone answer a question about plugins? And am not asking you to provide that list here in forums for me to do what you should be doing ... checking plugins:
Find the plugins you have installed and see if in the readme's you can see there say anything about what you seek (a call back etc.).
You have said 'sites' ... plural ... I wouldn't check just one then and assume that all of them are the same ... cause *each* site might be different in some form or fashion given that they are for K12.
'SoS', Ken
In reply to Ken Task
Re: Impact of changing wwwroot setting in config.php for an existing moodle site
by Johnny Lo -
That is embarrassing... I didn't search for 'Replace URL in Moodle migration' until after my reply. I found it (https://docs.moodle.org/311/en/Search_and_replace_tool) and ran it. About 1300 tables were queired and updated. Also ran the health tool and found tons of empty question categories. Thanks.
I was trying to get an idea of any areas that I need more attention to so when students and teachers come back in September things are as smooth as they can be. We have 2 production sites. Not huge. Just a few of external tools including O365. Yes I agree. Going through all installed plugins and configurations to catch call back URL setting is probably the best way, if not the only way to be sure. Thanks for the tips.
I am also now revisiting/reviewing docs about https transition and cron and other admin/tool folders.
I was trying to get an idea of any areas that I need more attention to so when students and teachers come back in September things are as smooth as they can be. We have 2 production sites. Not huge. Just a few of external tools including O365. Yes I agree. Going through all installed plugins and configurations to catch call back URL setting is probably the best way, if not the only way to be sure. Thanks for the tips.
I am also now revisiting/reviewing docs about https transition and cron and other admin/tool folders.
In reply to Johnny Lo
Re: Impact of changing wwwroot setting in config.php for an existing moodle site
by Ken Task -
cd /path/to/moodlecode/admin/cli/
php cfg.php > settings.txt
cat settings.txt |more
settings contains almost all local moodle settings.
But there is more in addons. For the, no script,
but there is a query you could run and produce a text file
to review (wonder really):
mysql -u $mddbuser -p$mddbpass -e "use $mddbname;select * from mdl_config_plugins;" > plugininfo.txt;cat plugininfo.txt
wc -l plugininfo.txt
and 3.11.x is no longer supported for fixes - code or security.
https://moodledev.io/general/releases
4.1 is a good, goal as it is long term support that should get you through a K12 academic year (with minor point releases),
But - always one of those - 4.1 does have some higher requirements.
https://moodledev.io/general/releases/4.1
php cfg.php > settings.txt
cat settings.txt |more
settings contains almost all local moodle settings.
But there is more in addons. For the, no script,
but there is a query you could run and produce a text file
to review (wonder really):
mysql -u $mddbuser -p$mddbpass -e "use $mddbname;select * from mdl_config_plugins;" > plugininfo.txt;cat plugininfo.txt
wc -l plugininfo.txt
and 3.11.x is no longer supported for fixes - code or security.
https://moodledev.io/general/releases
4.1 is a good, goal as it is long term support that should get you through a K12 academic year (with minor point releases),
But - always one of those - 4.1 does have some higher requirements.
https://moodledev.io/general/releases/4.1
Use your current server environment check, update component, then set pick list for 4.1 of moodle.
I would suggest the install of moosh - the 'swiss army knife' for Moodle - it's command line only and lacks some commands on Windows. I might be guessing incorrectly, but you are running Windows servers, right?
If Linux, install moosh.
The following from a moodle 3.11.highest - which will soon be upgraded to a 4.1.
Then make a text file list - one liners - of the shortnames of the plugins and tall it addons.txt
Bash shell script that loops through addons and uses moosh to check versions of the plugins.
addons.txt
mod_wiris
theme_fordson
mod_hvp
block_quickmail
filter_wiris
atto_wiris
tinymce_tiny_mce_wiris
tool_opcache
format_menutopic
local_deleteoldquizattempts
theme_fordson
mod_hvp
block_quickmail
filter_wiris
atto_wiris
tinymce_tiny_mce_wiris
tool_opcache
format_menutopic
local_deleteoldquizattempts
checkaddons script
#!/bin/bash
#
echo 'Add-on listing: ';
cat ./addons.txt;
echo '---------------------';
for i in `cat ./addons.txt`
do
echo "Addon in que: $i";
moosh -n plugin-list |grep $i
done
#
echo 'Add-on listing: ';
cat ./addons.txt;
echo '---------------------';
for i in `cat ./addons.txt`
do
echo "Addon in que: $i";
moosh -n plugin-list |grep $i
done
output looks like the following:
Add-on listing:
mod_wiris
theme_fordson
mod_hvp
block_quickmail
filter_wiris
atto_wiris
tinymce_tiny_mce_wiris
tool_opcache
format_menutopic
local_deleteoldquizattempts
---------------------
Addon in que: mod_wiris
Addon in que: theme_fordson
theme_fordson,3.10,3.11,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,https://moodle.org/plugins/download.php/24737/theme_fordson_moodle311_2021072100.zip
Addon in que: mod_hvp
mod_hvp,2.5,2.6,2.7,2.8,2.9,3.0,3.1,3.10,3.11,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0,4.1,4.2,https://moodle.org/plugins/download.php/29419/mod_hvp_moodle42_2023061200.zip
Addon in que: block_quickmail
block_quickmail,2.0,2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3.0,3.1,3.2,3.3,3.4,3.5,3.7,3.8,3.9,https://moodle.org/plugins/download.php/24007/block_quickmail_moodle39_2021030200.zip
block_quickmailsms,2.3,https://moodle.org/plugins/download.php/1563/block_quickmailsms_moodle23_201210081202.zip
Addon in que: filter_wiris
filter_wiris,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3.0,3.10,3.1,3.11,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0,4.1,4.2,https://moodle.org/plugins/download.php/29422/filter_wiris_moodle42_2023061200.zip
Addon in que: atto_wiris
atto_wiris,2.7,2.8,2.9,3.0,3.10,3.1,3.11,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0,4.1,4.2,https://moodle.org/plugins/download.php/29423/atto_wiris_moodle42_2023061200.zip
Addon in que: tinymce_tiny_mce_wiris
tinymce_tiny_mce_wiris,2.4,2.5,2.6,2.7,2.8,2.9,3.0,3.10,3.1,3.11,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0,4.1,4.2,https://moodle.org/plugins/download.php/29424/tinymce_tiny_mce_wiris_moodle42_2023061200.zip
Addon in que: tool_opcache
tool_opcache,3.2,3.3,3.4,3.5,3.6,3.7,3.8,4.1,https://moodle.org/plugins/download.php/29045/tool_opcache_moodle41_2023010500.zip
Addon in que: format_menutopic
format_menutopic,2.3,2.4,2.7,2.8,2.9,3.0,3.10,3.1,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0,4.1,https://moodle.org/plugins/download.php/29633/format_menutopic_moodle41_2023050702.zip
Addon in que: local_deleteoldquizattempts
local_deleteoldquizattempts,2.7,2.8,2.9,3.0,3.1,3.10,3.11,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,https://moodle.org/plugins/download.php/25747/local_deleteoldquizattempts_moodle311_2022010200.zip
mod_wiris
theme_fordson
mod_hvp
block_quickmail
filter_wiris
atto_wiris
tinymce_tiny_mce_wiris
tool_opcache
format_menutopic
local_deleteoldquizattempts
---------------------
Addon in que: mod_wiris
Addon in que: theme_fordson
theme_fordson,3.10,3.11,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,https://moodle.org/plugins/download.php/24737/theme_fordson_moodle311_2021072100.zip
Addon in que: mod_hvp
mod_hvp,2.5,2.6,2.7,2.8,2.9,3.0,3.1,3.10,3.11,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0,4.1,4.2,https://moodle.org/plugins/download.php/29419/mod_hvp_moodle42_2023061200.zip
Addon in que: block_quickmail
block_quickmail,2.0,2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3.0,3.1,3.2,3.3,3.4,3.5,3.7,3.8,3.9,https://moodle.org/plugins/download.php/24007/block_quickmail_moodle39_2021030200.zip
block_quickmailsms,2.3,https://moodle.org/plugins/download.php/1563/block_quickmailsms_moodle23_201210081202.zip
Addon in que: filter_wiris
filter_wiris,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3.0,3.10,3.1,3.11,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0,4.1,4.2,https://moodle.org/plugins/download.php/29422/filter_wiris_moodle42_2023061200.zip
Addon in que: atto_wiris
atto_wiris,2.7,2.8,2.9,3.0,3.10,3.1,3.11,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0,4.1,4.2,https://moodle.org/plugins/download.php/29423/atto_wiris_moodle42_2023061200.zip
Addon in que: tinymce_tiny_mce_wiris
tinymce_tiny_mce_wiris,2.4,2.5,2.6,2.7,2.8,2.9,3.0,3.10,3.1,3.11,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0,4.1,4.2,https://moodle.org/plugins/download.php/29424/tinymce_tiny_mce_wiris_moodle42_2023061200.zip
Addon in que: tool_opcache
tool_opcache,3.2,3.3,3.4,3.5,3.6,3.7,3.8,4.1,https://moodle.org/plugins/download.php/29045/tool_opcache_moodle41_2023010500.zip
Addon in que: format_menutopic
format_menutopic,2.3,2.4,2.7,2.8,2.9,3.0,3.10,3.1,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0,4.1,https://moodle.org/plugins/download.php/29633/format_menutopic_moodle41_2023050702.zip
Addon in que: local_deleteoldquizattempts
local_deleteoldquizattempts,2.7,2.8,2.9,3.0,3.1,3.10,3.11,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,https://moodle.org/plugins/download.php/25747/local_deleteoldquizattempts_moodle311_2022010200.zip
The links to plugins you could xfer to your server via wget.
And you can see by the versions which ones have a compat 4.1 version.
'SoS', Ken