Skip to content
Snippets Groups Projects
Commit 523c77ad authored by Tibo's avatar Tibo
Browse files

Updated installation instructions

parent c60d2730
No related branches found
No related tags found
No related merge requests found
Pipeline #1891 passed
...@@ -13,40 +13,71 @@ sudo apt-get install mongodb ...@@ -13,40 +13,71 @@ sudo apt-get install mongodb
On Ubuntu 16.04, this will install mongodb version 2.6 by default. On Ubuntu 16.04, this will install mongodb version 2.6 by default.
To check your mongodb server is correctly running:
```
sudo service mongodb status
```
### PHP
The extension mongodb-1.4.4 (see below) is compatible with PHP 7.2 or older (thus NOT with PHP 7.3).
If you try with PHP7.3, you will encounter errors like
```
PHP symbol lookup error: /usr/lib/php/20180731/mongodb.so: undefined symbol: ZEND_HASH_GET_APPLY_COUNT
```
You can find the complete compatibility matrix at https://docs.mongodb.com/ecosystem/drivers/php/
### PECL
```
sudo apt-get install php7.2-dev php-pear
```
### Mongodb PHP extension ### Mongodb PHP extension
* https://docs.mongodb.com/ecosystem/drivers/php/ * https://docs.mongodb.com/ecosystem/drivers/php/
* https://pecl.php.net/package/mongodb * https://pecl.php.net/package/mongodb
With mongodb 2.6, you will need mongodb-1.4.4: You will need mongodb-1.4.4:
``` ```
sudo pecl install mongodb-1.4.4 sudo pecl install mongodb-1.4.4
``` ```
### PHP To check if the correct version of mongodb extension is installed:
The extension mongodb-1.4.4 is compatible with PHP 7.2 or less (thus NOT with PHP 7.3). ```
sudo pecl list
```
If you try with PHP7.3, you will encounter errors like And to check that the extension is actually enabled and used by php:
``` ```
PHP symbol lookup error: /usr/lib/php/20180731/mongodb.so: undefined symbol: ZEND_HASH_GET_APPLY_COUNT php -i | grep mongo
``` ```
You can find the complete compatibility matrix at https://docs.mongodb.com/ecosystem/drivers/php/
### Installation ### Installation
``` ```
composer install composer install
touch storage/app/db.sqlite touch storage/app/db.sqlite
cp .env.example .env cp env.dev .env
php artisan migrate php artisan migrate
php artisan key:generate php artisan key:generate
``` ```
### Fronted To check your installation is correct, you can run the phpunit tests:
```
./vendor/bin/phpunit
```
### Frontend
``` ```
npm install npm install
......
...@@ -6,11 +6,13 @@ APP_LOG_LEVEL=debug ...@@ -6,11 +6,13 @@ APP_LOG_LEVEL=debug
APP_URL=http://localhost APP_URL=http://localhost
DB_CONNECTION=sqlite DB_CONNECTION=sqlite
DB_HOST=127.0.0.1
DB_PORT=3306 #DB_CONNECTION=mysql
DB_DATABASE=homestead #DB_HOST=127.0.0.1
DB_USERNAME=homestead #DB_PORT=3306
DB_PASSWORD=secret #DB_DATABASE=homestead
#DB_USERNAME=homestead
#DB_PASSWORD=secret
BROADCAST_DRIVER=log BROADCAST_DRIVER=log
CACHE_DRIVER=file CACHE_DRIVER=file
...@@ -22,17 +24,11 @@ REDIS_HOST=127.0.0.1 ...@@ -22,17 +24,11 @@ REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null REDIS_PASSWORD=null
REDIS_PORT=6379 REDIS_PORT=6379
MAIL_DRIVER=smtp MAIL_DRIVER=log
MAIL_HOST=127.0.0.1 #MAIL_DRIVER=smtp
MAIL_PORT=1025 #MAIL_HOST=127.0.0.1
MAIL_USERNAME=null #MAIL_PORT=1025
MAIL_PASSWORD=null #MAIL_USERNAME=null
MAIL_ENCRYPTION=null #MAIL_PASSWORD=null
#MAIL_ENCRYPTION=null
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
MONGO_URI=
MONGO_URI_OPTIONS=
MONGO_DRIVER_OPTIONS=
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment