Uninstalling Ape Server Proper way.

123 views
Skip to first unread message

utan

unread,
Feb 28, 2012, 12:10:36 AM2/28/12
to APE Project
Hi fellows,

I want to install latest Ape git version, I have trying using apt-get
remove ape-server but it tells me that the package software its not
installed...

I have successfully copied latest version git over an existing copy of
APE 1.1.1 but just 2 files aped and libmod_spidermonkey.so but I think
that's not the proper way to do thing and I get errors like silence
mysql (no connection log) 1.1.2deb, in version 1.1.1 give an error
"undefined symbol: scramble" when I try just to run the class, I have
tried getting the old version 1.0 from deb package(while version 1.1.1
still installed) but installation spit out an error when trying to
overwrite "/etc/init.d/ape-server" .

So I think this error is happening because I still have 1.1.1
installed, (yes I have the server stopped so it can overwrite it).
Can anyone tell me how can I get rid of APE and all files from system
so I can try the old version and or the git version?..

I really want to get mysql class to work, because I want to set user
right at server level for security reasons but using ajax calls to a
file doesn't work as instantly as the mysql class would do..

When I want to set Property instantly on connection and after accessed
mysql on server side, if I do it using ajax the user has logged with
out any property set when he refreshes the page this properties has
been set, but not at login instance..

So there is milliseconds delay, on code execution in server side.. I
have somehow fixed this using my login system pass it to client
javascript and when the user name is sent to the server, sent aswell
the user right that were set on php session, but it bad because it can
be seen in plain source..

Kind help on this please

regards UTAN
Message has been deleted

utan

unread,
Feb 28, 2012, 9:39:59 AM2/28/12
to APE Project
Installed another test bed without any Ape, installed fine version 1.0
no errors at all..
but question remains, anyone know the proper way to remove Ape
server ?

hope I get an answer..
regards.

Pablo Tejada

unread,
Feb 28, 2012, 10:56:26 AM2/28/12
to ape-p...@googlegroups.com
How did you installed it? You used the build.sh script? A package?

I've only used and compiled the binary solutions but usually the same
script or package you use install is the same you use to uninstall.

Sent from my iPhone

> --
> 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/

utan

unread,
Feb 28, 2012, 12:35:05 PM2/28/12
to APE Project
Thanks Pablo,

When I try to install .deb package 1.0 over an existing copy of Ape
1.1.1 it gave me an error about overwriting " /etc/init.d/ape-server"
the installation stops..
If install from git version which is 1.1.2 compile and just copy
paste aped and libmod_spidermonkey.so from 1.1.2 to 1.1.1,

Ape.log stop working cant see no logs ,I ran mysql class and or any
string on Ape.log() and I get nothing.. reinstall 1.1.1 and ran same
code,
Ape log start again working, but this version is useless for me, no
Mysql at all..

Installed a new testbed same OS version, ran installation for 1.0 deb
and installed fine.. Just need to see if mysql works on this one.
So I need to remove everything in my main production server so I can
try to install Ape 1.0 if my testbed show me that mysql works.

Regards. UTAN
.



On Feb 28, 7:56 am, Pablo Tejada <ptejad...@gmail.com> wrote:
> How did you installed it? You used the build.sh script? A package?
>
> I've only used and compiled the binary solutions but usually the same
> script or package you use install is the same you use to uninstall.
>
> Sent from my iPhone
>

Nicolas Guibert

unread,
Feb 28, 2012, 1:01:26 PM2/28/12
to ape-p...@googlegroups.com
I believe you do not need to uninstall previous versions. 

I'd suggest download code from version 1.0.8 (see other forum posts on this, it has a fix for Mysql). From memory, I think you then need to compile it yourself and do the proper sub-compile in the mysac folder (see other threads on this) and then recompile the whole. This version will then work.

Then you can rearrange the files where you want. Someone suggested me to put everything in the same ape directory and sub-directories so that everything is in the same place. I have done it on my production site and it works fine. Everything is there and nothing elsewhere. You just need to tell the config files the right paths. There is then no need to memorize where what file is which was a nightmare for me.

I hope v2 will be organized like that by default when running a package.

Hope this helps.

utan

unread,
Feb 28, 2012, 3:43:20 PM2/28/12
to APE Project
Thanks Nicolas,

I will hunt down that information and try to do as you suggested..
After I compile that version I will need only to copy over the version
1.1.1 I guess just 2 files?

I am a bit confused..

regards.

On Feb 28, 10:01 am, Nicolas Guibert <ioa.guib...@googlemail.com>
wrote:
> I believe you do not need to uninstall previous versions.
>
> I'd suggest download code from version 1.0.8 (see other forum posts on
> this, it has a fix for Mysql). From memory, I think you then need to
> compile it yourself and do the proper sub-compile in the mysac folder (see
> other threads on this) and then recompile the whole. This version will then
> work.
>
> Then you can rearrange the files where you want. Someone suggested me to
> put everything in the same ape directory and sub-directories so that
> everything is in the same place. I have done it on my production site and
> it works fine. Everything is there and nothing elsewhere. You just need to
> tell the config files the right paths. There is then no need to memorize
> where what file is which was a nightmare for me.
>
> I hope v2 will be organized like that by default when running a package.
>
> Hope this helps.
>

Nicolas Guibert

unread,
Feb 28, 2012, 3:46:30 PM2/28/12
to ape-p...@googlegroups.com
aped and lib....so should be enough yes.

But I strongly suggest that you put everything in the same directory, you'll be glad you have done it.

Pablo Tejada

unread,
Feb 28, 2012, 4:17:12 PM2/28/12
to ape-p...@googlegroups.com
Yep, when compiling use --prefix=/path/to/install/ape/ to install ape in one directory

Sent from my iPhone

utan

unread,
Feb 28, 2012, 8:06:00 PM2/28/12
to APE Project
Thanks Nicolas and Pablo,

I found this version Server 1.1.2-dev (Build Feb 28 2012 15:30:05),
tested on production server and vmware on Ubuntu 10.04 server x32
bits.

on this link:

http://www.mail-archive.com/ape-p...@googlegroups.com/msg04419.html

the file link is:
https://github.com/APE-Project/APE_Server/tarball/fa5311f90ed21f3ff53

What I did was the following:
You can ran the command as SU or as me using SUDO and entering the
superuser password.
Install the require library
libmysqlclient15off_5.0.51a-3ubuntu5.8_i386.deb

1.- download the above version from link.
2.- untar the file.
3.- enter the folder where was untared : using command cp "folder".
4.- compile it using : sudo sh build.sh
5.- output shouldn't spit out any error.
6.- stop ape if is running sudo /etc/init.d/ape-server stop
7.- then overwrite aped and libmod_spidermonkey.so with the following
commands:
a.- sudo cp bin/aped /usr/bin/aped
b.- sudo cp modules/lib/libmod_spidermonkey.so /usr/lib/ape/
libmod_spidermonkey.so
8.- restart server : sudo /etc/init.d/ape-server start

navigate to your domain and ape port and check the version :
Server 1.1.2-dev (Build Feb 28 2012 15:30:05)

hope this helps, just as it did to me.. Again Nicolas and Pablo
appreciate your kind help

regards UTAN
Reply all
Reply to author
Forward
0 new messages