|NOTE: Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and Mac OS X) or by clicking the shortcut in the Start Menu under "Start -> Bitnami APPNAME Stack -> Application console" (Windows). Learn more.|
The Bitnami Console is a script to load the Bitnami Stack environment. This console is useful to run any command included in the stack.
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 version. It is common for the same libraries (but different versions) to be already installed in your system (eg. libjpeg.so or libpng.so).
When you run a system command that is not included in the stack, this binary might need to use the system library version instead of the stack library version. In this case, you might see an error like this:
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
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, run the command using env -i to first clear the environment. For example, to run the system sendmail command from a PHP application, use this:
sendmail_path = "env -i /usr/sbin/sendmail -t -i"
What is the Bitnami Console and the Bitnami stack environment?
The Bitnami Console is a script to load the Bitnami stack environment. This console is useful to run any command included in the stack, including mysql, php, openssl, ruby, rake and others.
To run this script, execute the command below.
Linux and Mac OS X
At the console:
$ cd installdir $ ./use_APPNAME
For instance, to run it in the Bitnami WordPress Stack on Linux:
$ cd /opt/wordpress-3.0 $ ./use_wordpress
Use the shortcut in the Start menu under "Start -> Bitnami APPNAME Stack -> Application console" or "Use APPNAME Stack".
|NOTE: When running the commands shown on this page, replace the installdir placeholder with the full installation directory for your Bitnami stack.|