Install mongoDB server with php support
sudo apt-get install mongodb mongo-clients php5-dev
Now download the official mongoDB php driver from github using the following command
git clone https://github.com/mongodb/mongo-php-driver.git
Now go to the directory and run the following commands
cd mongo-php-driver
phpize
./configure
sudo make install
Now you need to copy the driver to php extenstion directory you can find this using the following command
php -i | grep extension_dir
Once you know the copy
sudo cp modules/mongo.so /path/to/php/extension_dir/
Now create a file to load the driver into php at start up
sudo vi /etc/php5/conf.d/mongo.ini
with the line:
extension=mongo.so
Save and exit the file
Finally restart apache server using the following command
sudo /etc/init.d/apache2 restart
Testing
If you want to test this go grab a copy of the excellent phpMoAdmin and drop the file anywhere you load it through a browser.
Via WGO
Penjelasan Materi Lainnya
cara menerangkan layar di ubuntu debian linux - brightness indicator
Install Brightness indicator on ubuntuDownload deb package from here and install by double clicking on it.After installing the package, add the program to your startup programs:Run System Settings » Startup Applications » ‘Add’Name: indicator-bright...
cara install KNemo di ubuntu debian linux - aplikasi monitor jaringan
Install knemo on ubuntuopen the terminal and run the following commandsudo apt-get install knemoNote:-This tool is mainly for KDE if you try to install on ubuntu it will install many KDE packagesScreenshot
cara install FileZilla client 3.5.1 di ubuntu debian linux - ftp filemanager
Install filezilla 3.5.1 using PPAOpen th terminal and run the following commandssudo add-apt-repository ppa:n-muench/programs-ppasudo apt-get updatesudo apt-get install filezilla
cara install MongoDB di ubuntu linux server - aplikasi buat database
Install MongoDB on ubuntu serverInstall mongoDB server with php supportsudo apt-get install mongodb mongo-clients php5-devNow download the official mongoDB php driver from github using the following commandgit clone https://github.com/mongodb/mongo-p...
cara install Grub Customizer 2.2 di ubuntu debian linux - aplikasi
untuk mengatur grub load
Install grub customizer 2.2 di ubuntuOpen the terminal and run the following commandssudo add-apt-repository ppa:danielrichter2007/grub-customizersudo apt-get updatesudo apt-get install grub-customizer
0 comments:
Post a Comment