Hi,
I have installed emoncms on a shared server but i have problems with my first signup attempt: i get a red box and Chrome show this message:
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://www.myemon.altervista.org/user/register.json
My web address is http://www.myemon.altervista.org, i have unzipped the emoncms-master file on the root but there is not a folder called user and neither a file called register.json.
Someone had similar problems installing emoncms on a shared server? Is it because the server need to enable mod_rewrite?
Thanks for read this! :)
Emilio
Re: signup problems on shared Linux hosting
One thing to check is th permissions on all the directories. I found many of mine were root. When I changed it to the user account it seems to have resolved this issue. Not sure why but that is what I did.
Good luck.
Re: signup problems on shared Linux hosting
Thanks Nathanmonk, i did as you said but i keep having same error message.
The files (from unzipped master.zip) are into my shared public_html folder on the remote server.
I dont have any emoncms folder. Maybe this is wrong?
My error message from Chrome is:
Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://www.myemon.altervista.org/user/login.json
This path was probably generated by script and do not exist on my site because i dont have any user folder on my root.
(sorry for my bad english).
Emilio
Re: signup problems on shared Linux hosting
I'm guessing you followed the steps on http://emoncms.org/site/docs/sharedlinuxhosting ?
Re: signup problems on shared Linux hosting
Yes, php and mysql are on and about mod_rewrite i have put this line on .htacces: RewriteBase /
and the error message now is not present on Chrome, but nothing more happens, i'm not able to register myself,
the page show an empty red box as usual.
At start i get this message (always present):
notice: putenv() has been disabled for security reasons in /membri/myemon/locale.php
Thanks for your help :)
Emilio
Re: signup problems on shared Linux hosting
The files (from unzipped master.zip) are into my shared public_html folder on the remote server.
I dont have any emoncms folder. Maybe this is wrong?
Sounds like you unzipped the files directly into your public_html folder rather than into a folder of their own. (Which then gets renamed to emoncms) or, you didn't rename the folder they were unzipped in, to emoncms.
Re: signup problems on shared Linux hosting
Yes i unzipped the files directly into public_html, so i dont know what i need to rename. I need to put them into a folder and call it emoncms? I will do that, thanks!
Emilio
Re: signup problems on shared Linux hosting
Now the files and directories are into the folder emoncms and this one is on the public_html folder.
Trying to register first time the only change was that error 500 became error 404:
Failed to load resource: the server responded with a status of 404 (Not Found) http://www.myemon.altervista.org/emoncms/user/register.json
It seems to me that some locations are generated in a wrong why by the scripts route.php, but i'm not sure about this.
I need to set something in .htacces in order to have mod_rewrite working fine?
Thanks again
Emilio
Re: signup problems on shared Linux hosting
Hi Emilio,
After getting your emoncms directory issue fixed, did you copy defaultsettings.php to settings/php and make the necessary edits?
You *did* create a mysql database, right?
Bill
Re: signup problems on shared Linux hosting
Yes, I did create the database (lol), i can see it using PhpMyAdmin and i can see the 8 tables creates inside. If i query the 'users' table i can see my registration with API keys for read and write and other data about my account registration. So the db connection worked fine.
I have noticed that the mysql db engine is myISAM and InnoDB engine is not activated by default on my server, is it important?
About the settings.php file: i see something weird on the last row:
// Log4PHP configuration
$log4php_configPath = '/etc/emoncms/emoncms_log4j.xml';
i know i need to change this but no idea how ^^
thanks
Emilio
Re: signup problems on shared Linux hosting
Wow... i did this change inside the .htacces file inserting this row:
RewriteBase /emoncms
and now ALL IS WORKING! :-)
YAYYYYYYY
emilio
Re: signup problems on shared Linux hosting
Hy all,
I have the same pb, I tried Emilio's solution, but it did not work for me...
Too bad
Let me know if you find something else...
Tony