Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6025

How to install mongodb inside lampp folder in linux ubuntu 22?

$
0
0

So I am trying to install mongodb inside lampp folder because my project is using path/opt/lampp/etc/php.ini for php.ini instead of /etc/php/8.2/cli/php.iniproblem is that Class MongoDB\Driver\Manager not found error occurring so when I used php artisan serve the problem is solved I want to run my project without artisan and when i run without artisan it starts using cli /opt/lampp/etc/php.ini instead of /etc/php/8.2/cli/php.ini that is why this error is happening

So I am trying to install mongodb inside lampp folder because my project is using path/opt/lampp/etc/php.ini for php.ini instead of /etc/php/8.2/cli

I have tried sudo pecl install mongodbwhich installed mongodb inside /etc/php/8.2/cli instead of /opt/lampp/ folderalso tried many adding php_mongodb.dll file inside /opt/lampp/include/php/ext but it is not working

also tried to run some commands but they did not workplease help


Viewing all articles
Browse latest Browse all 6025

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>