Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
monitoring
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cylab
monitoring
Commits
523c77ad
Commit
523c77ad
authored
5 years ago
by
Tibo
Browse files
Options
Downloads
Patches
Plain Diff
Updated installation instructions
parent
c60d2730
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#1891
passed
5 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+40
-9
40 additions, 9 deletions
README.md
env.dev
+34
-0
34 additions, 0 deletions
env.dev
with
74 additions
and
9 deletions
README.md
+
40
−
9
View file @
523c77ad
...
...
@@ -13,40 +13,71 @@ sudo apt-get install mongodb
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
*
https://docs.mongodb.com/ecosystem/drivers/php/
*
https://pecl.php.net/package/mongodb
With mongodb 2.6, y
ou will need mongodb-1.4.4:
Y
ou will need 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 wi
ll en
counter errors like
And to check that the extension is actua
ll
y
en
abled 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
```
composer install
touch storage/app/db.sqlite
cp
.
env.
example
.env
cp env.
dev
.env
php artisan migrate
php artisan key:generate
```
### Fronted
To check your installation is correct, you can run the phpunit tests:
```
./vendor/bin/phpunit
```
### Frontend
```
npm install
...
...
This diff is collapsed.
Click to expand it.
.
env.
example
→
env.
dev
+
34
−
0
View file @
523c77ad
...
...
@@ -6,11 +6,13 @@ APP_LOG_LEVEL=debug
APP_URL=http://localhost
DB_CONNECTION=sqlite
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
#DB_CONNECTION=mysql
#DB_HOST=127.0.0.1
#DB_PORT=3306
#DB_DATABASE=homestead
#DB_USERNAME=homestead
#DB_PASSWORD=secret
BROADCAST_DRIVER=log
CACHE_DRIVER=file
...
...
@@ -22,17 +24,11 @@ REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=127.0.0.1
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
MAIL_DRIVER=log
#MAIL_DRIVER=smtp
#MAIL_HOST=127.0.0.1
#MAIL_PORT=1025
#MAIL_USERNAME=null
#MAIL_PASSWORD=null
#MAIL_ENCRYPTION=null
MONGO_URI=
MONGO_URI_OPTIONS=
MONGO_DRIVER_OPTIONS=
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment