• Salve,
    sto da poco gestendo il mio primo sito wp. Ho già da tempo creato tutti i contenuti per il sito WP in un cartella http://www.esempio.com/prova . Ora i miei clienti mi chiedono di passare all’azione e di sovrascrivere il vecchio contenuto con quello nuovo da me creato. Prima di procedere vorrei capire però esattamente come fare, senza perdere contenuti o dovendoli ricreare.

    Il sito si appoggia su server Aruba, che seppur avendo il suo pannello per CMS WP, non è stato usato, ma ho semplicemente provveduto a copiare i file di installazione tramite FTP.

    Ora ciò che chiedo alla “community” è, ovviamente fare un backup, sia del database (basta fare export del DB dal pannello aruba?), e dei contenuti, del sito (basta ri-copiarsi in locale i file con FTP cosí come sono ora sul server?)

    Avendo compiuto il passo di backuppare tutto, come procedo? Devo reinstallare? Ricreo un nuovo DB e poi sovrascrivo? Devo campiare quale string in qualeche file .php?

    Grazie!
    A

Stai visualizzando 5 risposte - dal 1 al 5 (di 5 totali)
  • Thomas Vitale

    (@thomas-vitale)

    Ciao @studiomastro,

    come hai ben scritto è sempre un’ottima idea fare il backup di tutto.
    Dopodiché puoi seguire le istruzioni dettagliate (in inglese) riportate nel Codex ufficiale oppure quelle in italiano riportate in questo articolo.

    Nel primo caso puoi fare riferimento alla sezione “Moving Directories On Your Existing Server”, nel secondo caso alla sezione “Sul medesimo server (da una directory all’altra)”.

    Se hai difficoltà con qualche passaggio chiedi pure, per il momento spero di essere stato d’aiuto.

    • Questa risposta è stata modificata 8 anni, 6 mesi fa da Thomas Vitale.
    Chi ha creato la discussione Alessandro Mastrogiacomo

    (@studiomastro)

    Ciao @thomas-vitale
    grazie per la risposta, purtroppo ho avuto un settembre un po’ burrascoso, mi scusa nel ritardo nel risponderti.

    Allora ho dato un occhio agli articoli, il mio vero problema, anche usando semplicemente il caso “Sul medesimo server (da una directory all’altra)”, perchè facendo cosí purtroppo il plug-in WPML smette di funzionare cosí come confermatomi dagli sviluppatori. Quindi non mi basta cambiare l’url nel pannello delle impostazioni, ma dovrei in qualche modo reinstallare/muovere il tutto all’interno dello stesso server.

    Che procedura consigli di seguire…
    Attendo tue, grazie!

    Thomas Vitale

    (@thomas-vitale)

    Ciao @studiomastro,

    ho visto solo ora la tua risposta, scusami.

    Nel frattempo sei riuscito a risolvere? Dal momento che il problema riguarda WPML, ti consiglio di consultare il forum del supporto ufficiale di WPML per vedere se qualcuno ha avuto il tuo stesso problema (e consultare quindi la soluzione fornita dal supporto di WPML) oppure chiedere direttamente a loro che sicuramente sono i più adatti per fornirti aiuto.

    In alternativa potresti fare un tentativo utilizzando il plugin Duplicator per effettuare la procedura di migrazione. Ribadisco comunque che la cosa migliore è consultare il supporto ufficiale di WPML.

    Spero di essere stato d’aiuto!

    Thomas

    Chi ha creato la discussione Alessandro Mastrogiacomo

    (@studiomastro)

    Ciao @thomas-vitale,

    sto leggendo la guida e anche se tendenzialmente è tutto chiaro, ho una paura matta di buttare all’aria mesi di lavoro.

    Potresti darmi una mano a riguardo?
    Io dovrei spostare il mio sito da:

    miosito.com/prova a miosito.com

    Potrei farlo direttamente dal pannel Admin, cambiando l’indirizzo del sito URL da quello wordpress, ma ciò mi crea conflitto con il plugin WPML che smette di funzionare in front-end.

    Il mio caso è descritto nell’articolo da te linkato ma sembra che possa portare dei problemi:

    Changing Your Domain Name and URLs
    Moving a website and changing your domain name or URLs (i.e. from http://example.com/site to http://example.com, or http://example.com to http://example.net) requires the following steps – in sequence.

    Download your existing site files.
    Export your database – go in to MySQL and export the database.
    Move the backed up files and database into a new folder – somewhere safe – this is your site backup.
    Log in to the site you want to move and go to Settings > General, then change the URLs. (ie from http://example.com/ to http://example.net ) – save the settings and expect to see a 404 page.
    Download your site files again.
    Export the database again.
    Edit wp-config.php with the new server’s MySQL database name, user and password.
    Upload the files.
    Import the database on the new server.
    When your domain name or URLs change there are additional concerns. The files and database can be moved, however references to the old domain name or location will remain in the database, and that can cause issues with links or theme display.

    If you do a search and replace on your entire database to change the URLs, you can cause issues with data serialization, due to the fact that some themes and widgets store values with the length of your URL marked. When this changes, things break. To avoid that serialization issue, you have four options:

    Use the Velvet Blues Update URLs plugin if you can access your WP Admin Dashboard.
    Use the Better Search Replace plugin if you can access your WP Admin Dashboard.
    Use WP-CLI’s search-replace if your hosting provider (or you) have installed WP-CLI.
    Use the Search and Replace for WordPress Databases Script to safely change all instances on your old domain or path to your new one. (** only use this option if you are comfortable with database administration ** )
    Note: Only perform a search and replace on the wp_posts table.
    Note: Search and Replace from Interconnectit is a 3rd party script

    Dici sia questa la strada da percorrere?
    Re-Installare da capo non potrebbe esser meglio?

    Grazie!
    AM

    Chi ha creato la discussione Alessandro Mastrogiacomo

    (@studiomastro)

    Ciao @thomas-vitale
    grazie per la pronta risposta. Scusami ma sono stato via e solo ora riprendo il discoro.
    Il mio caso consiste nel spostare da miosito.com/prova a miosito.com
    Potrei semplicemente cambiare l’url del sito nelle impostazioni, ma ciò mi crea un conflitto che on WPML che smette di funzionare.

    Ora vedendo le guida sembra più o meno tutto chiaro credo che il mio caso sia questo:

    Changing Your Domain Name and URLs
    Moving a website and changing your domain name or URLs (i.e. from http://example.com/site to http://example.com, or http://example.com to http://example.net) requires the following steps – in sequence.

    Download your existing site files.
    Export your database – go in to MySQL and export the database.
    Move the backed up files and database into a new folder – somewhere safe – this is your site backup.
    Log in to the site you want to move and go to Settings > General, then change the URLs. (ie from http://example.com/ to http://example.net ) – save the settings and expect to see a 404 page.
    Download your site files again.
    Export the database again.
    Edit wp-config.php with the new server’s MySQL database name, user and password.
    Upload the files.
    Import the database on the new server.
    When your domain name or URLs change there are additional concerns. The files and database can be moved, however references to the old domain name or location will remain in the database, and that can cause issues with links or theme display.

    If you do a search and replace on your entire database to change the URLs, you can cause issues with data serialization, due to the fact that some themes and widgets store values with the length of your URL marked. When this changes, things break. To avoid that serialization issue, you have four options:

    Use the Velvet Blues Update URLs plugin if you can access your WP Admin Dashboard.
    Use the Better Search Replace plugin if you can access your WP Admin Dashboard.
    Use WP-CLI’s search-replace if your hosting provider (or you) have installed WP-CLI.
    Use the Search and Replace for WordPress Databases Script to safely change all instances on your old domain or path to your new one. (** only use this option if you are comfortable with database administration ** )
    Note: Only perform a search and replace on the wp_posts table.
    Note: Search and Replace from Interconnectit is a 3rd party script

    Giusto? A parte qualche passaggio non proprio chiaro, mi chiedo, non conviene fare pulizia generale sul server e reinstallare da capo, downloadando prima tutto sia dal server che dal DB?

    Grazie!
    AM

Stai visualizzando 5 risposte - dal 1 al 5 (di 5 totali)
  • Il topic ‘Migrare da cartella test a root folder’ è chiuso a nuove risposte.