laravel / homestead

MIT License
3.86k stars 1.45k forks source link

Mongodb-php-driver don't install #1298

Closed gekkone closed 5 years ago

gekkone commented 5 years ago

The PHP team is happy to announce that version 1.5.2 of the mongodb PHP extension is now available on PECL.

In scripts\feature\mongodb.sh use ./configure & make, although it is correct "pecl install mongodb".

Sorry for my bad English.

svpernova09 commented 5 years ago

I manually tested the feature script and didn't run into any errors

┌─(~/Code/homestead)(master S:2)─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
└── vagrant up                                                                                                                                             ─(15:15:04)(10/15/19)─┘
Bringing machine 'homestead' up with 'virtualbox' provider...
==> homestead: Importing base box 'laravel/homestead'...
==> homestead: Matching MAC address for NAT networking...
==> homestead: Checking if box 'laravel/homestead' version '8.2.1' is up to date...
==> homestead: Setting the name of the VM: homestead
==> homestead: Clearing any previously set network interfaces...
==> homestead: Preparing network interfaces based on configuration...
    homestead: Adapter 1: nat
    homestead: Adapter 2: hostonly
==> homestead: Forwarding ports...
    homestead: 80 (guest) => 8000 (host) (adapter 1)
    homestead: 443 (guest) => 44300 (host) (adapter 1)
    homestead: 3306 (guest) => 33060 (host) (adapter 1)
    homestead: 4040 (guest) => 4040 (host) (adapter 1)
    homestead: 5432 (guest) => 54320 (host) (adapter 1)
    homestead: 8025 (guest) => 8025 (host) (adapter 1)
    homestead: 9600 (guest) => 9600 (host) (adapter 1)
    homestead: 27017 (guest) => 27017 (host) (adapter 1)
    homestead: 8000 (guest) => 9090 (host) (adapter 1)
    homestead: 22 (guest) => 2222 (host) (adapter 1)
==> homestead: Running 'pre-boot' VM customizations...
==> homestead: Booting VM...
==> homestead: Waiting for machine to boot. This may take a few minutes...
    homestead: SSH address: 127.0.0.1:2222
    homestead: SSH username: vagrant
    homestead: SSH auth method: private key
    homestead:
    homestead: Vagrant insecure key detected. Vagrant will automatically replace
    homestead: this with a newly generated keypair for better security.
    homestead:
    homestead: Inserting generated public key within guest...
    homestead: Removing insecure key from the guest if it's present...
    homestead: Key inserted! Disconnecting and reconnecting using new SSH key...
==> homestead: Machine booted and ready!
==> homestead: Checking for guest additions in VM...
==> homestead: Setting hostname...
==> homestead: Configuring and enabling network interfaces...
==> homestead: Mounting shared folders...
    homestead: /vagrant => /Users/halo/Code/homestead
    homestead: /home/vagrant/qs => /Users/halo/Code/laravel-training-6
    homestead: /home/vagrant/qs5 => /Users/halo/Code/quickstart-5.7
    homestead: /home/vagrant/fresh => /Users/halo/Code/fresh-laravel
==> homestead: Running provisioner: file...
    homestead: /Users/halo/Code/homestead/aliases => /tmp/bash_aliases
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
    homestead:
    homestead: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDBeub1sTnpX7Tp7f0ukLAz7dMn7CS9w6eHmc1wtJNp/iXHzyBRKZ+ov8z+voCVJOrSDyTsG0IKcby8+UxwpzR2nyqiBPw+oaSD1elIHFS48h7Wd5f41S6QeHUlhac20fa5EHTnNw9jphtxDuYPa+xiaNdbdvJKC1jZuipsqc4qlcDC1LISOtIsAzMF1fnByWEe3JBvRxvCmegruu424chIGG23elIoBHsOvY/6BI+5G2BNSBvqzHxfQ2mK6j4tEj2K2s+4M3r4FrgZIYgHxxZtADdNGwditFu5ipfaQSc1n5YFQiI87iTO5OZCBdffMY3qQWaE3ne+hAVDSdJLWFDn halo@mobile-rage-work
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
    homestead: Ignoring feature: python because it is set to false
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
    homestead: Ignoring feature: mongodb because it is set to false
==> homestead: Running provisioner: shell...
    homestead: Running: /var/folders/rc/k3k9fv1x50n7r10bpcp7xyx00000gn/T/vagrant-shell20191015-81916-tjs9sr.sh
==> homestead: Running provisioner: shell...
    homestead: Running: /var/folders/rc/k3k9fv1x50n7r10bpcp7xyx00000gn/T/vagrant-shell20191015-81916-1x1bw2t.sh
==> homestead: Running provisioner: shell...
    homestead: Running: script: Creating Certificate: qs5.test
==> homestead: Running provisioner: shell...
    homestead: Running: script: Creating Site: qs5.test
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: /var/folders/rc/k3k9fv1x50n7r10bpcp7xyx00000gn/T/vagrant-shell20191015-81916-wz4q7u.sh
==> homestead: Running provisioner: shell...
    homestead: Running: script: Checking for old Schedule
==> homestead: Running provisioner: shell...
    homestead: Running: script: Creating Certificate: qs.test
==> homestead: Running provisioner: shell...
    homestead: Running: script: Creating Site: qs.test
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: /var/folders/rc/k3k9fv1x50n7r10bpcp7xyx00000gn/T/vagrant-shell20191015-81916-1teldn9.sh
==> homestead: Running provisioner: shell...
    homestead: Running: script: Checking for old Schedule
==> homestead: Running provisioner: shell...
    homestead: Running: script: Creating Certificate: fresh.test
==> homestead: Running provisioner: shell...
    homestead: Running: script: Creating Site: fresh.test
==> homestead: Running provisioner: shell...
    homestead: Running: inline script
==> homestead: Running provisioner: shell...
    homestead: Running: /var/folders/rc/k3k9fv1x50n7r10bpcp7xyx00000gn/T/vagrant-shell20191015-81916-eveccr.sh
==> homestead: Running provisioner: shell...
    homestead: Running: script: Checking for old Schedule
==> homestead: Running provisioner: shell...
    homestead: Running: script: Clear Variables
==> homestead: Running provisioner: shell...
    homestead: Running: script: Restarting Cron
==> homestead: Running provisioner: shell...
    homestead: Running: script: Restarting Nginx
==> homestead: Running provisioner: shell...
    homestead: Running: script: Creating MySQL Database: homestead
==> homestead: Running provisioner: shell...
    homestead: Running: script: Creating Postgres Database: homestead
==> homestead: Running provisioner: shell...
    homestead: Running: script: Update Composer
    homestead: You are already using composer version 1.9.0 (stable channel).
==> homestead: Running provisioner: shell...
    homestead: Running: /var/folders/rc/k3k9fv1x50n7r10bpcp7xyx00000gn/T/vagrant-shell20191015-81916-1f0x5qu.sh
==> homestead: Running provisioner: shell...
    homestead: Running: script: Update motd
==> homestead: Running provisioner: shell...
    homestead: Running: /var/folders/rc/k3k9fv1x50n7r10bpcp7xyx00000gn/T/vagrant-shell20191015-81916-6mm43.sh
vagrant up: 01:17

┌─(~/Code/homestead)(master S:2)─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
└── vagrant ssh                                                                                                                                            ─(15:16:33)(10/15/19)─┘
Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-64-generic x86_64)

Thanks for using
 _                               _                 _
| |                             | |               | |
| |__   ___  _ __ ___   ___  ___| |_ ___  __ _  __| |
| '_ \ / _ \| '_ ` _ \ / _ \/ __| __/ _ \/ _` |/ _` |
| | | | (_) | | | | | |  __/\__ \ ||  __/ (_| | (_| |
|_| |_|\___/|_| |_| |_|\___||___/\__\___|\__,_|\__,_|

* Homestead v9.0.0 released
* Settler v8.0.0 released

0 packages can be updated.
0 updates are security updates.

vagrant@homestead:~$ touch /home/vagrant/.homestead-features/mongodb
vagrant@homestead:~$ chown -Rf vagrant:vagrant /home/vagrant/.homestead-features
vagrant@homestead:~$ sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4 2>&1
Executing: /tmp/apt-key-gpghome.yBpA9PQx8T/gpg.1.sh --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
gpg: key 68818C72E52529D4: public key "MongoDB 4.0 Release Signing Key <packaging@mongodb.com>" imported
gpg: Total number processed: 1
gpg:               imported: 1
vagrant@homestead:~$ echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list
deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse
vagrant@homestead:~$ sudo apt-get update
Get:1 https://cli-assets.heroku.com/apt ./ InRelease [2,533 B]
Get:3 http://apt.postgresql.org/pub/repos/apt bionic-pgdg InRelease [46.3 kB]
Get:2 https://cli-assets.heroku.com/apt ./ Packages [616 B]
Ign:4 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 InRelease
Get:5 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 Release [2,991 B]
Hit:6 http://ppa.launchpad.net/nginx/development/ubuntu bionic InRelease
Hit:7 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:8 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 Release.gpg [801 B]
Get:9 http://apt.postgresql.org/pub/repos/apt bionic-pgdg/main amd64 Packages [166 kB]
Get:10 http://apt.postgresql.org/pub/repos/apt bionic-pgdg/main i386 Packages [166 kB]
Get:11 https://deb.nodesource.com/node_12.x bionic InRelease [4,584 B]
Get:12 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:13 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease [20.8 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:15 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0/multiverse amd64 Packages [9,474 B]
Get:16 https://deb.nodesource.com/node_12.x bionic/main amd64 Packages [764 B]
Get:17 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:18 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 Packages [51.6 kB]
Get:19 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [530 kB]
Get:20 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main i386 Packages [51.6 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/main i386 Packages [593 kB]
Get:22 http://security.ubuntu.com/ubuntu bionic-security/main i386 Packages [382 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [753 kB]
Get:24 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [178 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [271 kB]
Get:26 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [8,872 B]
Get:27 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [3,296 B]
Get:28 http://security.ubuntu.com/ubuntu bionic-security/universe i386 Packages [593 kB]
Get:29 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [15.7 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [4,956 B]
Get:31 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1,012 kB]
Get:32 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [613 kB]
Get:33 http://archive.ubuntu.com/ubuntu bionic-updates/universe i386 Packages [982 kB]
Get:34 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [204 kB]
Get:35 http://security.ubuntu.com/ubuntu bionic-security/multiverse i386 Packages [4,288 B]
Get:36 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [5,260 B]
Get:37 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [312 kB]
Get:38 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2,464 B]
Get:39 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [7,884 B]
Get:40 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse i386 Packages [6,932 B]
Get:41 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [3,944 B]
Fetched 7,262 kB in 11s (656 kB/s)
Reading package lists... Done
vagrant@homestead:~$ sudo DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confnew" install mongodb-org autoconf g++ make openssl libssl-dev libcurl4-openssl-dev pkg-config libsasl2-dev php-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
autoconf is already the newest version (2.69-11).
autoconf set to manually installed.
make is already the newest version (4.1-9.1ubuntu1).
g++ is already the newest version (4:7.4.0-1ubuntu2.3).
g++ set to manually installed.
The following additional packages will be installed:
  libssl1.1 mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
Suggested packages:
  libcurl4-doc libidn11-dev libkrb5-dev libldap2-dev librtmp-dev libssh2-1-dev libssl-doc
The following NEW packages will be installed:
  libcurl4-openssl-dev libsasl2-dev mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools php-dev pkg-config
The following packages will be upgraded:
  libssl-dev libssl1.1 openssl
3 upgraded, 9 newly installed, 0 to remove and 113 not upgraded.
Need to get 77.8 MB of archives.
After this operation, 269 MB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 libssl-dev amd64 1.1.1d-1+ubuntu18.04.1+deb.sury.org+2 [1,792 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcurl4-openssl-dev amd64 7.58.0-2ubuntu3.8 [294 kB]
Get:3 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0/multiverse amd64 mongodb-org-shell amd64 4.0.13 [9,867 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 libsasl2-dev amd64 2.1.27~101-g0780600+dfsg-3ubuntu2 [256 kB]
Get:5 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0/multiverse amd64 mongodb-org-server amd64 4.0.13 [15.9 MB]
Get:6 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 libssl1.1 amd64 1.1.1d-1+ubuntu18.04.1+deb.sury.org+2 [1,523 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 pkg-config amd64 0.29.1-0ubuntu2 [45.0 kB]
Get:8 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 openssl amd64 1.1.1d-1+ubuntu18.04.1+deb.sury.org+2 [827 kB]
Get:9 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0/multiverse amd64 mongodb-org-mongos amd64 4.0.13 [8,825 kB]
Get:10 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0/multiverse amd64 mongodb-org-tools amd64 4.0.13 [38.5 MB]
Get:11 http://ppa.launchpad.net/ondrej/php/ubuntu bionic/main amd64 php-dev all 2:7.3+69+ubuntu18.04.1+deb.sury.org+2+php7.3 [6,092 B]
Get:12 https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0/multiverse amd64 mongodb-org amd64 4.0.13 [3,528 B]
Fetched 77.8 MB in 10s (8,083 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libcurl4-openssl-dev:amd64.
(Reading database ... 172980 files and directories currently installed.)
Preparing to unpack .../00-libcurl4-openssl-dev_7.58.0-2ubuntu3.8_amd64.deb ...
Unpacking libcurl4-openssl-dev:amd64 (7.58.0-2ubuntu3.8) ...
Selecting previously unselected package libsasl2-dev.
Preparing to unpack .../01-libsasl2-dev_2.1.27~101-g0780600+dfsg-3ubuntu2_amd64.deb ...
Unpacking libsasl2-dev (2.1.27~101-g0780600+dfsg-3ubuntu2) ...
Preparing to unpack .../02-libssl-dev_1.1.1d-1+ubuntu18.04.1+deb.sury.org+2_amd64.deb ...
Unpacking libssl-dev:amd64 (1.1.1d-1+ubuntu18.04.1+deb.sury.org+2) over (1.1.1c-1+ubuntu18.04.1+deb.sury.org+1) ...
Preparing to unpack .../03-libssl1.1_1.1.1d-1+ubuntu18.04.1+deb.sury.org+2_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.1d-1+ubuntu18.04.1+deb.sury.org+2) over (1.1.1c-1+ubuntu18.04.1+deb.sury.org+1) ...
Selecting previously unselected package mongodb-org-shell.
Preparing to unpack .../04-mongodb-org-shell_4.0.13_amd64.deb ...
Unpacking mongodb-org-shell (4.0.13) ...
Selecting previously unselected package mongodb-org-server.
Preparing to unpack .../05-mongodb-org-server_4.0.13_amd64.deb ...
Unpacking mongodb-org-server (4.0.13) ...
Selecting previously unselected package mongodb-org-mongos.
Preparing to unpack .../06-mongodb-org-mongos_4.0.13_amd64.deb ...
Unpacking mongodb-org-mongos (4.0.13) ...
Selecting previously unselected package mongodb-org-tools.
Preparing to unpack .../07-mongodb-org-tools_4.0.13_amd64.deb ...
Unpacking mongodb-org-tools (4.0.13) ...
Selecting previously unselected package mongodb-org.
Preparing to unpack .../08-mongodb-org_4.0.13_amd64.deb ...
Unpacking mongodb-org (4.0.13) ...
Preparing to unpack .../09-openssl_1.1.1d-1+ubuntu18.04.1+deb.sury.org+2_amd64.deb ...
Unpacking openssl (1.1.1d-1+ubuntu18.04.1+deb.sury.org+2) over (1.1.1c-1+ubuntu18.04.1+deb.sury.org+1) ...
Selecting previously unselected package php-dev.
Preparing to unpack .../10-php-dev_2%3a7.3+69+ubuntu18.04.1+deb.sury.org+2+php7.3_all.deb ...
Unpacking php-dev (2:7.3+69+ubuntu18.04.1+deb.sury.org+2+php7.3) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../11-pkg-config_0.29.1-0ubuntu2_amd64.deb ...
Unpacking pkg-config (0.29.1-0ubuntu2) ...
Setting up php-dev (2:7.3+69+ubuntu18.04.1+deb.sury.org+2+php7.3) ...
Setting up libsasl2-dev (2.1.27~101-g0780600+dfsg-3ubuntu2) ...
Setting up pkg-config (0.29.1-0ubuntu2) ...
Setting up libssl1.1:amd64 (1.1.1d-1+ubuntu18.04.1+deb.sury.org+2) ...
Setting up openssl (1.1.1d-1+ubuntu18.04.1+deb.sury.org+2) ...
Setting up mongodb-org-tools (4.0.13) ...
Setting up libcurl4-openssl-dev:amd64 (7.58.0-2ubuntu3.8) ...
Setting up mongodb-org-server (4.0.13) ...
Adding system user `mongodb' (UID 120) ...
Adding new user `mongodb' (UID 120) with group `nogroup' ...
Not creating home directory `/home/mongodb'.
Adding group `mongodb' (GID 126) ...
Done.
Adding user `mongodb' to group `mongodb' ...
Adding user mongodb to group mongodb
Done.
Setting up mongodb-org-shell (4.0.13) ...
Setting up libssl-dev:amd64 (1.1.1d-1+ubuntu18.04.1+deb.sury.org+2) ...
Setting up mongodb-org-mongos (4.0.13) ...
Setting up mongodb-org (4.0.13) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
vagrant@homestead:~$ sudo ufw allow 27017
Rules updated
Rules updated (v6)
vagrant@homestead:~$ sudo sed -i "s/bindIp: .*/bindIp: 0.0.0.0/" /etc/mongod.conf
vagrant@homestead:~$ sudo systemctl enable mongod
Created symlink /etc/systemd/system/multi-user.target.wants/mongod.service → /lib/systemd/system/mongod.service.
vagrant@homestead:~$ sudo systemctl start mongod
vagrant@homestead:~$ sudo rm -rf /tmp/mongo-php-driver /usr/src/mongo-php-driver
vagrant@homestead:~$ git clone -c advice.detachedHead=false -q -b '1.5.2' --single-branch https://github.com/mongodb/mongo-php-driver.git /tmp/mongo-php-driver

