[] Parsing failed when XAMPPphp. ini is enabled for mongodb extension PHP files on ubuntu!

Source: Internet
Author: User
[Online, etc.] in ubuntu XAMPPphp. ini, enabling mongodb extension PHP files always fails to be parsed !!! This post was last edited by gdf87521 from 2013-01-0923: 36: 10 and copied from the official mongodb & nbsp; configuration file. after the configuration is complete, restart lampp & nbsp; and access & nbsp; localhost always pops up a download dialog [online, etc.] XAMPP php under ubuntu. failed to parse the mongodb extension PHP file in ini !!!

This post was last edited by gdf87521 at 23:36:10

Copy the configuration file from the mongodb official website. after the configuration is complete, restart lampp and access localhost. a download dialog box is always displayed.
Where is the error? The configuration is correctly deleted. Also, I configured the information at the end 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 shocould 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
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 seems that this is not properly parsed.
This
Extension = "mongo. so"

Is there a specified extension location? You have not written the complete path.
------ Solution --------------------
This is because the version of mongo. so is incorrect, and fastcgi fails to be started. Therefore, php files cannot be parsed during website browsing.
If you don't believe it, try to disable the mongo configuration in php. ini and restart lampp to ensure that the php file can be parsed.

The solution is to download the monngo that is consistent with your operating system bit. The mongo installation is compiled and installed instead of rpm.
------ Solution --------------------
Download the .tar.gz package, decompress it, and install it in the./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.