Mongo installation

I am trying to install mongo with php on my bluehost server. I ssh this command:

>pecl install mongo 

It goes through the whole process, but in the end I get the following:

 Build complete. Don't forget to run 'make test'. running: make INSTALL_ROOT="/home1/{myhostname}/tmp/pear/pear-build-{myhostname}P2D4wf/install-mongo-1.3.7" install Installing shared extensions: /home1/{myhostname}/tmp/pear/pear-build-{myhostname}P2D4wf/install-mongo-1.3.7/usr/lib64/php/modules/ running: find "/home1/{myhostname}/tmp/pear/pear-build-{myhostname}P2D4wf/install-mongo-1.3.7" | xargs ls -dils 22955452 4 drwxr-xr-x 3 {myhostname} {myhostname} 4096 May 4 23:52 /home1/{myhostname}/tmp/pear/pear-build-{myhostname}P2D4wf/install-mongo-1.3.7 22955521 4 drwxr-xr-x 3 {myhostname} {myhostname} 4096 May 4 23:52 /home1/{myhostname}/tmp/pear/pear-build-{myhostname}P2D4wf/install-mongo-1.3.7/usr 22955522 4 drwxr-xr-x 3 {myhostname} {myhostname} 4096 May 4 23:52 /home1/{myhostname}/tmp/pear/pear-build-{myhostname}P2D4wf/install-mongo-1.3.7/usr/lib64 22955523 4 drwxr-xr-x 3 {myhostname} {myhostname} 4096 May 4 23:52 /home1/{myhostname}/tmp/pear/pear-build-{myhostname}P2D4wf/install-mongo-1.3.7/usr/lib64/php 22955524 4 drwxr-xr-x 2 {myhostname} {myhostname} 4096 May 4 23:52 /home1/{myhostname}/tmp/pear/pear-build-{myhostname}P2D4wf/install-mongo-1.3.7/usr/lib64/php/modules 22955520 960 -rwxr-xr-x 1 {myhostname} {myhostname} 982160 May 4 23:52 /home1/{myhostname}/tmp/pear/pear-build-{myhostname}P2D4wf/install-mongo-1.3.7/usr/lib64/php/modules/mongo.so Build process completed successfully Installing '/usr/lib64/php/modules/mongo.so' ERROR: failed to write /usr/lib64/php/modules/mongo.so (copy(/usr/lib64/php/modules/mongo.so): failed to open stream: Read-only file system) 

What am I doing wrong?

+6
source share
3 answers

I had the same problem

You must have a VPS or Dedicated Server if you are hosted on Bluehost

Since you need access to the Root Directory

+2
source

The best way to install is to use Homebrew. Once the homegrown is installed, just use brew install mongodb

0
source

Source: https://habr.com/ru/post/944301/


All Articles