I want to install emoncms on domainfactory hosting.
I uploaded all files from github (stable version), changed and uploaded settings.php. MySQL login and database information is correct. mySQL and PHP version are up to date.
When I call index.php from my webspace, there is an error message:
Out of interest what are you trying to achieve?
Thereâs already a version of emoncms set up on the web, called emoncms.org. Is there a reason youâre not using that?
I read the install guide for Shared Linux Hosting.
There are no instructions on how to create the mySQL tables. I followed the innstructions mentioned in the guide, but I receive the error mentioned above when calling index.php
@Daniel: emoncms.org changed to payed version. As I am already paying for my hosting, I want to host emoncms on my domainfactory hosting.
that will present the log-in dialog box, you can click âregisterâ and add your details (username, email and password x2) and on âcreate userâ you will be logged in (and the tables created).
It seems as if emoncms tries to determine the number of users etc. ( User->get_number_of_users()) but fails with the mySQL query. But the mySQL are not there.
The blank database is created during the install steps and then the tables are created on first use. I do not know the exact instance the tables are created as successfully creating the first user is my first use. It certainly isnât âafter first loginâ as that wouldnât be possible.
Looking at the code you link, it does look like that is expecting there to be a âusersâ table by the time it reaches that point, but ordinarily there are no tables before 'http://server.com/emoncms" is called (there is no install step to create them), at which point the user login screen appears for the first user to be created. So if you are not getting the log-in screen, then somewhere in index.php or enroute to L804 of the user_model.php there must be a check/call to create the tables that isnât happening for some reason. I do not know where that is without delving into the code.
Is the âemoncmsâ mysql user correctly set up with the right permissions?
It is setting up mySQL tables and it is loading the mySQL schema / table structure from each module in Modules directory (Files named _schema.php). Not after first login, but when calling index.php.
I also think that it fails at this point. Maybe of mySQL users right permissions.
I will check /debug this.
The issue linked here I encountered on a fresh install, it doesnât seem to be creating the same errors as what youâre seeing, but they could be related, worth a shot.
See this PR from @anna_carboncoop (thanks Anna), I do not know when this might get pulled in, but it seems an easy enough edit to make manually and worth a try as it fits your symptoms.