[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