{"id":6489,"date":"2025-12-19T21:57:04","date_gmt":"2025-12-19T20:57:04","guid":{"rendered":"https:\/\/roccadomenico.it\/wordpress\/?p=6489"},"modified":"2025-12-25T17:06:06","modified_gmt":"2025-12-25T16:06:06","slug":"vtiger-8-4-migration-on-other-hardware","status":"publish","type":"post","link":"https:\/\/roccadomenico.it\/wordpress\/vtiger-8-4-migration-on-other-hardware\/","title":{"rendered":"Vtiger 8.4 migration on other hardware"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"6489\" class=\"elementor elementor-6489\">\n\t\t\t\t<div class=\"elementor-element elementor-element-15bb2f2 e-flex e-con-boxed e-con e-parent\" data-id=\"15bb2f2\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-7839539 elementor-widget elementor-widget-text-editor\" data-id=\"7839539\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Presupposti: Vtigercrm funzionante e configurato su server#1 si vuole trasferire su altro server#2<\/p><p>Nel mio caso server#1 e server#2 sono macchine ubuntu 22.04<\/p><p>Sul server#2 che dovr\u00e0 ospitare il vtigercrm trasferito ho installato<\/p><ul><li>la stessa distro ubuntu<\/li><li>la stessa versione php 8.1<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-9bb94a5 e-flex e-con-boxed e-con e-parent\" data-id=\"9bb94a5\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6204586 elementor-widget elementor-widget-text-editor\" data-id=\"6204586\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Su server#2<\/p><p>installa\u00a0<\/p><ul><li>apache<\/li><li>mysql<\/li><li>phpmyadmin (non indispensabile se sai usare la riga di comando con mysql)<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-b7080e1 e-flex e-con-boxed e-con e-parent\" data-id=\"b7080e1\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e1e745c elementor-widget elementor-widget-text-editor\" data-id=\"e1e745c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h4><strong>INSTALLA VTIGERCRM<\/strong><\/h4><p><strong>sudo apt install php libapache2-mod-php php-mysql php-curl php-json php-cgi php-imap php-cli php-gd php-zip php-mbstring php-xml -y<\/strong><\/p><p>Once installed, configure PHP by setting the necessary parameters in the php.ini file.<\/p><p><strong>sudo nano \/etc\/php\/8.3\/apache2\/php.ini<\/strong><\/p><p>Modify the following lines to the php.ini file.<\/p><p><strong>memory_limit = 256M<\/strong><br \/><strong>max_execution_time = 60<\/strong><br \/><strong>error_reporting = E_ERROR &amp; ~E_NOTICE &amp; ~E_STRICT &amp; ~E_DEPRECATED<\/strong><br \/><strong>display_errors = Off<\/strong><br \/><strong>short_open_tag = Off<\/strong><\/p><p>download ultima versione vtigercrm<\/p><p><strong>wget -O vtigercrm.tar.gz https:\/\/sourceforge.net\/projects\/vtigercrm\/files\/latest\/download<\/strong><\/p><p>Next, extract the downloaded file and move the extracted files to the Apache web root directory.<\/p><p><strong>tar -xvzf vtigercrm.tar.gz<\/strong><br \/><strong>sudo mv vtigercrm \/var\/www\/html\/<\/strong><\/p><p>Set the correct permissions for the vTiger CRM directory.<\/p><p><strong>sudo chown -R www-data:www-data \/var\/www\/html\/vtigercrm<\/strong><br \/><strong>sudo chmod -R 755 \/var\/www\/html\/vtigercrm<\/strong><\/p><p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-3082a80 e-con-full e-flex e-con e-parent\" data-id=\"3082a80\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-868d62c elementor-widget elementor-widget-text-editor\" data-id=\"868d62c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h4><strong>RIMOZIONE DELLA NUOVA INSTALLAZIONE PER CARICARE QUELLA CHE SI VUOLE TRASFERIRE<\/strong><\/h4><p>verifica che la versione vtigercrm nuova installazione funzioni<\/p><p>se funziona: elimina la directory che ospita il sito (nel mio caso) \/var\/www\/html\/vtgercrm<\/p><p><strong>sudo -rm -R \/var\/www\/html\/vtgercrm<\/strong><\/p><h4><strong>RIMOZIONE VECCHIO DATABASE<\/strong><\/h4><p>elimina il database che \u00e8 stato creato dall&#8217;installazione fresh di vtigercrm (nel mio caso il database si chiama &#8220;vtiger&#8221;<\/p><p><strong>mysql -u root -p<\/strong><\/p><p><strong>DROP DATABASE vtiger;<\/strong><\/p><h4><strong>CREAZIONE NUOVO DATABASE E UTENTE<\/strong><\/h4><p>crea un nuovo database &#8220;vtiger&#8221;<\/p><p><strong>CREATE DATABASE vtiger;<\/strong><\/p><p>Per sicurezza elimina l&#8217;utente &#8220;vtiger&#8221; dell&#8217;installazione fresh<\/p><p><strong>DROP USER &#8216;vtiger&#8217;@&#8217;localhost&#8217;;<\/strong><\/p><p>Crea l\u2019utente vtiger nuovo<\/p><p><strong>CREATE USER &#8216;vtiger&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;password&#8217;;<\/strong><\/p><p>Se l\u2019utente esiste gi\u00e0, e vuoi mantenerlo usa invece:<\/p><p><strong>GRANT SELECT, INSERT, UPDATE ON database_name.* TO &#8216;username&#8217;@&#8217;hostname&#8217;;<\/strong><\/p><p>Assegna i permessi<\/p><p><strong>GRANT ALL PRIVILEGES ON vtiger.* TO &#8216;vtiger&#8217;@&#8217;localhost&#8217;;<\/strong><\/p><p>Applica le modifiche<\/p><p><strong>FLUSH PRIVILEGES;<\/strong><\/p><p><strong>EXIT;<\/strong><\/p><h4><strong>IMPORT VECCHIO DATABASE<\/strong><\/h4><p>importa nel nuovo database &#8220;vtiger&#8221; il backup del database che vuoi importare. Nel mio caso il backup \u00e8 nella cartella \/mnt\/CONDIVISA\/ e si chiama vtiger.sql (non deve essere in forma compressa, nel caso lo fosse prima scompattalo)<\/p><p>in una bash normale (non sotto i\u00a0 comandi sql)<\/p><p><strong>mysql -u vtiger -p vtiger &lt; \/mnt\/CONDIVISA\/vtiger.sql<\/strong><\/p><p>inserisci la password che avevi dato all&#8217;utente &#8220;vtiger&#8221;<\/p><p>inizier\u00e0 il processo di importazione che durer\u00e0 un p\u00f2 (in base alla grandezza del database che stai importando&#8230;nel mio caso 400kb di sql hanno impiegato circa 10 minuti<\/p><h4><strong>COPIA\/INCOLLA DIRECTORY DEL VECCHIO SITO SUL NUOVO<\/strong><\/h4><p>copia la cartella che contiene l&#8217;intero sito del vtigercrm che vuoi trasferire, nella root del nuovo sito sul server#2 (nel mio caso \/var\/www\/html\/)<\/p><p>dai i permessi corretti<\/p><p><strong>sudo chown -R www-data:www-data vtigercrm<\/strong><\/p><p><strong>sudo chmod -R 755 vtigercrm<\/strong><\/p><p>entra nella root del sito e modifica il file <strong>config.inc.php\u00a0<\/strong>(sicuramente sar\u00e0 da modificare l&#8217;indirizzo ip sul quale deve rispondere il nuovo server e nel caso aveste variato user e password dell&#8217;utente che accede al database sql<\/p><p><strong>sudo nano \/var\/www\/html\/config.inc.ph<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-ab041eb e-flex e-con-boxed e-con e-parent\" data-id=\"ab041eb\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1f0df8c elementor-widget elementor-widget-text-editor\" data-id=\"1f0df8c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h4><strong>CORREZIONE ERRORE IONCUBE<\/strong><\/h4><p>se ora tutto \u00e8 andato bene, e collegate l&#8217;ip del server nuovo http:\/\/ip_server\/vtigercrm vi uscir\u00e0 la schermata di login nel quale dovrete accedere con le vostre vecchie credenziali<\/p><p>effettuato l&#8217;accesso sicuramente vi apparir\u00e0 una pagina bianca con questo errore:<\/p><p><em>Script error: the ionCube Loader for PHP needs to be installed. The ionCube Loader is the industry standard PHP extension for running protected PHP code, and can usually be added easily to a PHP installation. For Loaders please visit get-loader.ioncube.com and for an instructional video please see http:\/\/ioncu.be\/LV<\/em><\/p><p>ecco come risolvere:<\/p><p>Controlla la versione PHP in uso (fondamentale)<br \/><strong>php -v<\/strong><\/p><p>e anche quella usata da Apache:<\/p><p><strong>php -i | grep &#8220;Loaded Configuration File&#8221;<\/strong><\/p><p>Verifica se ionCube \u00e8 installato<\/p><p><strong>php -m | grep -i ioncube<\/strong><\/p><p>Se non restituisce nulla \u2192 ionCube non \u00e8 installato \/ non caricato<\/p><p>Scarica ionCube<br \/><strong>cd \/tmp<\/strong><br \/><strong>wget https:\/\/downloads.ioncube.com\/loader_downloads\/ioncube_loaders_lin_x86-64.tar.gz<\/strong><br \/><strong>tar xzf ioncube_loaders_lin_x86-64.tar.gz<\/strong><\/p><p>Copia il loader giusto per la tua versione PHP<\/p><p>Esempio PHP 8.1:<\/p><p><strong>cp ioncube\/ioncube_loader_lin_8.1.so \/usr\/lib\/php\/<\/strong><\/p><p>(Verifica il percorso corretto con:)<\/p><p><strong>php -i | grep extension_dir<\/strong><\/p><p>Abilita ionCube in PHP<\/p><p>Apri il file php.ini usato da Apache<br \/>(esempio PHP 8.1):<\/p><p><strong>nano \/etc\/php\/8.1\/apache2\/php.ini<\/strong><\/p><p>PRIMA di qualsiasi altra extension, aggiungi:<\/p><p><strong>zend_extension=\/usr\/lib\/php\/ioncube_loader_lin_8.1.so<\/strong><\/p><p>Riavvia Apache<br \/><strong>sudo systemctl restart apache2<\/strong><\/p><p><strong>\u00a0<\/strong><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Presupposti: Vtigercrm funzionante e configurato su server#1 si vuole trasferire su altro server#2 Nel mio caso server#1 e server#2 sono macchine ubuntu 22.04 Sul server#2 che dovr\u00e0 ospitare il vtigercrm trasferito ho installato la stessa distro ubuntu la stessa versione php 8.1 Su server#2 installa\u00a0 apache mysql phpmyadmin (non indispensabile se sai usare la riga [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-6489","post","type-post","status-publish","format-standard","hentry","category-twitter"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/posts\/6489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/comments?post=6489"}],"version-history":[{"count":13,"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/posts\/6489\/revisions"}],"predecessor-version":[{"id":6503,"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/posts\/6489\/revisions\/6503"}],"wp:attachment":[{"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/media?parent=6489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/categories?post=6489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/roccadomenico.it\/wordpress\/wp-json\/wp\/v2\/tags?post=6489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}