After developing an APE application for quite some time now, it was time for me to install an APE server on the future production environment.
Since it created some hassle for me, not doing THIS every day, here’s a small log that might help you (or me some time later) to do the same, Upadate your APE server to the latest git version
I’m doing this on a debian 32 bit.
Since I am lazy, I will first install the deb package so I get all the nice entries in
/etc/init.d, have the lib files placed in the correct directories…
And in a second step replace the ape version with the current one from github.
1: Install the “old” 1.0 package from the website
Download your package (like
APE_Server-1.0.i386.deb) from http://www.ape-project.org/download/APE_Server.html to the machine.
dpkg -i APE_Server-1.0.i386.deb
In case this already fails, you might need to check if there are any libraries missing (see below)
2: Get the latest version
To get the latest version from github, I usually do
svn co http://svn.github.com/APE-Project/APE_Server.git
git clone http://github.com/APE-Project/APE_Server.git
This will create a A
PE_Server.git directory in your current location. Now compile it:
3: Compile the new version
You can have different types of errors here, most of them related to the fact that you might not have all compilers or libraries installed. If this happens, try:
aptitude install make
aptitude install gcc
aptitude install g++
aptitude install python
aptitude install zip
aptitude install mysql
To be honest, I am not sure which libraries are required exactly – but this did the job for me. And if I could have installed the specific required libraries only I don’t care… as long as I get what I need.
After a finished compile (it can take a couple of seconds/minutes, warnings flying by…) you are ready to replace the existing ones.
4: Replace old files
Basically have to replace two files:
If running, stop your ape
Copy the new files from your compile dir to their designated locations:
cp bin/aped /usr/bin/aped
cp modules/lib/libmod_spidermonkey.so /usr/lib/ape/libmod_spidermonkey.so
(Paths may vary depending on system and linux distribution)
Restart your ape
If you connect to your ape server (e. g. http://127.0.0.1:6969/) with your browser, it should show you the version info with current build time
Corrections, additions, suggestions and comments welcome
After developing an APE application for quite some time now, it was time for me to install an APE server on the future production environment. Since it created some hassle...