BitNami Pootle

    Pootle is a user-friendly web portal that makes the translation process simpler. It allows online translation, work assignment, gives statistics and allows easy volunteer contribution.

    Please, take a look to the Quick Start Guide to know the basic use of this Stack.

    How to start/stop the servers?

    Graphical tool

    The Stacks include a graphical tool to manage the servers easily. You can find the "manager-windows.exe", "manager-osx" or "manager-linux" tool in your installation directory. Using this tool, you can Start, Stop or Restart the servers and check the log files. You can click on the icon to start it.

    manager-servers.png

     

    manager-osx.png

     

     

     

     

     

     

     

     

     


    win_platform.png

    On Windows: You can also start the Manager tool from shortcuts: Start -> Program Files -> BitNami Stack -> Manager tool

    Command line tool

    If you prefer, you can use the "ctlscript.sh" utility from the command line. This script is in the installation directory.

    linux_platform.png

    On Virtual Machines and Cloud images:

    $ sudo /opt/bitnami/ctlscript.sh start

    A native installer on Linux:

    $ cd ~/application-version
    $ ./ctlscript.sh start
    

    mac_platform.png

     

    On OS X: You can start the Manager tool from the installation directory or you can use the "ctlscript.sh" utility from a Terminal.

    host:~ user$ cd /Applications/application-version
    host:~ user$ ./ctlscript.sh start

    How to change the default URL?

    Automatic Approach

    This approach is based on the Bitnami Configuration Tool (bnconfig).

    Bitnami Cloud Hosting

    The best way to change your URL in BCH is to go to your application tab and modify it there. In the Bitnami Cloud Hosting console, select Servers, choose your server, Manage and go to the Applications tab. Press there the pencil next to the application which URL you want to modify and choose .

    Cloud Images and Virtual Machines

    Moving the application to /

     If your application is running in "/pootle" you can remove the prefix from the URL executing the following command:

    $ sudo /opt/bitnami/apps/pootle/bnconfig --appurl /
    

    (use --help to check if that option is available for your application)

    Now you will be able to access to the application at http://YOUR_DOMAIN instead of http://YOUR_DOMAIN/pootle.

    Updating the IP or hostname

    Some applications require to update the IP/domain if the machine IP/domain changes. The bnconfig tool also has an option which updates the IP automatically during boot, called machine_hostname (use --help to check if that option is available for your application). Note that this tool changes the URL to http://NEW_DOMAIN/pootle

    sudo /opt/bitnami/apps/pootle/bnconfig --machine_hostname NEW_DOMAIN
    

    If you already moved your application to the root URL you should include both options at the same time.

    sudo /opt/bitnami/apps/pootle/bnconfig --appurl / --machine_hostname NEW_DOMAIN

     

    If you have configured your machine to use an static domain name or IP, you should rename or remove the "/opt/bitnami/apps/pootle/bnconfig" file.

    sudo mv /opt/bitnami/apps/pootle/bnconfig /opt/bitnami/apps/pootle/bnconfig.disabled

     

    Native Installer

    Remember to use your actual installation directory instead of installdir.

    Moving the application to /

    If your application is running in "/pootle" you can remove the prefix from the URL executing the following command:

    On Linux,

    installdir/apps/pootle/bnconfig --appurl /
    

    On Mac OS X, 

    installdir/apps/pootle/bnconfig.app/Contents/MacOS/installbuilder.sh --appurl /
    

    On Windows,

    installdir/apps/pootle/bnconfig.exe --appurl /
    

    (use --help to check if that option is available for your application)

    Now you will be able to access to the application at http://YOUR_DOMAIN instead of http://YOUR_DOMAIN/pootle.

    Updating the IP or hostname

    Some applications require to update the IP/domain if the machine IP/domain changes. The bnconfig tool also has an option which updates the IP automatically during boot, called machine_hostname (use --help to check if that option is available for your application). Note that this tool changes the URL to http://NEW_DOMAIN/pootle.

    installdir/apps/pootle/bnconfig --machine_hostname NEW_DOMAIN
    

    If you already moved your application to the root URL you should include both options at the same time.

    installdir/apps/pootle/bnconfig --appurl / --machine_hostname NEW_DOMAIN
    

     

    If you have configured your machine to use an static domain name or IP, you should rename or remove the "/opt/bitnami/apps/pootle/bnconfig" file.

    mv installdir/apps/pootle/bnconfig installdir/apps/pootle/bnconfig.disabled
    

    Tabs end

    Manual Approach

    If you want to change the default URL from "http://your_domain/pootle" to "http://your_domain you need to follow the steps below.

    1. Stop the servers

    2. Edit /installdir/apps/pootle/conf/httpd-app.conf to point to / instead of /pootle

      WSGIScriptAlias / "/opt/bitnami/apps/pootle/scripts/pootle.wsgi"
      
      Alias /assets "/opt/bitnami/apps/pootle/lib/pootle/assets"
      Alias /static "/opt/bitnami/apps/pootle/lib/pootle/static"
      
    3. Edit /installdir/apps/pootle/etc/pootle_settings.conf to point to / instead of /pootle

      STATIC_URL = '/assets/'
      
    4. Start the servers

    How to configure the email settings of Pootle?

    You just need to edit the settings file in: 

    /installdir/apps/pootle/etc/pootle/localsettings.py
    

    ("installdir" is "/opt/bitnami" in virtual machines and cloud images)

    Uncomment the EMAIL parameters and set the values for your SMTP settings. For example, you can use a GMail account to send the outgoing emails as follows:

    #Mail settings
    
    # Address used for messages sent by Pootle.
    DEFAULT_FROM_EMAIL = 'USER@gmail.com'
    
    # Mail server settings
    
    # By default Pootle uses SMTP server on localhost, if the server is
    # not configured for sending emails use these settings to setup an
    # external outgoing SMTP server.
    
    # Example for Google as an external SMTP server
    EMAIL_HOST_USER = 'USER@gmail.com'
    EMAIL_HOST_PASSWORD = 'YOUR_PASSWORD'
    EMAIL_HOST = 'smtp.gmail.com'
    EMAIL_PORT = 587
    EMAIL_USE_TLS = True
    

    How can I enable user registration?

    After the installation although your application will be up and running, external users will not be able to register. You will need to configure the email settings (see above).

    How to enable SSL?

    You can see how to configure Apache to enable SSL connections at How to enable SSL to access through https?

    How to use Pootle administration commands?

    You can use Pootle administration commands through django-admin.py but you need to specify Pootle path and Pootle settings. An example to use the command refresh_stats could be:

    /installdir/python/bin/python /installdir/apps/django/bin/django-admin.py refresh_stats --settings=pootle.settings --pythonpath=/installdir/apps/pootle/lib/

    If you are using the Virtual Appliance or the AMI, the installdir is /opt/bitnami.

    How to install Xapian to enable search feature?

    Xapian is an Open Source Search Engine Library, released under the GPL. If this module is not in your Stack, you can install it manually. These are the steps to install it in an Ubuntu machine.

    ### Get the latest sources ###
     $ wget http://oligarchy.co.uk/xapian/1.2.12/xapian-core-1.2.12.tar.gz
     $ wget http://oligarchy.co.uk/xapian/1.2.12/xapian-bindings-1.2.12.tar.gz
    
     $ sudo su
    
     ### Decompress Xapian tarbals ###
     $ tar zxf xapian-core-1.2.12.tar.gz
     $ tar zxf xapian-bindings-1.2.12.tar.gz
    
     ### Install dependencies ###
     $ sudo apt-get update
     $ sudo apt-get install gcc g++ make
     $ sudo apt-get install uuid-dev
    
     ### Load the BitNami environment ###
     (notice the space between the dot and the path to the script)
     $ . /opt/bitnami/scripts/setenv.sh 
     $ export LDFLAGS=-L/opt/bitnami/common/lib
     $ export CPPFLAGS=-I/opt/bitnami/common/include
    
     ### Compile xapian-core and xapian-bindings ###
     $ cd xapian-core-1.2.12
     $ ./configure --prefix=/opt/bitnami/common
     $ make
     $ sudo make install
     $ cd ../xapian-bindings-1.2.12
     $ ./configure --prefix=/opt/bitnami/common --with-python
     $ make
     $ sudo make install
    
     ### Restart your servers ####
     $ /opt/bitnami/ctlscript.sh restart
    
    Tag page (Edit tags)
    • No tags
    Page statistics
    19240 view(s), 18 edit(s) and 5414 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments