Hello, i have a big problem.
Yestarday i did migration from old server to new (Own server VPS) on the old server everything worked fine
My new server specs is: Web Server: Vritualmin (Last) with php7.4 and Mysql8
can somebody help me; thank you.
Hello, i have a big problem.
Yestarday i did migration from old server to new (Own server VPS) on the old server everything worked fine
Did the migration involve a change in the fully qualified domain name of the server? Moodle uses wwwroot variable in config.php to build full url's to images/files.
Also, did the migration involve moving from http:// to https:// ... see in your screen shot a 'not secure' icon.
IF either above is true, then you need to run search and replace ... to find oldurl and replace with new url + change http:// to https://
https://docs.moodle.org/39/en/Search_and_replace_tool
Do heed what it says ... ** backup your database and know how to restore it in case something goes wrong **
'SoS', Ken
A full site migration included code, db, and moodledata.
moodledata ownerships and permissions should be quite liberal - globall all must be able to at least read.
moodledata/filedir/ is where files uploaded to moodle are stored.
Files in filedir are not humanly recognizable ...
Since you can see the filename of an image not display you need to query the mdl_files table of the DB for a filename to see the contenthash value. In examples below you adjust replace for a known image file type ... like \%.jpg. Example below for .gifs.
mysql> select filename,filesize,contenthash from mdl_files where filename like '%.gif';
Shows info like this:
+------------------------------+----------+------------------------------------------+
| filename | filesize | contenthash |
+------------------------------+----------+------------------------------------------+
| alien_eyes_md_wht.gif | 8545 | 783adb04a7da39ed7e4db1a0c4e6debda24635f5 |
| alien_eyes_md_wht.gif | 8545 | 783adb04a7da39ed7e4db1a0c4e6debda24635f5 |
The alien_eyes_md_wht.gif file is in
moodledata/filedir/78/3a/ and called 783adb04a7da39ed7e4db1a0c4e6debda24635f5
'SoS', Ken
Might want to bookmark/favorite the following:
http://www.syndrega.ch/blog/#php-and-dbms-compatibility-of-major-moodle-releases
And make use of Environment check in Moodle admin ... it will inform.
'SoS', Ken