Hay
I have tried to get this thing working since you wrote, thank you for your time spent, but I have no experience with .php and servers. And I got a problem with my browser not connecting. I googled around and found out you are not able to just browse a server with you internet browser, but I where not able to find a way to enable that (it is a CentOS server).
I know this is not the kind of questions this maillist is here to answer, but I think this question is so simple in complexity that I hope you will answer it. I will still google around for the answer while I wait.
kind regards DWP
2010/3/29 Andreas Weiler andreas.weiler@uni-konstanz.de:
Hi Daniel,
you have to do the following:
- Configure the Example.php with your server details. You have to replace
the server name and the port in the Example.php. 2) Upload the BaseX.php and the Example.php to an available webserver, with php installed. 3) Then start the BaseXServer on your server. 4) Then open with a browser the Example.php on your webserver. Then it should connect to the BaseXServer and run a query.
Now the error message or the result of the query is coming up in your browser.
Andreas
Daniel .Petersen schrieb:
I have not used php before, so tell me if I doing it wrong, because i:
- upload the BaseX.php to the server
- install php on my pc, and check it works on the server
- then i run the "php -f Example.php" command on my pc
Do I need to do anything else than uplaod the BaseX.php file to the server? Do I need to start the java BaseXServer up?
Because I get a "can`t communicate.."-error whenewer I do this.
2010/3/29 Andreas Weiler andreas.weiler@uni-konstanz.de:
You could try out to upload the PHP Version: https://svn.uni-konstanz.de/dbis/basex/trunk/api/etc/php/ on a webserver and try to connect to your server with the Example.php. So you could narrow the problem to server or client side. Sorry for no better adivces, but we haven't encountered the problem before.
Daniel .Petersen schrieb:
I am not getting the "can't comunnicate.."-error more and is back at the "timeout exception" again, does that make any sense?
I am quite sure the ip is correct, because I am able to scan for open ports from my pc and see the same ports are open as if i scan localhost on the server.
I have unblogged java on my pc, before I started on this.
And the server is CentOs and linux do not blog programs like on windows (if i remember right) and the port are open when i use nmap both on the server and from my pc.
2010/3/29 Andreas Weiler andreas.weiler@uni-konstanz.de:
So i guess it's a security problem. I just checked it by myself on a remote server and i didnt get any problem. So i just can give your following advices: Please make sure Java is not blocked from the firewalls on both machines and check if the port is open and the hostname or hostip is the right one.
Daniel .Petersen schrieb:
I am able to connect to the server locally using the commands you posted.
2010/3/29 Andreas Weiler andreas.weiler@uni-konstanz.de:
> > Hi Daniel, > > > > >> >> "bigBrother" now instead of "asf3-fileserver" >> >> >> > > i just checked it with nmap on my machine, and it says exactly the > same > as > yours. (with BaseX Server running and without) > So dont give a lot on these results. > > If you can connect local to the BaseXServer with just specify the > port > like: > > java -cp BaseX6.jar org.basex.BaseXServer -p 1984 > > java -cp BaseX6.jar org.basex.BaseXClient -p 1984 > > and not remote like: > > java -cp BaseX6.jar org.basex.BaseXClient -n host -p 1984 > > Then your server is wrongly configured, please check that first. > > Kind regards, > Andreas, BaseX Team > > Daniel .Petersen schrieb: > > > >> >> Hay again >> >> tried to do everything over once more and now I get another error >> message >> >> "Can't communicate with the server"-error >> >> There are no change in behavior yet, exept that. >> >> 2010/3/28 Christian Grün christian.gruen@gmail.com: >> >> >> >> >>> >>> Hm… I'm sorry I have no idea what could be the matter. Maybe >>> someone >>> else out there has some clue? >>> >>> On Sat, Mar 27, 2010 at 11:24 PM, Daniel .Petersen >>> superDACAL@hotmail.com wrote: >>> >>> >>> >>> >>>> >>>> hmm... If I use the 1984 port and scan with nmap the service is >>>> called >>>> "bigBrother" now instead of "asf3-fileserver", but the clients >>>> behavior is unchanged. >>>> >>>> >>>> >>>> >>> >>> _______________________________________________ >>> BaseX-Talk mailing list >>> BaseX-Talk@mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>> >>> >>> >>> >>> >> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk@mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >> >> >> > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk@mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > > >
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk