Title: ACJ MONGODB SYNC
Author: Arun Chaitanya Jami
Published: <strong>2024 年 7 月 11 日</strong>
Last modified: 2024 年 7 月 16 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/acj-mongodb-sync/assets/icon-256x256.png?rev=3116421)

# ACJ MONGODB SYNC

 作者：[Arun Chaitanya Jami](https://profiles.wordpress.org/iamarunchaitanyajami/)

[下载](https://downloads.wordpress.org/plugin/acj-mongodb-sync.1.2.0.zip)

 * [详情](https://cn.wordpress.org/plugins/acj-mongodb-sync/#description)
 * [评价](https://cn.wordpress.org/plugins/acj-mongodb-sync/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/acj-mongodb-sync/#developers)

 [支持](https://wordpress.org/support/plugin/acj-mongodb-sync/)

## 描述

ACJ MONGODB SYNC is a plugin that help you sync data from WordPress to Mongo Db.
It completely works in backend and will not break any part of the site while
 users
having the smooth WordPress Experience.

### Currently Supports

 * All Options Sync
 * All Terms Sync
 * Any Post Type Sync.
 * All Users.

### Requirements

 * Requires PHP: 8.0 & greater

### Contributors

 * Contributors: iamarunchaitanyajami

### Pre-requisites

This plugin required MONGODB package an extension enabled. Please follow the below
process.

#### 1. Install Required Dependencies

Make sure you have the necessary SSL libraries installed on your system. On Debian/
Ubuntu-based systems, you can install them using:
 `sudo apt-get install -y openssl
libssl-dev libcurl4-openssl-dev pkg-config libssl-dev` On CentOS/RHEL-based systems,
you might need to install `openssl-devel`: `sudo yum install openssl openssl-devel`

#### 2. Install MongoDB PHP Extension

You can install the MongoDB PHP extension using PECL (PHP Extension Community Library).
Make sure you have pecl installed on your system. Then, run the following command:

    ```
    `
    ```

apt-get update

apt-get install libmongoc-1.0-0

pecl install mongodb
 `

Follow the prompts to complete the installation process.

#### 3. Enable the MongoDB Extension

Once the extension is installed, you need to enable it in your PHP configuration.
Find your php.ini file (you can locate it by running php –ini in the command line),
and add the following line:

To find where php.ini file, use below command.

    ```
    `
    ```

php -i | grep ‘php.ini’
 `

Then add below code

    ```
    `
    ```

extension=mongodb.so
 mongodb.ssl = true `

Make sure to restart your web server (e.g., Apache or Nginx) after making this change
for the configuration to take effect.

#### 4. Verify Installation

You can verify that the MongoDB PHP extension is installed and enabled by running
the following command in your terminal:

    ```
    `
    ```

php -m | grep mongodb
 `

If the MongoDB extension is properly installed and enabled, you should see mongodb
in the list of enabled modules.

#### 5. Handling Installation Issues

If you encounter any issues during the installation process, make sure you have 
the necessary build tools and development headers installed on your system. You 
may need packages like `php-dev`, `gcc`, `make`, and others depending on your operating
system.

Additionally, refer to the official MongoDB PHP extension documentation for troubleshooting
tips and platform-specific installation instructions.

Once you’ve installed and enabled the MongoDB PHP extension, the error you encountered
should be resolved, and your PHP script should be able to interact with MongoDB 
successfully.

### Plugin Installation

This section describes how to install the plugin and get it working.

e.g.

 1. Upload the plugin files to the `/wp-content/plugins/acj-mongodb-sync` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress

## 屏幕截图

 * [[
 * Go to Mangodb Settings Screen.
 * [[
 * Add MangoDb URI
 * [[
 * Select the post type, taxonomy data and Post Status data to sync.
 * [[

## 常见问题

 * How can we sync custom data and store in MangoDb?
    - We have custom functions defined to create tables and send data to the tables
      created
    - Example :
    - `acjpd_mongodb_push_data` will help data to push to custom tables.
    - `acjpd_mongodb_delete_data` will help data to delete from custom tables.
 * Will this plugin works for WordPress Multisite?
    - Yes
 * Will this plugin works for WordPress Single Site?
    - Yes
 * Will this plugin works for WordPress WooCommerce?
    - No for now, but we will be extending it in further versions.

## 评价

此插件暂无评价。

## 贡献者及开发者

「ACJ MONGODB SYNC」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Arun Chaitanya Jami ](https://profiles.wordpress.org/iamarunchaitanyajami/)

[帮助将「ACJ MONGODB SYNC」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/acj-mongodb-sync)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/acj-mongodb-sync/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/acj-mongodb-sync/)，或通过[RSS](https://plugins.trac.wordpress.org/log/acj-mongodb-sync/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/acj-mongodb-sync/)。

## 更新日志

### 1.2.0

 * Add multisite data sync for blog, site meta.
 * Fixed Attachments not sync issue.
 * Move settings to network admin when used on multisite.
 * Fixed read.md file UI changes.

### 1.1.0

 * Added No GPL-compatible license declared.
 * Fixed/removed Unneeded Folders.
 * More Generic function/class/define/namespace/option names.

### 1.0.6

 * Sync Users to Mongodb.
 * Fix: Post meta sync in cron.

### 1.0.5

 * Cli increase per page limit.

### 1.0.4

 * Cli commands to sync the untracked posts and terms from the site.

### 1.0.3

 * Bug fix ACTION HOOKS.

### 1.0.2

 * Update Read.md file.

### 1.0.1

 * Allows users to select custom post types to sync.
 * Allows users to select custom post status to sync.
 * Allows users to select custom Terms to sync.
 * Flexibility for developers to push data for custom tables via allowed functions.

### 1.0.0

 * Initial plugin.

## 额外信息

 *  版本 **1.2.0**
 *  最后更新：**2 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.3 或更高版本 **
 *  已测试的最高版本为 **6.5.8**
 *  PHP 版本 ** 8.0 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/acj-mongodb-sync/)
 * 标签
 * [mongodb](https://cn.wordpress.org/plugins/tags/mongodb/)
 *  [高级视图](https://cn.wordpress.org/plugins/acj-mongodb-sync/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/acj-mongodb-sync/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/acj-mongodb-sync/reviews/)

## 贡献者

 *   [ Arun Chaitanya Jami ](https://profiles.wordpress.org/iamarunchaitanyajami/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/acj-mongodb-sync/)