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 menggunakan Stunnel - aplikasi pengaturan SSL untuk network daemons
The stunnel program is designed to work as an SSL encryption wrapper between remote client and local (inetd-startable) or remote server. It can be used to add SSL functionality to commonly used inetd daemons like POP2, POP3, and IMAP servers without ...
cara install XBMC lewat PPA di ubuntu debian linux - media player
XBMC is an award-winning free and open source (GPL) software media player and entertainment hub for digital media. XBMC is available for Linux, OSX, and Windows. Created in 2003 by a group of like minded programmers, XBMC is a non-profit project run ...
cara Menggabungkan (integrasi)Active Directory dan CentrifyDirectControl Express di ubuntu debian linux
cara Menggabungkan (integrasi)Active Directory dengan Centrify DirectControl Express , Many Ubuntu users and Administrators struggle with Active Directory integration. One approach that folks are using is the free offerings from Centrify Ex...
cara install ClipGrab lewat PPA di ubuntu debian linux - youtube
downloader dan converter
ClipGrab is a free software for downloading and converting online videos from many sites like YouTube or Vimeo.ClipGrab can download from the following sites: YouTube, Clipfish, Collegehumor, Dailymotion, MyVideo, MySpass, Sevenload, Tudou, Vimeo.Dow...
cara install Shutter 0.88 lewat PPA di ubuntu debian linux - aplikasi
screen shot
Shutter is a feature-rich screenshot program. You can take a screenshot of a specific area, window, your whole screen, or even of a website – apply different effects to it, draw on it to highlight points, and then upload to an image hosting site, all...
0 comments:
Post a Comment