Configuration and administration [Документация VAS Experts]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:dpi:dpi_components:dpiui:configuration [2025/02/11 07:27] – [File .env] elena.krasnobryzhen:dpi:dpi_components:dpiui:configuration [2026/05/07 14:42] (current) – [Migrating the GUI from CentOS 7 to VEOS] elena.krasnobryzh
Line 1: Line 1:
 ====== Configuration and administration ====== ====== Configuration and administration ======
-{{indexmenu_n>3}}+{{indexmenu_n>4}}
  
 ===== File .env ===== ===== File .env =====
Line 93: Line 93:
   - Disable the requiretty requirement in the file ''/etc/sudoers'' <code bash> sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers</code>   - Disable the requiretty requirement in the file ''/etc/sudoers'' <code bash> sed -i "s/^.*requiretty/#Defaults requiretty/" /etc/sudoers</code>
  
 +
 +=====Migrating the GUI from CentOS 7 to VEOS=====
 +  - Install the latest version of the GUI on a **new** machine. For more information, see [[en:dpi:dpi_components:dpiui:install_and_update:install]]
 +  - Update the GUI to the latest version on an **old** machine. For more information, see [[en:dpi:dpi_components:dpiui:install_and_update:update]]
 +  - Disable all cron jobs related to the GUI on the **old machine**: <code bash># Back up current crontab jobs
 +crontab -l > ./cron_backup.txt 
 +
 +# Delete all user tasks
 +crontab -r
 +
 +# Stopping the cron system service
 +sudo service crond stop</code>
 +  - Export the dpiui2 database from the **old** machine using the mysqldump utility.\\ :!: **Make sure you have enough free disk space beforehand!** <code bash>. /var/www/html/dpiui2/backend/.env
 +
 +mysqldump --add-drop-table --single-transaction=TRUE -u $DB_USERNAME --password=$DB_PASSWORD -h $DB_HOST -P $DB_PORT $DB_DATABASE | gzip > dpiui2.sql.gz</code>
 +  - Back up the contents of the **old** machine in the ''/var/www/html/dpiui2'' directory: <code bash>sudo tar -zcvpf var_www_html_dpiui2.tar.gz /var/www/html/dpiui2/*</code>
 +  - Import the ''dpiui2.sql.gz'' file created in step 4 onto the **new** machine <code bash>. /var/www/html/dpiui2/backend/.env
 +
 +gunzip < dpiui2.sql.gz | mysql -u $DB_USERNAME --password=$DB_PASSWORD $DB_DATABASE</code>
 +  - Upload the contents of the archive created in step 5 to the **new** machine, into the ''/var/www/html/dpiui2'' folder: <code bash>sudo tar -xzpf var_www_html_dpiui2.tar.gz -C  /</code>
 +  - Reinstall the GUI package on a **new** machine: <code bash>yum reinstall dpiui2</code>
 +  - Verify that everything is working correctly on the **new** GUI and that all policies/services have been migrated
 +  - Run the uninstallation script on the **old** machine: <code bash>source <(curl https://vasexperts.ru/install/dpiui2-rpm_uninstall.sh)</code>