044806
Today
Yesterday
This Week
Last Week
This Month
Last Month
All days
35
59
350
43920
1970
1665
44806

Server Time: 2014-07-31 09:24:24
   

ECommands Installation

Details

Overview

ECommands is a software that will help you to delegate tasks to others and manage more easy your servers. Until this momment it is on alpha test but hopefully we will publish a new version of this software with more features and a module management to make it more flexible.



There are many tasks that you can do with it, and is it limited, but for now it can help a lot with basic and repetitive things.

So let start with the Installation.


Installation:

There are two ways to install it: using the source or the bin file.

Bin File

For bin file you only have to download it from here and then execute:

chmod 755 ecommands-core-<version>.bin
./ecommands-core-<version>.bin


The installation program will ask for the HTTP PORT where you can access.

Next, will ask if you want to create an administrator, you have to type 'yes', and provide an username, email and password.  

You can access through your web browser under http://<ip_address>:<port>/

It will be installed on /opt/ecommands.

Using Zip file

If you want to use the zip file you'll have to install the pre-requisites programs needed to work.

1) Install python 2.7:

Under Debian
apt-get install python python-dev

Under Windows
Just download .exe file from http://www.python.org/getit/

Set the PATH environment variable to c:\Python27\ and c:\Python27\scripts

And additionaly install will be pycrypto-2.1.0.win32-py2.7 package, you can download here

2) Download and Install setuptools, uncompress and execute

python setup.py install

3) Install pip: easy_install pip

4) Install fabric package: pip install fabric

5) Install fcrypt: pip install fcrypt

6) Install django framework: pip install Django

7) Download and uncompress the ecommands zip file.

Django has an http server included for test purpose, so you can use it to test your previous installations, just go to your ecommands uncompressed directory and run

python manage.py syncdb

It will create your Database and say yes to create an admin account. Answer all the questions. Now run,

python manage.py runserver

and then access the application using your web browser http://<ip_address:8000

Apache configuration:

You can configure your apache to access ECommands through ssl access for security reasons or just using the standard http protocol.

The basics configuration steps are:

1) Install mod_wsgi: apt-get install apache2 libapache2-mod-wsgi

2) Enable your wsgi module: a2enmod wsgi

3) Reload apache: /etc/init.d/apache2 reload

4) Configure your site: Add this to your 000-default file in /etc/apache2/sites-enabled/  and change the directory where you have your application.

WSGIDaemonProcess ecommands python-path=/opt/ecommands/ user=ecommands group=ecommands threads=15
WSGIProcessGroup  ecommands
WSGIScriptAlias / /opt/ecommands/wsgi.py

Alias /static/ /opt/ecommands/static/
Alias /media/  /opt/ecommands/media/

<Directory /opt/ecommands/static>
         Order deny,allow
         Allow from all
</Directory>

<Directory /opt/ecommands/media>
         Order deny,allow
         Allow from all
</Directory>

<Directory /opt/ecommands/>
          <Files wsgi.py>
          Order deny,allow
          Allow from all
          </Files>
</Directory>

We recommend you add security filters like IP access for apache to this url or htaccess configurations, because this kind of program can make easy administrations to your servers but you will have the administrator priviledges over the web too. So for logical and paranoid reasons it is a good practice you protect your area to allow the access only for you and other administrators.

 

   
© Life Microsystems Group - Venezuela, All rights reserved