Bitnami AMP Stacks

    Bitnami AMP Stacks greatly simplify the development and deployment of PHP applications. A Bitnami stack is a preconfigured environment that is available as native installers, virtual machines and cloud servers. AMP stands for Apache+MySQL+PHP and is the generic name for platform-specific stacks, as described on this page.

    If you are interested in working with the PostgreSQL database instead of MySQL, there is also a Bitnami APP Stack (Apache+PHP+PostgreSQL) available that includes PostgreSQL in place of MySQL.

    How do I get the Bitnami AMP Stack?

    Cloud Server

    Bitnami cloud images extend stack appliances to run in a cloud computing environment. You can run Bitnami applications on a pay-as-you-go basis, programmatically starting and stopping them. Bitnami cloud images are currently available for Amazon EC2Microsoft AzureVMware vCloud AirGooogle Cloud Platform, and DigitalOcean, with support for additional cloud environments planned for the future.

    Virtual Machine/Native Installer

    The full name of the Bitnami AMP Stack depends on the platform: WAMP for Windows, MAMP for Mac OS X and LAMP for Linux. There also available Bitnami APP stacks that ships PostgreSQL instead of MySQL. You can download the specific stack for your operating system using the links below:

    Windows: WAMP  WAPP

    OS X: MAMP MAPP

    Linux: LAMP LAPP

    The Bitnami AMP Stack is distributed free of charge under the Apache 2.0 license.

    Which components are installed with AMP Stacks?

    The Bitnami AMP Stack ships the components listed below. If you want to know which specific version of each component is bundled in the stack you are downloading, check the README.txt file in the download page or in the Stack installation directory. You can also find more information about each component using the links below.

    Main components:

    • PHP scripting languange
    • Apache Web server
    • MySQL database server
    • phpMyAdmin web application management tool for MySQL database
    • PostgreSQL database sever (optional)
    • phpPgAdmin web application management tool for PostgreSQL (optional)

    Optional frameworks for development:

    Dependencies and additional components:

    • Varnish proxy cache server
    • ImageMagick tool
    • SQLite database
    • ModSecurity module
    • XDebug module
    • Xcache module
    • OAuth module
    • Memcache module
    • FastCGI module
    • APC module
    • GD library
    • OpenSSL library
    • CURL library
    • OpenLDAP library
    • PEAR and PECL package manager tools

    How do I log in into my server?

    Follow the instructions below for your platform.

    Bitnami Cloud Hosting

    Refer to these instructions.

    Microsoft Azure

    Refer to these instructions.

    Google Cloud Platform

    Refer to these instructions.

    Virtual Machine

    Refer to these instructions.

    Native Installer

    The native installer does not create any additional accounts on your system. Log in with your usual credentials.

    How do I start and stop the servers?

    Each AMP Stack ships several servers that must be started before you will be able to work with them By default, the MySQL database and Apache Web servers are automatically started after installation.

    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 can I get started with the Bitnami AMP Stack?

    Once the installation or deployment finishes, you can access the welcome page from your browser.

    Cloud Server

    Access the Bitnami AMP Stack via your browser at http://[server-IP-address]/.

    Virtual Machine

    Access the Bitnami AMP Stack via your browser at http://[server-IP-address]/.

    Native Installer

    Access the Bitnami AMP Stack via your browser at http://localhost (Windows) or http://localhost:8080 (Mac OS X and Linux).

    Tabs end

    Regardless of how you access it, you should see a page similar to the examples below:

     

    welcome-lamp.png

    How can I deploy my PHP application?

    Cloud Server

    The main directory to deploy your PHP application is /opt/bitnami/apache2/htdocs You can copy your PHP application files to that directory and access to the application via your browser at http://[server-IP-address]/.

    You can see how to upload the applications files to your server here

    Native Installer

    The main directory to deploy your PHP application is /installdir/apache2/htdocs. You can copy your PHP application files to that directory and access to the application via your browser at http://localhost (Windows) or http://localhost:8080 (Mac OS X and Linux).

    Tabs end

    How can I check the PHP configuration with phpinfo?

    Some versions of the Bitnami AMP Stack include a docs/ folder in the installation directory that contains some PHP examples. Among these is a phpinfo.php script that shows the current PHP configuration and is typically used to check that PHP was installed correctly. In order to be able to access it, follow these steps for your platform:

    Cloud Server

    1. Copy the phpinfo.php script from the installation directory to a publicly accessible location under the Web server document root.

    $ cd /opt/bitnami
    $ cp docs/phpinfo.php apache2/htdocs
    

    2. Browse to http://[server-IP-address]/phpinfo.php

    Native Installer

    1. Copy the phpinfo.php script from the installation directory to a publicly accessible location under the Web server document root. In this case, we assume the installation directory is /home/user/lampstack.

    $ cd /home/user/lampstack
    $ cp docs/phpinfo.php apache2/htdocs
    

    2. Browse to http://localhost/phpinfo.php (Windows) or http://localhost:8080/phpinfo.php (Linux and Mac OS X).

    Tabs end

    You should see something like the page below, which contains detailed information on your PHP deployment.

    How can I add applications on top of AMP?

    Bitnami Native Installers come in two formats: stand-alone Stacks and Modules. If you only want to install one Bitnami-packaged application, then just download and install the Stack. It will contain everything you need to run the application.

    If you want to run more than one application, you can install several application Modules on top of it. That way, all of the Bitnami-packaged applications you want to run will share a single instance of Apache, MySQL and PHP, which will save space and improve performance.

    nuevo_php_stacks.jpg 

    You can download and install any PHP-based Bitnami application, including WordPress, Joomla!, Drupal, SugarCRM and others, on top of an existing Bitnami AMP Stack deployment. Depending on your platform, use the links below to find suitable applications:

    For Cloud Servers, Virtual Machines and LAMP: http://bitnami.com/stack/lamp/modules

    WAMP: http://bitnami.com/stack/wamp/modules

    MAMP: http://bitnami.com/stack/mamp/modules

    Once you have downloaded the application module, follow the steps below to install it for your chosen platform.

    Cloud Server

    NOTE: If you’re using Bitnami Cloud Hosting and have an existing server, you can also add applications to your server from the Bitnami Cloud Hosting console.

    1. Change to the directory containing the downloaded module and make it executable. Then, execute the installation script. For example, if you're installing WordPress, you would use commands similar to the following:

    $ cd /tmp
    $ chmod +x ./bitnami-wordpress-*-module-linux-x64-installer.run
    $ sudo ./bitnami-wordpress-*-module-linux-x64-installer.run
    

     

    NOTE: Bitnami offers both 32-bit and 64-bit versions of application modules. Use the version appropriate for your platform. If you’re not sure whether you’re running a 32-bit or 64-bit operating system, use the uname -a command.

    2. During the installation process, you will need to specify the installation directory of your Bitnami AMP Stack. On Bitnami Cloud Hosting, the installation directory is /opt/bitnami.

    3. During the installation process, you will also need to specify the MySQL root password.

     - If you’re using Bitnami Cloud Hosting you can obtain this from the "Servers -> Manage Server" page of your Bitnami Cloud Hosting dashboard, under the "Application Password" section.

    - If you are using Bitnami Launchpad for any Cloud provider you can obtain credentials by selecting "Show" under "Credentials".

    4. After the installation process is complete, access the installed application by browsing to http://[server-IP-address]/[application-name]. For example, if you have installed WordPress, you can access it at http://[server-IP-address]/wordpress.

    Virtual Machine

    1. Change to the directory containing the downloaded module and make it executable. Then, execute the installation script. For example, if you're installing WordPress, you would use commands similar to the following:

    $ cd /tmp
    $ chmod +x ./bitnami-wordpress-*-module-linux-x64-installer.run
    $ sudo ./bitnami-wordpress-*-module-linux-x64-installer.run
    

    2. During the installation process, you will need to specify the installation directory of your Bitnami AMP Stack. On virtual machines, the installation directory is /opt/bitnami.

    3. During the installation process, you will also need to specify the MySQL root password. On virtual machines, the default password is "bitnami".

    4. After the installation process is complete, access the installed application by browsing to http://[virtual-server-IP-address]/[application-name]. For example, if you have installed WordPress, you can access it at http://[virtual-server-IP-address]/wordpress.

    Native Installer

    When installing an application module with the native installer, you can either double-click it to start the installation process (if you're using a system with a graphical user interface) or execute the installation script from the server console.

    Graphical Installation

    1. Change to the directory containing the downloaded module and double-click the module file to start the installation process.

    2. During the installation process, you will need to specify the installation directory of your Bitnami AMP Stack. The installation directory is the one selected by you during the Bitnami AMP Stack installation process. Find out more about the default installation directory for your platform.

    module-installdir.png

    3. During the installation process, you will also need to specify the MySQL root password. The password is the same one specified by you during the Bitnami AMP Stack installation process.

    module-password.png

     

    4. After the installation process is complete, access the installed application by browsing to http://localhost/[application-name] (Windows) or http://localhost:8080/[application-name] (Linux and Mac OS X). For example, if you have installed WordPress, you can access it at http://localhost/wordpress (Windows) or http://localhost:8080/wordpress (Linux and Mac OS X).

    Console Installation

    1. Change to the directory containing the downloaded module and make it executable. Then, execute the installation script. For example, if you're installing WordPress, you would use commands similar to the following:

    $ cd /tmp
    $ chmod +x ./bitnami-wordpress-*-module-linux-x64-installer.run
    $ sudo ./bitnami-wordpress-*-module-linux-x64-installer.run
    

    2. During the installation process, you will need to specify the installation directory of your Bitnami AMP Stack. The installation directory is the one selected by you during the Bitnami AMP Stack installation process. Find out more about the default installation directory for your platform

    3. During the installation process, you will also need to specify the MySQL root password. The password is the same one specified by you during the Bitnami AMP Stack installation process.

    4. After the installation process is complete, access the installed application by browsing to http://localhost/[application-name] (Windows) or http://localhost:8080/[application-name] (Linux and Mac OS X). For example, if you have installed WordPress, you can access it at http://localhost/wordpress (Windows) or http://localhost:8080/wordpress (Linux and Mac OS X).

    Tabs end

    What are the "development" and "production" modes for applications?

    Some applications can be configured in either "development" or "production" mode:

    • Production mode:  File permissions and configuration settings are set with security and performance in mind. Installing certain plugins, themes and updates may require manual changes or installation of additional services like FTP.  This mode is recommended if the stack will be deployed on a public server.

    Applications are configured using production mode for Bitnami Virtual Machines and Cloud Servers by default. These servers already include a local FTP server (vsftpd) that it is only available for local connections (not remote connections). Some applications like WordPress, Joomla!, Magento or Drupal are configured to use this server to download and install plugins, themes or any extension.

    If you install a module or stack and select production mode, these applications will request an FTP account in order to download their extensions. If you already have an FTP server on your machine, use this mode.

    • Development mode: File permissions and configuration settings are not optimal from a security standpoint but make it easy to install plugins, themes and updates for certain applications. This mode is recommended for development purposes or for use on a private company network or intranet.

    How can I create a custom PHP application to deploy it in a sub-URI?

    Many users run a Bitnami AMP Stack as a development environment for their own PHP projects (as opposed to running third-party applications such as Joomla! or WordPress). To add your PHP application to the Bitnami AMP Stack, you have two options:

    1. To make a single PHP application accessible at the root URL of the Bitnami AMP Stack's Web server (for example, http://localhost/), simply copy your PHP files into the installdir/apache2/htdocs folder. For an example, take a look at phpinfo.

    2. To have several applications running on the Bitnami AMP Stack, create the same structure used by Bitnami when installing Bitnami PHP applications. Recent versions of the Bitnami AMP Stack ship a demo application with this structure to help you get started. To use this, follow the steps below:

    a. Copy the installdir/docs/demo folder into the installdir/apps directory.

    b. Add the following line to the end of the installdir/apache2/conf/bitnami/bitnami-apps-prefix.conf file:

    Include "installdir/apps/demo/conf/httpd-prefix.conf"
    

    Remember to substitute installdir with the actual installation directory of your Bitnami AMP Stack.

    c. Restart the Apache server using either the graphical Manager tool or the command-line tool in your installation directory.

    You should now be able to access the demo application at http://localhost/demo or http://localhost:8080/demo. You should see a "Hello world" message in your browser.

    Learn more about the Bitnami PHP application structure.

    How can I access phpMyAdmin or phpPgAdmin?

    phpMyAdmin and phpPgAdmin are popular web-based management tools for the MySQL and PostgreSQL databases.

    For security reasons, these applications are accessible only when using 127.0.0.1 as the hostname. To access them from a remote system, you must create an SSH tunnel that routes requests to the Apache Web server from 127.0.0.1. This implies that you must have an SSH private key and be able to connect to your server over SSH in order to access these applications remotely.
     

    IMPORTANT: Before following the steps below, ensure that your Apache and MySQL/PostgreSQL servers are running.

     

    NOTE: The steps below suggest using port 8888 for the SSH tunnel. If this port is already in use by another application on your local machine, replace it with any other port number greater than 1024 and modify the steps below accordingly. Similarly, if you have enabled Varnish, your stack's Apache Web server might be running on port 81. In this case, modify the steps below to use port 81 instead of port 80 for the tunnel endpoint.

     

    Follow the steps below for your platform.

    Bitnami Cloud Hosting

    On Windows:

    • Make sure you can log in to the server using PuTTY. Refer to these instructions for more information.
    • Open a new SSH session to the server and in the PuTTY settings for the new session, click "Connection → SSH → Tunnels" section and create a secure tunnel for the phpMyAdmin application by forwarding source port "8888" to destination port "localhost:80".
    • Click the "Add" button to add the secure tunnel configuration to the session.

    • Go back to the "Session" section and save your changes by clicking the "Save" button.
    • Click the "Open" button to open a new SSH session to the server.

    On Linux and Mac OS X:

    $ ssh -N -L 8888:127.0.0.1:80 -i bitnami-hosting.pem bitnami@xyz.bitnamiapp.com
    

    Remember to replace 'bitnami-hosting.pem' in the previous commands with the path to your private key file, and 'xyz.bitnamiapp.com' with the public IP address or hostname of your server. Note that if successful, this command will create an SSH tunnel but will not display any output on the server console.

    While the tunnel is active, you should be able to access phpMyAdmin and phpPgAdmin through the secure SSH tunnel you created, by browsing to http://127.0.0.1:8888/phpmyadmin and http://127.0.0.1:8888/phppgadmin respectively.

    To log in, use username 'root' for phpMyAdmin or 'postgres' for phpPgAdmin. For the application password, refer to the "Servers -> Manage Server" page of your Bitnami Cloud Hosting dashboard, under the "Application Password" section.

    Refer to this page for more information on obtaining application credentials.

    Microsoft Azure

    On Windows:

    • Make sure you can log in to the server using PuTTY. Refer to these instructions for more information.
    • Open a new SSH session to the server and in the PuTTY settings for the new session, click "Connection → SSH → Tunnels" section and create a secure tunnel for the phpMyAdmin application by forwarding source port "8888" to destination port "localhost:80".
    • Click the "Add" button to add the secure tunnel configuration to the session.

    • Go back to the "Session" section and save your changes by clicking the "Save" button.
    • Click the "Open" button to open a new SSH session to the server.

    On Linux and Mac OS X:

    $ ssh -N -L 8888:127.0.0.1:80 bitnami1@xyz.cloudapp.net
    

    Remember to replace 'bitnami1' with the SSH username from your credentials pair and 'xyz.cloudapp.net' with the public IP address or hostname of your server. Note that if successful, this command will create an SSH tunnel but will not display any output on the server console.

    While the tunnel is active, you should be able to access phpMyAdmin and phpPgAdmin through the secure SSH tunnel you created, by browsing to http://127.0.0.1:8888/phpmyadmin and http://127.0.0.1:8888/phppgadmin respectively.

    To log in, use username 'root' for phpMyAdmin or 'postgres' for phpPgAdmin and password 'bitnami'.

    Google Cloud Platform

    On Windows:

    • Make sure you can log in to the server using PuTTY. Refer to these instructions for more information.
    • Open a new SSH session to the server and in the PuTTY settings for the new session, click "Connection → SSH → Tunnels" section and create a secure tunnel for the phpMyAdmin application by forwarding source port "8888" to destination port "localhost:80".
    • Click the "Add" button to add the secure tunnel configuration to the session.

    • Go back to the "Session" section and save your changes by clicking the "Save" button.
    • Click the "Open" button to open a new SSH session to the server.

    On Linux and Mac OS X:

    $ ssh -N -L 8888:127.0.0.1:80 -i bitnami-gce-project-name.pem bitnami@100.101.102.103

    Remember to replace 'bitnami-gce-project-name.pem' in the previous commands with the path to your private key file, and '100.101.102.103' with the public IP address or hostname of your server. Note that if successful, this command will create an SSH tunnel but will not display any output on the server console.

    While the tunnel is active, you should be able to access phpMyAdmin and phpPgAdmin through the secure SSH tunnel you created, by browsing to http://127.0.0.1:8888/phpmyadmin and http://127.0.0.1:8888/phppgadmin respectively.

    To log in, use username 'root' for phpMyAdmin or 'postgres' for phpPgAdmin. For the application password, follow the steps below:

    • Browse to the Bitnami Launchpad for Google Cloud Platform dashboard and sign in if required using your Bitnami account.
    • Select the "Virtual Machines" menu item.
    • Select your Bitnami AMP Stack server from the resulting list.
    • Obtain credentials by selecting "Show" under "Credentials".

    Refer to this page for more information on obtaining application credentials.

    Virtual Machine

    On Windows:

    • Make sure you can log in to the server using PuTTY. Refer to these instructions for more information.
    • Open a new SSH session to the server and in the PuTTY settings for the new session, click "Connection → SSH → Tunnels" section and create a secure tunnel for the phpMyAdmin application by forwarding source port "8888" to destination port "localhost:80".
    • Click the "Add" button to add the secure tunnel configuration to the session.

    • Go back to the "Session" section and save your changes by clicking the "Save" button.
    • Click the "Open" button to open a new SSH session to the server.

    On Linux and Mac OS X:

    $ ssh -N -L 8888:127.0.0.1:80 bitnami@192.168.1.1
    

    Remember to replace '192.168.1.1' with the network IP address or hostname of your virtual server. Note that if successful, this command will create an SSH tunnel but will not display any output on the server console.

    While the tunnel is active, you should be able to access phpMyAdmin and phpPgAdmin through the secure SSH tunnel you created, by browsing to http://127.0.0.1:8888/phpmyadmin and http://127.0.0.1:8888/phppgadmin respectively.

    Alternative Approach: Allow Access from All Hosts

    Alternatively, if you are running the virtual machine in a secure environment, you can enable access to phpMyAdmin and phpPgAdmin from hosts other than 127.0.0.1 by editing the /opt/bitnami/apps/phpmyadmin/conf/httpd-app.conf file and modifying the Allow and Require directives as below:

      Default directive Modified directive
    Apache 2.2 Allow from 127.0.0.1 Allow from all
    Apache 2.4+ Require local Require all granted

    You can also use the example configuration file below if you wish:

     <IfDefine USE_PHP_FPM>
        <Proxy "unix:/opt/bitnami/php/var/run/phpmyadmin.sock|fcgi://phpmyadmin-fpm" timeout=300>
        </Proxy>
    </IfDefine>
    <Directory "/opt/bitnami/apps/phpmyadmin/htdocs">
    
    # AuthType Basic                                                                                                                                          
    # AuthName phpMyAdmin                                                                                                                                     
    # AuthUserFile "/opt/bitnami/apache2/users"                                                                                           
    # Require valid-user                                                                                                                                      
    AllowOverride None
    
    <IfModule php5_module>
            php_value upload_max_filesize 80M
    php_value post_max_size 80M
    </IfModule>
    
    <IfVersion < 2.3 >
    Order allow,deny
    Allow from all
    Satisfy all
    </IfVersion>
    <IfVersion >= 2.3>
    Require all granted
    </IfVersion>
    ErrorDocument 403 "For security reasons, this URL is only accesible using localhost (127.0.0.1) as the hostname"
    
    
        <IfDefine USE_PHP_FPM>
           <FilesMatch \.php$>
             SetHandler "proxy:fcgi://phpmyadmin-fpm/"
           </FilesMatch>
        </IfDefine>
    
    </Directory>
    

    Restart Apache to have the changes take effect:

    $ cd /opt/bitnami
    $ sudo ./ctlscript.sh restart apache
    

    You should now be able to access phpMyAdmin and phpPgAdmin by browsing to http://[virtual-machine-IP-address]/phpmyadmin and http://[virtual-machine-IP-address]/phppgadmin respectively.

    To log in, use username 'root' for phpMyAdmin or 'postgres' for phpPgAdmin. The default password is 'bitnami'.

    Native Installer

    You should be able to access phpMyAdmin directly, by browsing to http://127.0.0.1:8080/phpmyadmin or http://127.0.0.1/phpmyadmin.

    You should be able to access phpPgAdmin by browsing to http://127.0.0.1:8080/phppgadmin or http://127.0.0.1/phppgadmin.

    The username is 'root' for phpMyAdmin and 'postgres' for phpPgAdmin, and the password is the one specified by you during the installation process.

    Tabs end

    How can I run a command in the Bitnami AMP Stack?

    Cloud Server

    Bitnami cloud images have been already configured to run any command in the server directly. You can run the following ones to check the versions of the components that are already installed:

    $ php -version
    PHP 5.5.25 (cli) (built: Jun  8 2015 12:31:52)
    Copyright (c) 1997-2015 The PHP Group
    Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
        with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies
        
    $ mysql -version
    /opt/bitnami/mysql/bin/mysql.bin  Ver 14.14 Distrib 5.6.25, for linux-glibc2.5 (x86_64) using  EditLine wrapper
    
    $ httpd -v
    Server version: Apache/2.4.12 (Unix)
    Server built:   Jun  8 2015 08:43:35

    Native Installer

    NOTE: The following section is only applicable for the Bitnami AMP Stack Native Installer. On virtual machines and cloud servers, the correct environment is automatically loaded for the "bitnami" user and the steps below are not necessary.

    The Bitnami AMP Stack is completely self-contained and runs independently of the other software or libraries installed on your system. To work correctly, certain environment variables need to be set when you want to invoke commands to access different binaries, as explained below.

    Bitnami Stack environment

    The Bitnami console is a script to load the Stack environment. This console is useful to run any command included in the Stack, including mysql, php, openssl, ruby, rake and others. 

    NOTE: If you are using Bitnami Cloud Hosting, a virtual machine or a cloud server, the Stack environment is loaded by default and the steps below are unnecessary.

    linux_platform.png On Linux:

    $ cd installdir
     $ ./use_application
    

    For instance, in the Bitnami 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:

    $ cd /Applications/application-version
    $ ./use_application
    

    For instance, in the Bitnami WordPress Stack:

    $ cd /Applications/wordpress-3.0
    $ ./use_wordpress
    
    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 usual the same libraries but different version are already installed in your system, f.e. 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, ou might see an 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, run the command using "env -i" to first clear the environment. For example, to run a system command from a PHP application (f.e. "sendmail"):

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

    How to disable cache when developing in top of AMP?

    If you are developing on top of an AMP Stack, your files (like JavaScript files) may be cached by the server and even you modify them your changes will not appear to be applied.

    In order to disable cache in the server and let the files being served each time you need to disable PageSpeedMod that we ship with Apache server and OPCache, enabled by default in PHP.

    To disable PageSpeed, comment out the following lines in your httpd.conf (/iopt/bitnami/apache2/conf/httpd.conf)

    # Include conf/pagespeed.conf
    # Include conf/pagespeed_libraries.conf`
    
     

    To disable OPCache, change opcache.enable in your php.ini file and set it to 0 (/opt/bitnami/php/etc/php.ini)

     

     


     

    Tag page (Edit tags)
    • No tags
    Pages that link here
    Page statistics
    1091958 view(s), 79 edit(s) and 28246 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments

    FileSizeDateAttached by 
     drupal-modules.png
    drupal modules
    40.12 kB16:16, 4 Sep 2012AdminActions
     lampstack-stack-icon.png
    lamp
    4.09 kB14:33, 4 Sep 2012AdminActions
     lappstack-stack-icon.png
    lapp
    8.91 kB14:44, 4 Sep 2012AdminActions
     mampstack-stack-icon.png
    mamp
    5.46 kB14:33, 4 Sep 2012AdminActions
     mappstack-stack-icon.png
    mapp
    9.82 kB14:44, 4 Sep 2012AdminActions
     module-installdir.png
    module installation directory
    19.95 kB17:41, 4 Sep 2012AdminActions
     module-link.png
    module link
    28.72 kB17:44, 4 Sep 2012AdminActions
     module-password.png
    module installation password
    23.69 kB17:42, 4 Sep 2012AdminActions
    phpinfo.png
    phpinfo
    27.01 kB02:33, 19 Dec 2014vikramActions
     wampstack-stack-icon.png
    wamp
    5.96 kB14:33, 4 Sep 2012AdminActions
     wappstack-stack-icon.png
    wapp
    9.97 kB14:44, 4 Sep 2012AdminActions
     welcome-cloud-small.png
    No description
    31.72 kB02:19, 19 Dec 2014vikramActions
     welcome-cloud.png
    No description
    100.55 kB02:19, 19 Dec 2014vikramActions
     welcome-lamp.png
    welcome lamp
    53.63 kB15:29, 4 Sep 2012AdminActions