From Ape Wiki

Jump to: navigation, search

Contents

[edit] Simple APE Configuration

In order to work, APE needs a special DNS configuration, but the simple configuration works with a special domain "local.ape-project.org" that points to 127.0.0.1. If you want to install APE on your local computer without configuring your DNS, and thus save you some time, use this configuration.

If you use this configuration, you must use http://local.ape-project.org for access to all your applications using APE.

[edit] Run your APE Server

You can now run your APE Server. To run the APE Server:

If you installed APE from source simply go to the /bin/ folder and launch :

APE:~/APE_Server/bin/# ./aped

If you use a debian package your APE server is already launched. You have to restart it for the configuration change to take effect.

APE:~# /etc/init.d/ape-server restart

If you installed the APE Server through a RPM package, you have to launch APE and specify the config file:

APE:~# /usr/bin/aped --cfg /etc/ape/ape.conf


That's it! The APE Server is now ready to be used! :) If you have issues running your APE Server, you might want to check this page : APE server does not start

[edit] Install APE JSF

Your APE server is now running. It's time to setup the APE JavaScript Framework and check that your APE server is working.

[edit] Adding Server Alias in Apache Configuration

Add to your apache2 virtualhost the following line :

ServerAlias local.ape-project.org
ServerAlias *.local.ape-project.org

Or create a new VirtualHost :

<VirtualHost *>
        ServerName local.ape-project.org
        ServerAlias ape.local.ape-project.org
        ServerAlias *.ape.local.ape-project.org
 
        DocumentRoot "/directory/of/your/choice/"
</VirtualHost>

By default on debian, default virtualhost file is located in /etc/apache2/sites-available/default

[edit] Configure APE JSF

Copy all the files in the APE JSF folder into the VirtualHost directory you just created.

[edit] Test your installation

Now you can open your browser to http://local.ape-project.org/ape-jsf/Tools/Check/ this tool will perform some check and verify your APE server is correctly setup and help you to find what is going wrong. If your installation is not working and you can't find why :

[edit] What next?

Now you can try the APE demo, hack it and/or read some APE Tutorials. Let your imagination do cool things :)