BitNami console

    BitNami console is a script to load the Stack environment. This console is useful to run any command included in the Stack: mysql, php, openssl, ruby, rake among others. 

    linux_platform.png On Linux:

    $ cd installdir
    $ ./use_application
    

    For instance, in Wordpress Stack:

    $ cd /opt/wordpress-3.0
    $ ./use_wordpress
    

    win_platform.png On Windows:

    There is a shortcut in Start -> BitNami Application Stack -> "Application console" or "Use Application Stack"

    mac_platform.png On OS X:

    Open a Terminal and type the following:

    hostname:~ user$ cd /Applications/application-version
    hostname:~ user$ ./use_application
    

    For instance, in Wordpress Stack:

    hostname:~ user$ cd /Applications/wordpress-3.0
    hostname:~ user$ ./use_wordpress
    

    Note: If you are using BitNami Cloud Hosting, a virtual machine or a Cloud image the Stack environment is loaded by default and you don't need to start the console.

    How to run a system command without the stack environment?

    Bitnami stacks ship all the requirements and libraries necessary for deploying a web application. All the binaries in the stack are linked to these libraries and they require to use that version. It is usual the same libraries but different version are already installed in your system, f.e. libjpeg.so or libpng.so. 

    If you want to run a system command that is not included in the stack, it is possible that this binary requires to use the system library instead of the stack library version. It is possible you see a similar error like the following:

    Symbol not found: __cg_jpeg_resync_to_restart Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO Expected in: /opt/local/lib/libJPEG.dylib

    or

    Can't load '/opt/bitnami/perl/lib/5.8.8/x86_64-linux/auto/File/Glob/Glob.so' for module File::Glob: /opt/bitnami/perl/lib/5.8.8/x86_64-linux/auto/File/Glob/Glob.so: undefined symbol: PL_sv_undef at /opt/bitnami/perl/lib/5.8.8/x86_64-linux/XSLoader.pm line 70.

    In this case it is useful to run the command using "env -i" to clear the environment. For example, if you want to run a system command from a PHP application (f.e. "sendmail"):

    sendmail_path = "env -i /usr/sbin/sendmail -t -i"

    Comments

    You must login to post a comment.

    Attach file

    Attachments