You're clearing up a lot of things for me, thanks a lot!
I'm working in a shared hosting so I can't access to it via ssh.
My hosting provider says they don't have an autoupdate.
If you tell me which are the permissions the config.php file must have maybe I could change it... For example, only read and write only for owner and no permissions for group or users must be 600.
I see an error_log file in there ... what does it contain?
This is the contain in the file:
[05-Oct-2017 18:03:21 UTC] PHP Warning: require_once(/home/alberto7/public_html/formacion/cache/lib.php): failed to open stream: No such file or directory in /home/alberto7/public_html/formacion/lib/setup.php on line 609
[05-Oct-2017 18:03:21 UTC] PHP Fatal error: require_once(): Failed opening required '/home/alberto7/public_html/formacion/cache/lib.php' (include_path='/home/alberto7/public_html/formacion/lib/pear:.:/opt/alt/php70/usr/share/pear') in /home/alberto7/public_html/formacion/lib/setup.php on line 609
check the main config file for apache for the use of public_html and you will probably see it's restricted from lots of things ... moodledata might be located up one level from public_html and probably has an .htaccess file in it.
Yes, moodledata is located up one level from public_html an has an .htaccess file and this is its contain:
deny from all
Note: this file is broken intentionally, we do not want anybody to undo it in subdirectory!
But I don't understand that: "check the main config file for apache for the use of public_html and you will probably see it's restricted from lots of things "
Where's that config file?, what must I look for?
Where is moodledata? .... check config.php of the code.
As I told you, I'm under a shared hosting and my moodledata is located up one level from public_html but I can't see a config.php file there...
The DB user you see in config.php of the code, does that user have all priv's to the DB to which Moodle is pointed?
I'm not clear on this question... But I think if the user I created in the DB is the one showed in the file and I gave it all priv's the answer is yes.
And one more item ... I see an .htacess.... long named thing. What is that?
I suppose this one created each time I use a backup app by the hosting provider... It contains exactly the same code as .htaccess
When first installed, how was it installed? Manually or did you use some script provided by the hosting?
Manually. My hosting provider has an script but I prefer to do it on my own.
Hope these answers can clarify you so you can help me to solve this issue...
Again, thank you so much for your help!