Commit f317614f authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

Merge branch 'php7' into 'master'

Update to mongo 4.2

See merge request !5
parents ee2e589b 3e575fa3
# Installer Communecter sur Ubuntu avec php5.6 et php7.4
## Prérequis
- Installer apache2
sudo apt install apache2
- Installer docker
https://docs.docker.com/engine/install/ubuntu/
- Installer libapache2-mod-fcgid
`sudo apt install libapache2-mod-fcgid`
- Installer php5.6-fpm et php7.4-fpm
......@@ -18,10 +22,10 @@
- `docker pull mongo:3.4`
- `mkdir ~/data && mkdir ~/data/mongo34`
- `docker run -d -v ~/data/mongo34:/data/db -p 34017:27017 --name mongo34 mongo:3.4`
- Mongo3.6
- `docker pull mongo:3.6`
- `mkdir ~/data/mongo36`
- `docker run -d -v ~/data/mongo36:/data/db -p 36017:27017 --name mongo36 mongo:3.6`
- Mongo4.2
- `docker pull mongo:4.2`
- `mkdir ~/data && mkdir ~/data/mongo42`
- `docker run -d -v ~/data/mongo42:/data/db -p 42017:27017 --name mongo42 mongo:4.2`
## Installation
- Copie du projet
- `mkdir ~/dev && ~/dev/communecter-php56 && ~/dev/communecter-php74`
......@@ -72,7 +76,7 @@
<?php
$dbconfig = array(
'class' => 'mongoYii.EMongoClient',
'server' => 'mongodb://127.0.0.1:36017/',
'server' => 'mongodb://127.0.0.1:42017/',
'db' => 'pixelhumain',
);
?>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment