Installing APE on Ubuntu Server 10.10

This small tutorial was made based on the ape-project install documentation.

It summarizes things to help people get APE running on Ubunto ASAP.

Hope it helps someone who needs a good comet server up and running for yesterday :)


This small tutorial was made based on the ape-project install documentation.

It summarizes things to help people get APE running on Ubunto ASAP.

Hope it helps someone who needs a good comet server up and running for yesterday :)

The environment I have choosed to install APE was a virtual machine with this configuration:

  • Ubuntu Server 10.10 x64
  • 1GB of memory
  • 5GB of hard disk
  • ssh

1. Download the APE complete package (server and jsf)

2. You must download the libmysqlclient15off

3. To install libmysqlclient at ubuntu just type

  • 32-bits: dpkg -i libmysqlclient15off_5.0.51a-3ubuntu5.8_i386.deb
  • 64-bits: dpkg -i libmysqlclient15off_5.0.51a-3ubuntu5.8_amd64.deb

4. Now it is time to install APE server

  • 32-bits: dpkg -i APE_Server-1.0.i386.deb
  • 64-bits: dpkg -i APE_Server-1.0.amd64.deb

If you got the error message bellow, it means you forgot to install libmysql. To fix that you just have to type apt-get install -f

5. Go setup your comet server

6. Now it is time to start it

Remember that we set APE to be on port 80. Make sure you don’t have apache, nginx or other program on that port.

If you have, the server won’t start.

  • /etc/init.d/ape-server start

That’s it. You should be seeing the [OK] of victory.

If you can’t get it running try first:

  • see the log (it’s on /var/log/ape.log)
  • make sure you don’t have other program on port 80 (like apache or nginx)
  • if all fails, go take a look here
  • if still lost, go to the user group and ask for help (there are great guys there that will be glad to help)

The next step is to set up the jsf and the check utility to see your new toy working.

I’ll cover that on other post.

Tags: ,

  • Nicolas

    Hello,
    I’ve setup ape on Centos server 5.5 via Plesk 9.5, i’ve gone through the documentation over and over and i can’t find where my problem is.
    I test the configuration I recieve the error message “Can’t Contact Ape Server. Please Check that your Ape Server is Running and the following url is pointing to your APE server: http://0.ape.project.fr:6969.

    > I created the DNS :
    ape.project.fr A xx.xx.xx.xx
    *.ape.project.fr CNAME ape.project.fr

    > In my virtual host i have this (it’s generated by Plesk, i didn’t update anything)

    ServerName comet.www.youcent.fr:80
    DocumentRoot /var/www/vhosts/domain/subdomains/ape.project/httpdocs
    ….

    in my httpdocs i have the folder ape_jsf and ape_server

    > conf of ape server

    Server {
    port = 6969
    daemon = no
    ip_listen = xx.xx.xx.xx
    domain = domain.fr
    rlimit_nofile = 10000
    pid_file = /var/run/aped.pid
    }

    > conf of jsf

    APE.Config.baseUrl = ‘http://ape.project.fr/ape_jsf'; //APE JSF
    APE.Config.domain = ‘domaine.fr’;
    APE.Config.server = ‘ape.project.fr:6969′; //APE server URL

    What do I need to change in order to fix this?

    Many thanks

  • Lauthner

    where is the folder www? i need see my projects in localhost with the server APE runnin
    Thanks