How to install MongoDB on amazon linux and connect it to Laravel-jenssegers MongoDB? - mongodb

I followed this for installing mongodb on Amazon Linux. I have a laravel project to host on my amazon Linux server. Jenssegers mongoDB is already installed in the framework while developing the web app (in Ubuntu).
The web app was developed in Ubuntu 12.04 LTS, and it was working properly.
When I hosted it on the server I am getting error:
Class 'MongoClient' not found
My questions are
1. How can I configure mongodb on amazon linux?
(now when i do sudo service mongod restart it is showing FAILED)
2.What all are the configurations that must be changed in the web app(which is done in Ubuntu) in order to use mongodb?
I am using PHP54
httpd 24
Laravel 4.2

Mongo client is not included in the base PHP API. Instead it needs to be installed as extension.
Its not part of the base repository, but it is part of EPEL which can be enabled on Amazon Linux. You can also install it via pecl (Provided you have installed the tools to compile extensions). Use one of the two commands to install the extension:
yum install php-pecl-mongo --enablerepo=epel
OR
pecl install mongo
Once the installation is complete, restart apache and/or php.

Related

install pg_stat_monitor on edb advanced server

I started playing with edb advanced server and got it installed on Rocky Linux. It is working fine with no issues.
I now want to install percona pg_stat_monitor extension using dnf.
This extension is available via PostgreSQL dnf repositories.
When I install the extension via PostgreSQL dnf repositories, It installs postgres server with it as a dependency.
This results in 2 postgres instances running on my server. i.e. 1 from edb and the other from PostgreSQL.
Is there a way to fix this issue?
All I want is to install the postgres pg_stat_monitor extension on my edb Advanced server.
thanks

FreeBSD: upgrade MongoDB server from 2.6 to 3.0

Running MongoDB v2.6 Server on FreeBSD operating system, I am looking for a way to upgrade the MongoDB version to at least v3.0. According to MongoDB website, I need to replace the binaries but I am not able to find appropriate download binaries for FreeBSD there MongoDB download website. Alternatively I had hoped, I could upgrade the binaries using pkg package manager but I don't know which command to use to upgrade to a specific version. I am looking for something like:
pseudocode:
sudo pkg upgrade mongod v3.03
I've been crawling the web for days now to find a download link for Freebsd binaries for Version 3.0x or right upgrade command using pkg package manager.
Solution is: using the command "pkg install mongodb36-3.6.6_2" as suggested in the link by Valijon will first deinstall a previous version and then install v3.6 of MongoDB Server. Just what I was looking for.

i can't able to run composer install command under my /var/www/html/magento2

i am facing problem while setting up the magento server on Centos7 i have php 7.3 install in my centos ec2 instance
installed php 7.3.5, also tried to update composer using $composer update command it doesn't work
composer install
Magento 2 does not support php 7.3 as of yet. A significant numer of core modules specify the php versions they will allow. You will need to change your php version. See this link for the supported versions. https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html

Download RPM on Windows PC then install on Centos server

I'm really stuck in installing services in Centos server. I almost browse all the pages in Google result. I'm a Windows user and very new in Linux environment, so it makes me difficult to understand all the results from Google.
The server doesn't have option to connect to the internet. Based on my research, my only way is to download all the RPM files in a machine with internet then transfer it to my server.
Problem: I cannot find the official package list of YUM so I can download it one by one like the https://bower.io/search/. There's a lot of downloadable files showing if I type in Google "YUM php7 rpm".
Edit: I am currently using YUM because I don't know any other way to install packages in Centos. I only want to install the following :
php7
nodejs
composer
supervisor
nginx
I don't have any access to any media. I just remotely access it via putty and Filezilla. But I have root access.

Is it possible to install the Memcached extension for PHP 7 alongside a PHP 5.6 install?

Is it possible to install the Memcached extension for PHP 7 on CentOS7 alongside a Memcached with PHP 5.6 install? The server is running DirectAdmin custombuild 2.0 which lets you run 2 PHP versions alongside each other.
And this Memcached installation guide is for Debian, what would be different / would it work for CentOS7?