In your second screen shot ...
last line ... it shows /admin/tool/replace/index.php
not httpsreplace.
/admin/tool/httpsreplace/ shows this screen text when one accesses initially:
"Upgrade externally-hosted content URLs to HTTPS
When a site is moved from HTTP to HTTPS, all embeded HTTP content will stop working. This tool allows you to automatically convert HTTP content to HTTPS. Before performing the conversion, content will be scanned to find any URLs which may not work after conversion. You may want to check each one has HTTPS available, or find alternative resources."
with a links to docs for it:
https://docs.moodle.org/38/en/HTTPS_conversion_tool
Your moodle site is in an /e-learning/ subdirectory so when using the url line to navigate use site/e-learning/ in front.
Also ... earlier response ... you said you'd try the CLI script. Did you?
cd /path/to/site/admin/tool/httpsreplace/cli/ [ENTER]
then execute:
php url_replace.php [ENTER]
That will bring up a help screen which shows:
"Examines DB for non-https src or data links, and lists broken links or replaces all links.
Options:
-h, --help Print out this help
-l, --list List of http (not https) urls on a site in the DB that would become broken.
-r, --replace List of http (not https) urls on a site in the DB that would become broken.
--confirm Replaces http urls with https across a site's content.
Example:
$ sudo -u www-data /usr/bin/php admin/tool/httpsreplace/cli/url_replace.php --list
Issuing: php url_replace.php --list
will show if there are any urls that need converting.
'SoS', Ken