I have checked Server -> Environment and everything is fine.
If I do a strace to see what the process is doing I see the following, for example:
access("/var/www2/medusa/evagd/test_evagd/lib/editor/tinymce/plugins/moodlemedia/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/lib/editor/tinymce/plugins/moodlenolink/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/lib/editor/tinymce/plugins/pdw/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/lib/editor/tinymce/plugins/recordrtc/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/lib/editor/tinymce/plugins/spellchecker/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/lib/editor/tinymce/plugins/tiny_mce_wiris/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/lib/editor/tinymce/plugins/wrap/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/admin/tool/log/store/database/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/admin/tool/log/store/legacy/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/admin/tool/log/store/standard/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/lib/db/caches.php", F_OK) = 0
openat(AT_FDCWD, "/var/www2/medusa/evagd/test_evagd/lib/db/caches.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0755, st_size=20316, ...}) = 0
read(7, "<?php\n// This file is part of Mo"..., 20316) = 20316
close(7) = 0
access("/var/www2/medusa/evagd/test_evagd/availability/condition/completion/db/caches.php", F_OK) = 0
openat(AT_FDCWD, "/var/www2/medusa/evagd/test_evagd/availability/condition/completion/db/caches.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0755, st_size=1174, ...}) = 0
read(7, "<?php\n// This file is part of Mo"..., 1174) = 1174
close(7) = 0
access("/var/www2/medusa/evagd/test_evagd/availability/condition/grade/db/caches.php", F_OK) = 0
openat(AT_FDCWD, "/var/www2/medusa/evagd/test_evagd/availability/condition/grade/db/caches.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0755, st_size=1518, ...}) = 0
read(7, "<?php\n// This file is part of Mo"..., 1518) = 1518
access("/var/www2/medusa/evagd/test_evagd/lib/editor/tinymce/plugins/moodlenolink/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/lib/editor/tinymce/plugins/pdw/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/lib/editor/tinymce/plugins/recordrtc/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/lib/editor/tinymce/plugins/spellchecker/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/lib/editor/tinymce/plugins/tiny_mce_wiris/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/lib/editor/tinymce/plugins/wrap/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/admin/tool/log/store/database/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/admin/tool/log/store/legacy/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/admin/tool/log/store/standard/db/caches.php", F_OK) = -1 ENOENT (No such file or directory)
access("/var/www2/medusa/evagd/test_evagd/lib/db/caches.php", F_OK) = 0
openat(AT_FDCWD, "/var/www2/medusa/evagd/test_evagd/lib/db/caches.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0755, st_size=20316, ...}) = 0
read(7, "<?php\n// This file is part of Mo"..., 20316) = 20316
close(7) = 0
access("/var/www2/medusa/evagd/test_evagd/availability/condition/completion/db/caches.php", F_OK) = 0
openat(AT_FDCWD, "/var/www2/medusa/evagd/test_evagd/availability/condition/completion/db/caches.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0755, st_size=1174, ...}) = 0
read(7, "<?php\n// This file is part of Mo"..., 1174) = 1174
close(7) = 0
access("/var/www2/medusa/evagd/test_evagd/availability/condition/grade/db/caches.php", F_OK) = 0
openat(AT_FDCWD, "/var/www2/medusa/evagd/test_evagd/availability/condition/grade/db/caches.php", O_RDONLY) = 7
fstat(7, {st_mode=S_IFREG|0755, st_size=1518, ...}) = 0
read(7, "<?php\n// This file is part of Mo"..., 1518) = 1518
Can you help me?