BitNami MAPP Stack 5.5.0RC3-0 =========================== 1. OVERVIEW The BitNami Project was created to help spread the adoption of freely available, high quality, open source web applications. BitNami aims to make it easier than ever to discover, download and install Open Source software such as document and content management systems, wikis and blogging software. You can learn more about BitNami at http://bitnami.com BitNami MAPP stack is an easy to install and easy to use open source Web Platform. It combines leading open source projects, such as Apache, PostgreSQL and PHP with BitRock's extensive open source expertise to provide a consistent, painless way to deploy MAPP in any OS X environment. You can learn more about BitNami stacks at http://bitnami.com/stacks/ BitNami MAPP is also available as a Virtual Machine Image or as a Cloud Image. BitNami Virtual Machine Images are pre-configured and include a minimal installation of Linux and a BitNami stack. They are available for VMWare and the latest version of VirtualBox. BitNami Cloud Images allow you to run a BitNami stack in a cloud computing environment on a pay-as-you-go basis. BitNami Cloud Images are currently available for Amazon EC2, with planned support for additional cloud environments. You can learn more about BitNami Virtual Machine Images and Cloud Images at http://bitnami.com/learn_more 2. FEATURES - Easy to Install BitNami stacks are built with one goal in mind: to make it as easy as possible to install open source software. Our installers completely automate the process of installing and configuring all of the software included in each stack, so you can have everything up and running in just a few clicks. - Independent BitNami stacks are completely self-contained, and therefore do not interfere with any software already installed on your system. For example, you can upgrade your system's PostgreSQL or Apache Tomcat without fear of 'breaking' your BitNami stack. - Integrated By the time you click the 'finish' button on the installer, the whole stack will be integrated, configured and ready to go. - Relocatable BitNami stacks can be installed in any directory. This allows you to have multiple instances. 3. COMPONENTS BitNami MAPP stack ships with the following software versions: - Apache 2.4.4 - PostgreSQL 9.2.4 - PHP 5.5.0RC3 - PHPPgAdmin 5.1 - AWS SDK for PHP 1.6.2 - Varnish 3.0.1 - ImageMagick 6.7.5 - SQLite 3.7.10 - ModSecurity 2.6.7 - Libraries for Couchbase 2.0.5 - Couchbase PHP extension 1.1.4 - Heroku client - Git 1.8.3 - Ruby 1.9.3-p429 Optional components: - Zend Framework 2.2.0 - Symfony 2.2.1 - CodeIgniter 2.1.3 - CakePHP 2.3.6 - Smarty 3.1.13 - Laravel 4.0.0 You can find a quick start guide and more documentation about all of the components at: http://wiki.bitnami.com/Infrastructure_Stacks/BitNami_AMP_Stacks 4. REQUIREMENTS To install BitNami MAPP stack you will need: - Intel x86 or compatible processor - Minimum of 256 MB RAM - Minimum of 150 MB hard drive space - An x86 OS X operating system - TCP/IP protocol support 5. INSTALLATION The BitNami MAPP stack is distributed as a binary executable installer. It can be downloaded from: http://bitnami.com/stacks/ The downloaded file will be named something similar to: bitnami-mappstack-5.5.0RC3-0-osx-x86-installer.dmg You can install BitNami MAPP stack in graphical, text and unattended modes. By default the graphical mode will be used. You will be greeted by the 'Welcome' screen. The next step is to select the installation directory. The default installation path will be a folder on your home directory if you are running the installer as a regular user, or /opt/mappstack-5.5.0RC3-0, if you are running the installation as root. If the destination directory does not exist, it will be created as part of the installation. After selecting the installation directory you will be asked for the password to the initial PostgreSQL postgres account. This password cannot be empty. The default listening port for Apache is 8080 and for PostgreSQL is 5432. If those ports are already in use by other applications, you will be prompted for alternate ports to use. Remember that if you plan to run both applications as a regular user you should select port numbers above 1024. You are now ready to begin the installation, which will start when you press 'Next'. Once the installation process has been completed, you will see the 'Installation Finished' page. If you receive an error message during installation, please refer to the Troubleshooting section. The rest of this guide assumes that you installed BitNami MAPP stack in /Applications/mappstack-5.5.0RC3-0 and that you use port 8080 for Apache and 5432 for PostgreSQL. 6. STARTING AND STOPPING BITNAMI MAPP STACK To enter to your application you can point your browser to http://127.0.0.1:8080/ To start/stop/restart application you can use a graphical management tool called 'manager-osx.app'. Double-click on that file or start it. You can also use the command line ctlscript.sh utility: ./ctlscript.sh (start|stop|restart) ./ctlscript.sh (start|stop|restart) postgresql ./ctlscript.sh (start|stop|restart) apache start - start the service(s) stop - stop the service(s) restart - restart or start the service(s) If you selected an alternate port during installation, for example 18080, the URL will look like: http://127.0.0.1:18080/ 7. RUNNING COMMANDS IN A CONSOLE BitNami console is a script that loads environment variables that need to be present when using many of the command line tools included in the stack, such as pg, php or openssl. All of the Native Installers for BitNami Stacks are completely self-contained and run independently of the rest of the software or libraries installed on your system. For this to work, certain environment variables need to be configured properly. Before running any stack command line tool, you should start the "BitNami console" to setup the environment. For example to check the PHP version. On Linux or OS X, you have to start a Terminal and run the following commands into your installation directory: ./use_mappstack php -v On Windows, you can start the BitNami console from the Start Menu: Start -> Program Files -> BitNami WAPP Stack -> Use WAPP Stack php -v 8. DIRECTORY STRUCTURE The installation process will create several subfolders under the main installation directory: manager-osx.app: Graphical tool to manage the servers easily ctlscript.sh: Script to manage the servers uninstall: Uninstaller use_mappstack: Script to load the stack environment apache2/: Apache Web server. php/: PHP Scripting Language. postgresql/: PostgreSQL Database. common/: common libraries. varnish/: Varnish cache server (disabled by default) sqlite/: SQLite database server licenses/: Licenses of the components included in MAPP stack. frameworks/: PHP frameworks selected during the installation docs/: Documents for creating a custom application apps/ phpPgAdmin/: Management tool for PostgreSQL 9. CREATING AN EXAMPLE In the doc/ folder you can find two examples to start working with BitNami MAPP stack. Take a look at the docs/README.txt file to know how to create your own PHP application. 10. TROUBLESHOOTING You can find a quick start guide and more documentation about all of the components at: http://wiki.bitnami.com/Infrastructure_Stacks/BitNami_AMP_Stacks In addition to the resources provided below, we encourage you to post your questions and suggestions at: http://answers.bitnami.com We also encourage you to sign up for our newsletter, which we'll use to announce new releases and new stacks. To do so, just register at: http://bitnami.com/newsletter. 10.1 Installer # Installer Payload Error If you get the following error while trying to run the installer from the command line: "Installer payload initialization failed. This is likely due to an incomplete or corrupt downloaded file" The installer binary is not complete, likely because the file was not downloaded correctly. You will need to download the file and repeat the installation process. 11. LICENSES Apache Web Server is distributed under the Apache License v2.0, which is located at http://www.apache.org/licenses/LICENSE-2.0 PostgreSQL is distributed under the BSD License, which is located at http://www.freebsd.org/copyright/license.html phpPgAdmin is distributed under the GNU General Public License v2, which is located at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html PHP and related libraries are distributed under the PHP License v3.01, which is located at http://www.php.net/license/3_01.txt SQLite has been dedicated to the public domain by the authors, which is located at http://www.sqlite.org/copyright.html Varnish is distributed under the FreeBSD license, which is located at https://www.varnish-cache.org/trac/browser/LICENSE curl is distributed under the Curl License, which is located at http://curl.haxx.se/docs/copyright.html expat is distributed under the MIT License, which is located at http://www.jclark.com/xml/copying.txt gd is distributed under the gd License, which is located at http://www.boutell.com/gd/manual2.0.33.html IMAP is distributed under the University of Washington Free-Fork License, located at http://www.washington.edu/imap/legal.html jpegsrc is distributed under The Independent JPEG Group's JPEG software license, which is located at http://dev.w3.org/cvsweb/Amaya/libjpeg/README?rev=1.2 libiconv is distributed under the Lesser General Public License (LGPL), located at http://www.gnu.org/copyleft/lesser.html ImageMagick has its own license, which is located at https://www.imagemagick.org/subversion/ImageMagick/trunk/LICENSE OpenSSL is released under the terms of the Apache License, which is located at http://www.openssl.org/source/license.html Zlib is released under the zlib License (a free software license/compatible with GPL), which is located at http://www.gzip.org/zlib/zlib_license.html OpenLDAP is released under OpenLDAP Public License, which is located at http://www.openldap.org/devel/cvsweb.cgi/~checkout~//LICENSE?rev=1.24 Freetype is released under The Freetype Project License, that is located at http://freetype.sourceforge.net/FTL.TXT ModSecurity is released under the GNU General Public License v2, which is located at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html