Community
OpenEnergyMonitor

Community

Update issue from v9.8.24 to v10.1.10 on a shared server

Just tried to update from v9.8.24 to v10.1.10 on a shared server using @borpin 's suggested solution and run into the same topic: “Database error, you may need to run database update”.

then modified content of emoncmsdbupdate.php

chdir("/var/www/emoncms"); to chdir("/");

and copied it to my /www/htdocs/XXX/DOMAINNAME/emoncms directory and made it 777. After that I tried to run https://DOMAINNAME/emoncmsdbupdate.php which ended up in :

Warning : scandir(Modules): failed to open dir: No such file or directory in /www/htdocs/XXX/DOMAINNAME/emoncms/core.php on line 156

Warning : scandir(): (errno 2): No such file or directory in /www/htdocs/XXX/DOMAINNAME/emoncms/core.php on line 156
[]

Did I completely wrong?

You need to run it from SSH I think as in

[edit]
Or - the path might need to be the real path on the shared server as / is the real root folder of the host.

As for the shared host I only have access to files via FTP and to MySQL via phpMyAdmin. So I cannot run SSH shells.

I modified emoncmsdbupdate.php with the full real path and it finally worked:
modified: chdir("/www/htdocs/XXX/DOMAINNAME/emoncms");

So thanks a lot @borpin !

1 Like