Android Question Bluhost VPS + RDC

Discussion in 'Android Questions' started by achtrade, Jun 11, 2015.

  1. achtrade

    achtrade Active Member Licensed User

    I just purchased a VPS with Bluhost.com now I need to install the RDC server there but I have no idea where to start.

    someone has a little tutorial or a place where I can learn how to setup this?
     
  2. NJDude

    NJDude Expert Licensed User

    There are some instructions HERE, also, you should check your provider's knowledge base for answers.
     
    lemonisdead and thedesolatesoul like this.
  3. achtrade

    achtrade Active Member Licensed User

    someone can teach me how to install java and setup a RDC-Server in my bluhost.com vps ? I'm willing to pay for it

    The mysql db is already setup.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    You shouldn't have made three duplicate posts for this.

    Lets start with Java. You do not need to install Java. Only to extract the files. You need to download the Java tar file (for linux) to your PC: https://java.com/en/download/manual.jsp
    Upload it to your linux and extract it.

    Now copy RDC files to your linux. The command to start it is similar to RunRDC.bat command. You need to replace the semi-colons with colons.
     
    lemonisdead and thedesolatesoul like this.
  5. achtrade

    achtrade Active Member Licensed User

    sorry for that, but I'm running out of time and I don't want that my app goes offline.

    I'll try this

    thanks.
     
  6. achtrade

    achtrade Active Member Licensed User

    What do these errors mean ?


    my config.properties:
    DriverClass=com.mysql.jdbc.Driver
    JdbcUrl=jdbc:mysql://127.0.0.1:3306/xxxxx99?characterEncoding=utf8

    User=xxx
    Password=xxx
    ServerPort=17178
    Debug=true

    #commands
     

    Attached Files:

    Last edited: Jun 13, 2015
  7. achtrade

    achtrade Active Member Licensed User

    I'm using this files

    mysql-connector-java-5.1.35-bin

    and

    jre1.8.0_45

    any idea ?
     
  8. achtrade

    achtrade Active Member Licensed User

    this is my c3p0

    c3p0.maxStatements=150
    c3p0.maxIdleTime=1800
    c3p0.idleConnectionTestPeriod=600
    c3p0.checkoutTimeout=60000
    c3p0.testConnectionOnCheckout=true
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    RDC fails to connect to the MySQL db. Maybe the password is incorrect, or the port or MySQL is not running at all.
     
  10. achtrade

    achtrade Active Member Licensed User

    MySql is running 3888, I don't know why, see pic.

    I changed my config to this

    JdbcUrl=jdbc:mysql://127.0.0.1/xxxxx99?characterEncoding=utf8

    and this

    JdbcUrl=jdbc:mysql://127.0.0.1:3888/xxxxx99?characterEncoding=utf8

    and this

    JdbcUrl=jdbc:mysql://localhost/xxxxx99?characterEncoding=utf8

    and I got the same error

    User and password double checked, they are ok, I'm connected to mysql with workbench without problem, but the WB is using the port 3306

    any another idea ?
     

    Attached Files:

  11. achtrade

    achtrade Active Member Licensed User

    Also, I tried to access the db using ssh

    mysql -u username -p databasename

    The connection was successful
     

    Attached Files:

  12. achtrade

    achtrade Active Member Licensed User

    What does this mean ? what is the correct port and ip ?
     

    Attached Files:

    Last edited: Jun 14, 2015
  13. achtrade

    achtrade Active Member Licensed User

    One more question: how can I check if my port 17178 is opened from outside ? if is not open, How can I open it ?

    I'm using WHM and I added the port 17178 here "Allow incoming TCP ports" and here "Allow outgoing TCP ports" and here "Allow incoming UDP ports" and here "Allow outgoing UDP ports"
    and then I restarted csf+lfd
     
  14. achtrade

    achtrade Active Member Licensed User

    this is my java program running
     

    Attached Files:

  15. Erel

    Erel Administrator Staff Member Licensed User

  16. achtrade

    achtrade Active Member Licensed User

    it says:

    HTTP request set; waiting for response

    and then:

    RemoteServer is running
    java.sql.sqlexception: connections could not be acquired from the underlying database!
     
  17. Erel

    Erel Administrator Staff Member Licensed User

    This means that the firewall is configured properly.

    The problem is between RDC and the database server. Hard to say what is the problem without access to the server.
     
  18. achtrade

    achtrade Active Member Licensed User

    I can give you access to my server
     
  19. Erel

    Erel Administrator Staff Member Licensed User

    Send me the ssh details in a private message and I'll try to check it.
     
Loading...