User Tools

Site Tools


wiki:install_mongodb_php7

Install mongodb with php7

Add repos:

echo -e "deb http://repo.mongodb.org/apt/debian jessie/mongodb-org/3.4 main\ndeb http://packages.dotdeb.org jessie all" >> /etc/apt/sources.list

Add signing keys for mongo repo and php7:

apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
wget https://www.dotdeb.org/dotdeb.gpg
apt-key add dotdeb.gpg
rm dotdeb.gpg 
aptitude update

Install packages:

aptitude install mongodb-org php7.0-bcmath php7.0-bz2 php7.0-curl php7.0-dba php7.0-dev php7.0-fpm php7.0-gd php7.0-json php7.0-mbstring php7.0-soap php7.0-xml php7.0-zip

Start monogdb:

systemctl enable mongod.service
systemctl start mongod.service

Edit /etc/php/7.0/cli/php.ini to these values:

date.timezone = Europe/Berlin
adduser --disabled-login --gecos '' client
usermod -aG mongodb client

Tested on

See also

References

wiki/install_mongodb_php7.txt · Last modified: 2022/10/03 11:25 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki