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?

    Cloud Images

    Each Bitnami stack includes a control script that lets you easily stop, start and restart servers.

    The script is located at /opt/bitnami/ctlscript.sh. Call it without any arguments to restart all services:

    $ sudo /opt/bitnami/ctlscript.sh start
    

    Or use it to restart a specific service only by passing the service name as argument - for example 'mysql':

    $ sudo /opt/bitnami/ctlscript.sh restart mysql
    

    Virtual Machine

    Each Bitnami stack includes a control script that lets you easily stop, start and restart servers.

    The script is located at /opt/bitnami/ctlscript.sh. Call it without any arguments to restart all services:

    $ sudo /opt/bitnami/ctlscript.sh start
    

    Or use it to restart a specific service only by passing the service name as argument - for example 'mysql':

    $ sudo /opt/bitnami/ctlscript.sh restart mysql
    

    Native Installer

    You can use either the graphical manager tool or the command-line tool to start and stop the servers.

    Graphical Tool

    Bitnami stacks include a graphical tool to manage the servers easily (native installers only). Using this tool, you can start, stop and restart the servers and check the log files.

    manager-servers.png

     

     

     

     

     

     

     

     

     

     

    On Windows:

    • Double-click the "manager-windows.exe" file in your installation directory.  
    • You can also start the Manager tool using the Start Menu path Start -> Program Files -> Bitnami Stack -> Manager.

    On Linux and Mac OS X:

    • Double-click the "manager-osx" or "manager-linux-*" tool in your installation directory. 
    Command-line Tool

    Each Bitnami stack includes a control script that lets you easily stop, start and restart servers.

    The control script is only available for Linux and Mac OS X native installers. The script is located in your installation directory and named ctlscript.sh. Call it without any arguments to restart all services.

    On Linux:
    If your installation directory is /home/USER/wordpress-4.0.1-0, call the control script with the ‘start’ argument to start all servers. For example:

    $ cd /home/USER/wordpress-4.0.1-0
    $ ./ctlscript.sh start
    

    Or use it to restart a specific service only by passing the service name as argument - for example 'mysql':

    $ cd /home/USER/wordpress-4.0.1-0
    $ ./ctlscript.sh restart mysql
    

    On Mac OS X:
    If your installation directory is /Applications/wordpress-4.0.1-0, call the control script with the ‘start’ argument to start all servers. For example:

    $ cd /Applications/wordpress-4.0.1-0
    $ ./ctlscript.sh start
    

    Or use it to restart a specific service only by passing the service name as argument - for example 'mysql':

    $ cd /Applications/wordpress-4.0.1-0
    $ ./ctlscript.sh restart mysql
    

    Tabs end

    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 .

    Refer to this guide for more information.

    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 , 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
    

    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
    25555 view(s), 18 edit(s) and 5414 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments