[]ubuntu on xampp php.ini open MongoDB extension php file always parse failed!

Source: Internet
Author: User
[Online etc]ubuntu under xampp php.ini open MongoDB extension php file always parse failed!!!
This post was last edited by gdf87521 on 2013-01-09 23:36:10

From MongoDB official copy configuration file, configuration complete, restart Lampp, access localhost, always pop up a download dialog box
, can you tell me where this is wrong? I delete the configuration, which is right on the. Also, I configure the information to be placed at the back of the entire php.ini content.

The mongo.so file is under my/opt/lampp/lib/php/extensions/no-debug-non-zts-20100525 directory.

extension= "Mongo.so"
[MONGO]
; If the driver should reconnect to MONGO
Mongo.auto_reconnect = True

; Whether to allow persistent connections
Mongo.allow_persistent = On

; Maximum Number of persistent connections ( -1 means unlimited)
Mongo.max_persistent =-1

; Maximum Number of links (persistent and non-persistent,-1 means unlimited)
Mongo.max_connections =-1

; Default Host for MONGO connection
Mongo.default_host = www.example.com

; Default Port for MONGO database
Mongo.default_port = 42

; When saving files to the database, size of chunks to split them into
Mongo.chunk_size = 1024

; Specify an alternate character to $ to use for special DB functions ($set, $push, $exists, etc.)
Mongo.cmd = "$"
Mongo.auto_reconnect = Off
Mongo.allow_persistent = On
Mongo.max_persistent =-1
Mongo.max_connections =-1
Mongo.default_host = localhost
Mongo.default_port = 27017
Mongo.chunk_size = 262400


------Solution--------------------
Not configured, it looks like this is not being parsed properly.
This one
extension= "Mongo.so"

Do you specify an extension location earlier? Did not write the complete path to see
------Solution--------------------
You this is because mongo.so version does not cause fastcgi to start the failure, so when browsing the site PHP files can not be parsed properly.
Do not believe you try to php.ini in the configuration of the MONGO to screen out the restart Lampp, to ensure that the PHP file can be parsed

The solution is to download the Monngo,mongo installed with your operating system bit, do not use the RPM method
------Solution--------------------
That is, download the. tar.gz compressed package, unzip, and then./configur. Make && make install mode
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.