Page 1 of 1
database access...
Posted: Mon Apr 26, 2010 7:49 pm
by shadowslash
I haven't tested this yet but would still like confirmation before I do... I have already set up a fully working revCGI from the rev3.5-gm-2 engine on my hosting. my hosting offers up to 3 SQL databases for me to use.. my question is, will revCGI or *.cgi scripts on my server be able to access the database that my host provided? take note that my host doesn't support remote access to the MySQL database...
any insights or experiences on these aspects?
Re: database access...
Posted: Mon Apr 26, 2010 10:03 pm
by RRobert
will revCGI or *.cgi scripts on my server be able to access the database that my host provided? take note that my host doesn't support remote access to the MySQL database...
Why not? Doesn't your CGI script run on the same server?
Robert
Re: database access...
Posted: Mon Apr 26, 2010 11:43 pm
by shadowslash
yes but when I try to run a test page for INSERTing VALUES into the database, it gives me a "500 Internal Server Error"... i don't know what the reason is for that case either..
Re: database access...
Posted: Tue Apr 27, 2010 12:44 am
by RRobert
Try to run the script from the shell and see what revolution says or examine the error log of the webserver.
Robert
Re: database access...
Posted: Tue Apr 27, 2010 2:25 pm
by shadowslash
RRobert wrote:Try to run the script from the shell and see what revolution says or examine the error log of the webserver.
Robert
I'm not sure I follow what you stated. What do you mean by
try to run the script from the shell? Oh and additional information, my hosting provider seems to be using a Linux box...
Re: database access...
Posted: Tue Apr 27, 2010 7:39 pm
by RRobert
shadowslash wrote:I'm not sure I follow what you stated. What do you mean by try to run the script from the shell? Oh and additional information, my hosting provider seems to be using a Linux box...
Do you have shell access via SSH2? Or access to the apache log directory?
PS: Do you use Windows, Mac or Linux locally?
Robert
Re: database access...
Posted: Mon May 03, 2010 1:06 pm
by shadowslash
RRobert wrote:shadowslash wrote:I'm not sure I follow what you stated. What do you mean by try to run the script from the shell? Oh and additional information, my hosting provider seems to be using a Linux box...
Do you have shell access via SSH2? Or access to the apache log directory?
PS: Do you use Windows, Mac or Linux locally?
Robert
I use Windows and quite frankly, I haven't the slightest idea about SSH2... x)
Re: database access...
Posted: Mon May 03, 2010 3:14 pm
by RRobert
Does your hoster write something about SSH on his website?
PS:
puTTY is a free SSH client.
Robert
Re: database access...
Posted: Tue May 04, 2010 3:51 pm
by Mark
You can find a version of PuTTy here:
http://qurl.tk/a8
Best,
Mark
Re: database access...
Posted: Thu May 06, 2010 7:33 am
by bangkok
shadowslash wrote:yes but when I try to run a test page for INSERTing VALUES into the database, it gives me a "500 Internal Server Error"... i don't know what the reason is for that case either..
I had the same problem.
It migth be related to the way you have installed the rev cgi.
- put in comment/delete all your DB commands and functions within your cgi. My point : my own cgi was working perfect.... until I started to add DB related script. I had too a 500 internal server error
This little test should help you to trace the origin of the problem. If it's related to DB functions, then it's linked to your rev cgi installation : DB drivers, even the runtime version etc. and the tricky issue of path (for the db driver for instance)
For instance, during my own tests : i had problems with a runtime 4.5 and 4. So I took a version 3.5 and then it was working fine.
Re: database access...
Posted: Thu May 06, 2010 1:12 pm
by Klaus
FYI: Version 3.5 of Rev was the last version you could use as a CGI engine!
RunRev removed this feature from later versions!
Best
Klaus
Re: database access...
Posted: Thu May 06, 2010 5:12 pm
by bangkok
Klaus wrote:FYI: Version 3.5 of Rev was the last version you could use as a CGI engine!
RunRev removed this feature from later versions!
Ah ah ah ah !
Now I understand...
Oh my god, I lost a couple of hours on this...
Anyway.