Edge Server Setup
If installation fails or if you require any other assistance, please drop us a ticket at support.aflexi.net
You might also prefer following through the helpful Edge Server wizard.
Prepare Edge server with the prerequisites.
Debian 5.0 Lenny or above
- Perform a normal install (no dselected tasks)
- apt-get install python
Ubuntu 8.0.4.3 Server or above
- Perform a normal install
CentOS 5.3 or above
- Perform a normal install (no selected tasks)
- Disable SELinux: vi /etc/selinux/config and set SELINUX=disabled
Step 1

Add the Physical Location of the server by going to Edge Servers > Add Location. This only applies if the location has not been added before. Type the first few letters of a geographical location and a drop down list would appear. Provide a name for the location.


Step 2
After adding the Location, confirm that the locations can be seen via Edge Servers > List Locations.

Step 3

Add the details of the server by going to Edge Servers > Add Edge Server. If the Service IP is different from the Public IP, key in the Service IP address.

Assign a delivery mode to the Edge server by using the select list as below...
HTTP Pull mode...

HTTP Pull and Push (only available if a DFS server is set up)...

Live streaming only (requires a Wowza key)...

HTTP Pull and Live streaming mode (requires a Wowza key)...

Select an architecture (x86-32 for 32-bit or x86-64 for 64-bit) before clicking the Add Edge Server button to add the server and proceed to the next step...

Step 4
Take note that If you are running edge server on an openvz environment, you are required to run these command as root on your host machine before installing the CDN script.(replace VEID with your own VEID number)
- vzctl set VEID --kmemsize unlimited --privvmpages unlimited --numproc unlimited --shmpages unlimited --save
After creating an Edge Server in the portal, there will appear a link to download the installer and steps to install it. At this point, if it is not encouraged to download and upload via the link, login to the server via the console or Terminal and execute the following commands in there...
- wget http://packages.service.aflexi.com/opt/aflexi-edge-setup.tar.gz && tar -zxf aflexi-edge-setup.tar.gz
- cd aflexi-edge-setup
- As root (su - OR sudo -i), run ./aflexi-setup
- Read and accept the EULA
- Enter the Aflexi portal account login and password
- Enter the installation directory (e.g. /home/aflexi)
Matching this server against the list of your edge servers.. * Found match - surrogate ID xx * Surrogate ID yy did not match Enter the installation directory: /home/aflexi Beginning installation. You can tail -f the logfile to monitor progress from this point. Running debootstrap. This will take awhile.. Mounting /proc in chroot Running apt-get update Initializing puppet warning: peer certificate won't be verified in this SSL session Installing init script. Ensure that you chkconfig or update-rc.d to configure this service to start at boot. Starting Aflexi Edge..
Step 5
After installation, the details of the newly added Edge servers can be seen as such:

Edge servers can also be edited from this list. Simply hover the mouse on the server name, and a list of links will appear underneath. Choose Edit, and the form should take a similar appearance to the Add Edge Server form, but with some values pre-filled.
Now, proceed and add new customers and add new bandwidth packages.


