Skip to content

Commit f89e041

Browse files
authored
Update README.md
1 parent b5b9404 commit f89e041

File tree

1 file changed

+40
-8
lines changed

1 file changed

+40
-8
lines changed

README.md

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,47 @@
1-
# FOSSBilling Module Installation instructions (FRED Registry)
1+
# Compatibility
22

3-
1. Download and install https://fossbilling.org/
3+
This module is designed for use with FRED Registry (https://fred.nic.cz/en/).
44

5-
2. Place fred.php in `[FOSSBilling]/library/Registrar/Adapter`, place your key.pem and cert.pem files in the same directory.
5+
# FOSSBilling Module Installation instructions
66

7-
3. Activate from Configuration -> Domain registration -> New domain registrar
7+
## 1. Download and Install FOSSBilling:
88

9-
4. Configure from **Registrars** tab
9+
Start by downloading the latest version of FOSSBilling from the official website (https://fossbilling.org/). Follow the provided instructions to install it.
1010

11-
5. Add a new TLD using the module from the **New top level domain** tab.
11+
## 2. Installation and Configuration of Registrar Adapter:
1212

13-
## TODO
13+
First, download this repository which contains the fred.php file. After successfully downloading the repository, move the fred.php file into the `[FOSSBilling]/library/Registrar/Adapter` directory.
1414

15-
- add sync
15+
Next, rename `fred.php` as `YourRegistryName.php`. Please ensure to replace "**YourRegistryName**" with the actual name of your registry.
16+
17+
Proceed to open the newly renamed file and locate the phrase "**Registrar_Adapter_FRED**". Replace it with "**Registrar_Adapter_YourRegistryName**".
18+
19+
## 3. Addition of Synchronization Scripts:
20+
21+
There are two additional scripts in the repository: **fredSync.php** and **fredEpp.php**. These need to be placed in the main `[FOSSBilling]` directory.
22+
23+
Rename `fredSync.php` to `YourRegistryNameSync.php`.
24+
25+
Edit `fredSync.php` and replace **FRED** in the line `$registrar = "FRED";` with the name of your registry provided in step 2.
26+
27+
## 4. Setting Up the Cron Job:
28+
29+
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.
30+
31+
Add the following cron job:
32+
33+
`0 0,12 * * * php /var/www/html/YourRegistryNameSync.php`
34+
35+
This command schedules the synchronization script to run once every 12 hours (at midnight and noon).
36+
37+
## 5. Activate the Domain Registrar Module:
38+
39+
Within FOSSBilling, go to **System -> Domain Registration -> New Domain Registrar** and activate the new domain registrar.
40+
41+
## 6. Registrar Configuration:
42+
43+
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.
44+
45+
## 7. Adding a New TLD:
46+
47+
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.

0 commit comments

Comments
 (0)