APE Configuration using a free DNS domain

37 views
Skip to first unread message

Carlos Ruiz

unread,
Jun 8, 2015, 7:17:25 PM6/8/15
to ape-p...@googlegroups.com
Hi

I've tried to install and configure APE Server and APE JSF, using a free DNS Name:

       DNS Name          ape.linkpc.net
       Alias                 *.ape.linkpc.net       ape.linkpc.net

Then install APE Server in Centos where  i just can use port 9001 ,  my configuration in the file  ape.conf looks like this:

 Server {
        port = 9001
        daemon = no
        ip_listen = 0.0.0.0
        domain = ape.linkpc.net
        rlimit_nofile = 10000
        pid_file = /var/run/aped.pid
}


Then i'm using a standalone configuration not using apache nor httpd..., so i left the installation of APE_JSF in this structure

        APE_Server--
                           |
                           APE_JSF
                                        |
                                        Demos

The file config.js under Demos looks like this:

APE.Config.baseUrl = 'http://ape.linkpc.net:9001/APE_JSF'; //APE JSF
APE.Config.domain = 'ape.linkpc.net';
APE.Config.server = 'ape.ape.linkpc.net:9001'; //APE server URL

Starting the server as deamin under bin directory seems to work:
   _   ___ ___
  /_\ | _ \ __|
 / _ \|  _/ _|
/_/ \_\_| |___|
AJAX Push Engine

Bind on port 9001

Version : 1.1.2
Build   : Oct  3 2013 17:17:46
Author  : Weelya (con...@weelya.com)

But when i tried to check installation using:

http://ape.linkpc.net:9001/APE_JSF/Tools/Check/
or
http://ape.ape.linkpc.net:9001/APE_JSF/Tools/Check/

The server just respond ...


APE Server

No command given.



Can any one give me a clue of what could be missing in order to make APE Server work with APE JSF, in my configuration?


Regards.





 

Louis Charette

unread,
Jun 8, 2015, 7:39:05 PM6/8/15
to ape-p...@googlegroups.com
Hi,

You actually need a web server (Apache for example) to server the « JSF » as it’s actually the « website » part of APE. Ape Server only Handle the relay of informations in real time, not actually serve web pages (html, php, etc).

In simpler words, You don’t do this:

APE_Server--
                           |
                           APE_JSF
                                        |
                                        Demos

Ou do this:

APE_Server <—> Apache 
                            |
                            APE_JSF
                                        |
                                    Demos

  - Louis

--
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-p...@googlegroups.com
To unsubscribe from this group, send email to
ape-project...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

---
You received this message because you are subscribed to the Google Groups "APE Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ape-project...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Carlos Ruiz

unread,
Jun 8, 2015, 10:10:00 PM6/8/15
to ape-p...@googlegroups.com

Thank you Louis for your quick answer, i'll follow your recomendation and hope to see the APE demos working.

Regards

You received this message because you are subscribed to a topic in the Google Groups "APE Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ape-project/_kd_kH6C_94/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ape-project...@googlegroups.com.

Carlos Ruiz

unread,
Jun 9, 2015, 5:36:37 PM6/9/15
to ape-p...@googlegroups.com
Hi,

I could configure Apache with APE_JSF, and could run the Tools/Check from Demo, i end with :

Running test : Contacting APE Server
Connection etablished but something went wrong. Server response is
[{"time":"1433885378","raw":"ERR","data":{"code":"003","value":"BAD_CMD"}}]
Something went wrong. If you can't fix it by yourself post a message on the newsgroups with the output below or join our IRC channel

Then checking Git Hub Wiki Documentation found this colud be related to a DNS configuration, so i went to /etc/hosts and add

127.0.0.1 0.ape.linkpc.net
...
...
127.0.0.1 9.ape.linkpc.net

Tried again but, still having the same problem with Connection.

Then checking ape.log found this:
src/sock.c:293 - events_poll() : Interrupted system call

So i thought the problem was on the APE_Server side becuase i download the generic binary version for 64bits, so tried to built it but still have an error realted to mysql:

cannot find -lmysqlclient_r

I've installed mysqldev, i found that i have libmysqlcliente_r.so under /usr/lib64/mysql but this is a symbolic link, then change the LFLAGS in Makefile  -L/usr/lib64/mysq -lmysqlclient_r  but gcc aparentlly doesn't follow sybolic links, so i went to /etc/ld.so.conf to add the path of mysqlclient_r lib but and run ldconfig, still can build without error.

i'm trying to build in Centos 7

Any suggestion?



Thanks in Advance

Pablo Tejada

unread,
Jun 9, 2015, 7:44:38 PM6/9/15
to ape-p...@googlegroups.com

Hey Carlos,

The response BAD_CMD is a good response, that means your server was working. If you can get your server to that state then you have a working setup.

Im not 100% percent sure but some demos and the check tool might not be configured out of the box. BAD_CMD means the script that defines the command the check tool relies on was not included in your main.ape.js

Carlos Ruiz

unread,
Jun 10, 2015, 10:33:46 AM6/10/15
to ape-p...@googlegroups.com
Hi Pablo,

Thanks for your answer, i went again to the bin generic install and did look for main.ape.js and found that

There is a line including the check:

include("utils/checkTool.js"); //Just needed for the APE JSF diagnostic tool, once APE is installed you can remove it

I also tried the Move and chat Demos that are also included in main.ape.js

So i think somethin else is missing...

Regards.

 

Reply all
Reply to author
Forward
0 new messages