This guide will walk you through the steps to upgrade your registry system. The process involves backing up your current setup, cloning the latest code, making database changes, and updating configuration files. This upgrade guide is a work in progress, and some instructions might be generic or unclear, so please tune them for your specific situation.
- Backup Web and Registry Directories:
cp -r /var/www /var/www_backup
cp -r /opt/registry /opt/registry_backup
- Backup Database:
mysqldump -u your_username -p your_database_name > database_backup.sql
- Clone the Repository:
git clone https://github.com/getnamingo/registry /opt/upgrade
- Access MySQL Terminal:
mysql -u your_username -p
- Update
registrar
Table:
USE registry;
ALTER TABLE registrar
CHANGE COLUMN `vat_number` `vatNumber` varchar(30) DEFAULT NULL,
ADD COLUMN `companyNumber` varchar(30) DEFAULT NULL BEFORE `vatNumber`;
UPDATE settings SET value = NULL WHERE name = 'launch_phases';
- Access MySQL Terminal:
mysql -u your_username -p
- Update
registrar
Table:
USE registry;
ALTER TABLE `domain_price`
ADD `registrar_id` int(10) unsigned NULL AFTER `tldid`;
ALTER TABLE `domain_price`
ADD UNIQUE `tldid_command_registrar_id` (`tldid`, `command`, `registrar_id`),
DROP INDEX `unique_record`;
ALTER TABLE `domain_restore_price`
ADD `registrar_id` int(10) unsigned NULL AFTER `tldid`;
ALTER TABLE `domain_restore_price`
ADD UNIQUE `tldid_registrar_id` (`tldid`, `registrar_id`),
DROP INDEX `tldid`;
Warning: If you have already activated the database audit feature, you will need to update the respective audit table to reflect these changes as well.
- Add
minimum_data
Setting inconfig.php
/.env
Files: Open your configuration files and add the following setting:
// In config.php
'minimum_data' => false, // or true based on your requirement
// In .env
MINIMUM_DATA=false // or true based on your requirement
- Add
zone_mode
Setting inconfig.php
/.env
Files:
// In config.php
'zone_mode' => 'nice', // or 'default' based on your requirement
// In .env
ZONE_MODE=nice // or default based on your requirement
- Change records
whois_ipv4
/whois_ipv6
/epp_host_ipv6
/das_ipv4
/das_ipv6
inconfig.php
Files for WHOIS/DAS/EPP components to match the new version.
-
Make sure to preserve the old
.env
andconfig.php
files. -
Replace Files in
/opt/registry
and/var/www
:
cp -r /opt/upgrade/* /opt/registry/
cp -r /opt/upgrade/cp/* /var/www/
cp -r /opt/upgrade/whois/* /var/www/
- Delete All Folders in
/var/www/cp/cache
:
find /var/www/cp/cache/* -type d -exec rm -rf {} +
- Run
composer update
in each component directory:
/opt/registry/epp
/opt/registry/das
/opt/registry/rdap
/opt/registry/whois/port43
/var/www/cp
/var/www/whois
systemctl restart caddy
systemctl restart epp
systemctl restart whois
systemctl restart rdap
systemctl restart das
Following these steps will ensure that your registry system is upgraded successfully. If you encounter any issues, please refer to the documentation or contact support for assistance.