vagrant@homestead:~$ sudo mv /tmp/mongo-php-driver /usr/src/mongo-php-driver
vagrant@homestead:~$ cd /usr/src/mongo-php-driver
vagrant@homestead:/usr/src/mongo-php-driver$ git submodule -q update --init
vagrant@homestead:/usr/src/mongo-php-driver$ sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php5.6-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5.6-dev is already the newest version (5.6.40-12+ubuntu18.04.1+deb.sury.org+1).
0 upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
vagrant@homestead:/usr/src/mongo-php-driver$ phpize5.6
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
vagrant@homestead:/usr/src/mongo-php-driver$ ./configure --with-php-config=/usr/bin/php-config5.6 > /dev/null
vagrant@homestead:/usr/src/mongo-php-driver$ make clean > /dev/null
vagrant@homestead:/usr/src/mongo-php-driver$ make >/dev/null 2>&1
vagrant@homestead:/usr/src/mongo-php-driver$ sudo make install
Installing shared extensions:     /usr/lib/php/20131226/
vagrant@homestead:/usr/src/mongo-php-driver$ sudo bash -c "echo 'extension=mongodb.so' > /etc/php/5.6/mods-available/mongo.ini"
vagrant@homestead:/usr/src/mongo-php-driver$ sudo ln -s /etc/php/5.6/mods-available/mongo.ini /etc/php/5.6/cli/conf.d/20-mongo.ini
vagrant@homestead:/usr/src/mongo-php-driver$ sudo ln -s /etc/php/5.6/mods-available/mongo.ini /etc/php/5.6/fpm/conf.d/20-mongo.ini
vagrant@homestead:/usr/src/mongo-php-driver$ sudo service php5.6-fpm restart
vagrant@homestead:/usr/src/mongo-php-driver$ sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php7.0-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
php7.0-dev is already the newest version (7.0.33-11+ubuntu18.04.1+deb.sury.org+1).
0 upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
vagrant@homestead:/usr/src/mongo-php-driver$ phpize7.0
Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012
vagrant@homestead:/usr/src/mongo-php-driver$ ./configure --with-php-config=/usr/bin/php-config7.0 > /dev/null
vagrant@homestead:/usr/src/mongo-php-driver$ make clean > /dev/null
vagrant@homestead:/usr/src/mongo-php-driver$ make >/dev/null 2>&1
vagrant@homestead:/usr/src/mongo-php-driver$ sudo make install
Installing shared extensions:     /usr/lib/php/20151012/
vagrant@homestead:/usr/src/mongo-php-driver$ sudo bash -c "echo 'extension=mongodb.so' > /etc/php/7.0/mods-available/mongo.ini"
vagrant@homestead:/usr/src/mongo-php-driver$ sudo ln -s /etc/php/7.0/mods-available/mongo.ini /etc/php/7.0/cli/conf.d/20-mongo.ini
vagrant@homestead:/usr/src/mongo-php-driver$ sudo ln -s /etc/php/7.0/mods-available/mongo.ini /etc/php/7.0/fpm/conf.d/20-mongo.ini
vagrant@homestead:/usr/src/mongo-php-driver$ sudo service php7.0-fpm restart
vagrant@homestead:/usr/src/mongo-php-driver$ sudo DEBIAN_FRONTEND=noninteractive apt-get -y install php7.1-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
php7.1-dev is already the newest version (7.1.32-1+ubuntu18.04.1+deb.sury.org+1).
0 upgraded, 0 newly installed, 0 to remove and 113 not upgraded.
vagrant@homestead:/usr/src/mongo-php-driver$ phpize7.1
Configuring for:
PHP Api Version:         20160303
Zend Module Api No:      20160303
Zend Extension Api No:   320160303
vagrant@homestead:/usr/src/mongo-php-driver$ ./configure --with-php-config=/usr/bin/php-config7.1 > /dev/null
vagrant@homestead:/usr/src/mongo-php-driver$ make clean > /dev/null
vagrant@homestead:/usr/src/mongo-php-driver$ make >/dev/null 2>&1
vagrant@homestead:/usr/src/mongo-php-driver$ sudo make install
Installing shared extensions:     /usr/lib/php/20160303/
vagrant@homestead:/usr/src/mongo-php-driver$ sudo bash -c "echo 'extension=mongodb.so' > /etc/php/7.1/mods-available/mongo.ini"
vagrant@homestead:/usr/src/mongo-php-driver$ sudo ln -s /etc/php/7.1/mods-available/mongo.ini /etc/php/7.1/cli/conf.d/20-mongo.ini
vagrant@homestead:/usr/src/mongo-php-driver$ sudo ln -s /etc/php/7.1/mods-available/mongo.ini /etc/php/7.1/fpm/conf.d/20-mongo.ini
vagrant@homestead:/usr/src/mongo-php-driver$ sudo service php7.1-fpm restart
vagrant@homestead:/usr/src/mongo-php-driver$ phpize7.2
Configuring for:
PHP Api Version:         20170718
Zend Module Api No:      20170718
Zend Extension Api No:   320170718
autoconf: warning: both `configure.ac' and `configure.in' are present.
autoconf: warning: proceeding with `configure.ac'.

autoheader: 'configure.ac' and 'configure.in' both present.
autoheader: proceeding with 'configure.ac'
vagrant@homestead:/usr/src/mongo-php-driver$ ./configure --with-php-config=/usr/bin/php-config7.2 > /dev/null
vagrant@homestead:/usr/src/mongo-php-driver$ make clean > /dev/null
vagrant@homestead:/usr/src/mongo-php-driver$ make >/dev/null 2>&1
vagrant@homestead:/usr/src/mongo-php-driver$ sudo make install
Installing shared extensions:     /usr/lib/php/20170718/
vagrant@homestead:/usr/src/mongo-php-driver$ sudo bash -c "echo 'extension=mongodb.so' > /etc/php/7.2/mods-available/mongo.ini"
vagrant@homestead:/usr/src/mongo-php-driver$ sudo ln -s /etc/php/7.2/mods-available/mongo.ini /etc/php/7.2/cli/conf.d/20-mongo.ini
vagrant@homestead:/usr/src/mongo-php-driver$ sudo ln -s /etc/php/7.2/mods-available/mongo.ini /etc/php/7.2/fpm/conf.d/20-mongo.ini
vagrant@homestead:/usr/src/mongo-php-driver$ sudo service php7.2-fpm restart
vagrant@homestead:/usr/src/mongo-php-driver$
vagrant@homestead:/usr/src/mongo-php-driver$ phpize7.3
Configuring for:
PHP Api Version:         20180731
Zend Module Api No:      20180731
Zend Extension Api No:   320180731
autoconf: warning: both `configure.ac' and `configure.in' are present.
autoconf: warning: proceeding with `configure.ac'.
autoheader: 'configure.ac' and 'configure.in' both present.
autoheader: proceeding with 'configure.ac'
vagrant@homestead:/usr/src/mongo-php-driver$ ./configure --with-php-config=/usr/bin/php-config7.3 > /dev/null
vagrant@homestead:/usr/src/mongo-php-driver$ make clean > /dev/null
vagrant@homestead:/usr/src/mongo-php-driver$ make >/dev/null 2>&1
vagrant@homestead:/usr/src/mongo-php-driver$ sudo make install
Installing shared extensions:     /usr/lib/php/20180731/
vagrant@homestead:/usr/src/mongo-php-driver$ sudo bash -c "echo 'extension=mongodb.so' > /etc/php/7.3/mods-available/mongo.ini"
vagrant@homestead:/usr/src/mongo-php-driver$ sudo ln -s /etc/php/7.3/mods-available/mongo.ini /etc/php/7.3/cli/conf.d/20-mongo.ini
vagrant@homestead:/usr/src/mongo-php-driver$ sudo ln -s /etc/php/7.3/mods-available/mongo.ini /etc/php/7.3/fpm/conf.d/20-mongo.ini
vagrant@homestead:/usr/src/mongo-php-driver$ sudo service php7.3-fpm restart
vagrant@homestead:/usr/src/mongo-php-driver$ phpize7.4
Configuring for:
PHP Api Version:         20190529
Zend Module Api No:      20190529
Zend Extension Api No:   320190529
autoconf: warning: both `configure.ac' and `configure.in' are present.
autoconf: warning: proceeding with `configure.ac'.
autoheader: 'configure.ac' and 'configure.in' both present.
autoheader: proceeding with 'configure.ac'
vagrant@homestead:/usr/src/mongo-php-driver$ ./configure --with-php-config=/usr/bin/php-config7.4 > /dev/null
vagrant@homestead:/usr/src/mongo-php-driver$ make clean > /dev/null
vagrant@homestead:/usr/src/mongo-php-driver$ make >/dev/null 2>&1
vagrant@homestead:/usr/src/mongo-php-driver$ sudo make install
Installing shared extensions:     /usr/lib/php/20190529/
vagrant@homestead:/usr/src/mongo-php-driver$ sudo bash -c "echo 'extension=mongodb.so' > /etc/php/7.4/mods-available/mongo.ini"
vagrant@homestead:/usr/src/mongo-php-driver$ sudo ln -s /etc/php/7.4/mods-available/mongo.ini /etc/php/7.4/cli/conf.d/20-mongo.ini
vagrant@homestead:/usr/src/mongo-php-driver$ sudo ln -s /etc/php/7.4/mods-available/mongo.ini /etc/php/7.4/fpm/conf.d/20-mongo.ini
vagrant@homestead:/usr/src/mongo-php-driver$ sudo service php7.4-fpm restart
vagrant@homestead:/usr/src/mongo-php-driver$ mongo admin --eval "db.createUser({user:'homestead',pwd:'secret',roles:['root']})"
MongoDB shell version v4.0.13
connecting to: mongodb://127.0.0.1:27017/admin?gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("1a49eb6a-a994-47f9-8e99-0d989b9223ce") }
MongoDB server version: 4.0.13
Successfully added user: { "user" : "homestead", "roles" : [ "root" ] }
vagrant@homestead:/usr/src/mongo-php-driver$

I'll need an error to trace down.

gekkone commented 5 years ago

I beg your pardon. Homestead installation was aborted it resulted in an error, clean install solved the problem

svpernova09 commented 5 years ago

Glad you fixed it.