From 7925cf862b2e360a0b0d94f6393a7c1615d414c7 Mon Sep 17 00:00:00 2001 From: Pinga <121483313+getpinga@users.noreply.github.com> Date: Thu, 13 Jul 2023 15:37:29 +0300 Subject: [PATCH] Update README.md --- README.md | 40 +++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 21bfdbb..0c37f96 100644 --- a/README.md +++ b/README.md @@ -32,12 +32,42 @@ This module is supposed to work with: # FOSSBilling Module Installation instructions -1. Download and install https://fossbilling.org/ +## 1. Download and Install FOSSBilling: -2. Place epp.php in `[FOSSBilling]/library/Registrar/Adapter`, place your key.pem and cert.pem files in the same directory. +Start by downloading the latest version of FOSSBilling from the official website (https://fossbilling.org/). Follow the provided instructions to install it. -3. Activate from Configuration -> Domain registration -> New domain registrar +## 2. Installation and Configuration of Registrar Adapter: -4. Configure from **Registrars** tab +First, download this repository which contains the epp.php file. After successfully downloading the repository, move the epp.php file into the `[FOSSBilling]/library/Registrar/Adapter` directory. -5. Add a new TLD using the module from the **New top level domain** tab. +Next, rename `epp.php` as `YourRegistryName.php`. Please ensure to replace "**YourRegistryName**" with the actual name of your registry. + +Proceed to open the newly renamed file and locate the phrase "**Registrar_Adapter_EPP**". Replace it with "**Registrar_Adapter_YourRegistryName**". + +## 3. Addition of Synchronization Scripts: + +There are two additional scripts in the repository: **eppSync.php** and **Tembo.php**. These need to be placed in the main `[FOSSBilling]` directory. + +Rename `eppSync.php` to `YourRegistryNameSync.php`. + +## 4. Setting Up the Cron Job: + +You need to set up a cron job that runs the sync module twice a day. Open crontab using the command `crontab -e` in your terminal. + +Add the following cron job: + +`0 0,12 * * * php /var/www/html/YourRegistryNameSync.php` + +This command schedules the synchronization script to run once every 12 hours (at midnight and noon). + +## 5. Activate the Domain Registrar Module: + +Within FOSSBilling, go to **System -> Domain Registration -> New Domain Registrar** and activate the new domain registrar. + +## 6. Registrar Configuration: + +Next, head to the "**Registrars**" tab. Here, you'll need to enter your specific configuration details, including the path to your SSL certificate and key. + +## 7. Adding a New TLD: + +Finally, add a new Top Level Domain (TLD) using your module from the "**New Top Level Domain**" tab. Make sure to configure all necessary details, such as pricing, within this tab.