Thanks for using Bitnami.
(...) does not advise what directory to install mongodb into.
Please note that, once you run the installer, it will prompt for the desired installation directory on your machine. Also, you can start, stop or restart the MongoDB service by using the
ctlscript.sh script placed into the installation directory set during the installation process. You will need to run a command similar to the one below
installdir/ctlscript.sh start mongodb
Please note you will need to use
sudo in case you install the MongoDB stack as the root user.
Regarding the issue installing PHP and Python dependencies, please note that as mentioned in the thread linked below, it is not possible to add Python or MongoDB runtime files and configuration to the Bitnami LAMP Stack and that you will need to use the Bitnami Ruby Stack instead that also includes PHP and Python binaries.
I launched an aws instance with the bitnami LAMP stack (only PHP, no python), now I want to add python and when I went to apt-get the apache module for python, it says apache is not even installed. Bitnami is really isolated from the linux host...
Apart from that, I checked that the Bitnami LAMP Stack image for AWS with PHP version 7.1.26 already includes the PHP extension for MongoDB. Regarding the error message you are getting, it seems that our docs are a bit outdated and that the Pecl extension for MongoDB has been moved from
mongodb. Apart from that, I checked that the MongoDB extension for PHP is already installed running the command below:
php -i | grep -C4 -i "mongodb.*version"
Here is the output of running the command above and
bitnami@ip-172-31-36-128:~$ php -version
PHP 7.1.26 (cli) (built: Feb 21 2019 15:32:47) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.1.26, Copyright (c) 1999-2018, by Zend Technologies
bitnami@ip-172-31-36-128:~$ php -i | grep -C4 -i "mongodb.*version"
MongoDB support => enabled
MongoDB extension version => 1.5.3
MongoDB extension stability => stable
libbson bundled version => 1.13.0
libmongoc bundled version => 1.13.0
libmongoc SSL => enabled
Please note you will need to install the Pecl package for MongoDB in the Bitnami Ruby Stack by running the command below, enable it in the
php.ini file and then restart services for changes to take effect.
sudo pecl install mongodb
We will update our docs to reflect this modification.