|
| 1 | +# installare wordpress su linux |
| 2 | + |
| 3 | +## istruzioni |
| 4 | +1. scaricare i files |
| 5 | + |
| 6 | +```bash |
| 7 | +git clone git@github.com:ArduinoDenis/wordpress_linux.git |
| 8 | +``` |
| 9 | + |
| 10 | +2. eseguire il file di installazione |
| 11 | + |
| 12 | +```bash |
| 13 | +cd wordpress_linux/ && sudo chmod 700 installer.sh && ./installer.sh |
| 14 | +``` |
| 15 | + |
| 16 | +3. aspettare che finisca l'installazione dei vari programmi |
| 17 | + |
| 18 | +4. una volta terminato seguire la procedura manuale seguente: |
| 19 | + |
| 20 | +5. fare installazione sicura di mysql |
| 21 | + |
| 22 | +```bash |
| 23 | +sudo mysql_secure_installation |
| 24 | +``` |
| 25 | + |
| 26 | +6. e premere invio e ti verrà chiesto Inserisci la password corrente per root premi invio |
| 27 | + |
| 28 | +7. ti verrà chiesto se vuoi Impostare la password di root? digita Y e poi invio |
| 29 | + |
| 30 | +8. Digita una password quando New password: richiesto e premi Invio . Importante: ricorda questa password di root, poiché ti servirà in seguito per configurare WordPress. |
| 31 | + |
| 32 | +9. Digita Y in Remove anonymous users cioè se vuoi rimuovere gli utenti anonimi |
| 33 | + |
| 34 | +10. Digita Y in Disallow root login remotely cioè Non consentire l'accesso root da remoto |
| 35 | + |
| 36 | +11. Digita Y in Remove test database and access to it cioè se vuoi rimuovere il database dei test |
| 37 | + |
| 38 | +12. Digita Y in Reload privilege tables now. cioè Ricarica ora le tabelle con i nuovi privilegi. |
| 39 | + |
| 40 | +13. Al termine, vedrai il messaggio All done! e Thanks for using MariaDB! |
| 41 | + |
| 42 | +14. esegui mysql con utente root e poi metti la passwiord che hai scelto prima e poi premi invio |
| 43 | + |
| 44 | +```bash |
| 45 | +sudo mysql -uroot -p |
| 46 | +``` |
| 47 | + |
| 48 | +15. crea il database chiamato wordpress |
| 49 | + |
| 50 | +```bash |
| 51 | +create database wordpress; |
| 52 | +``` |
| 53 | + |
| 54 | +16. se non ci sono problemi darvi questa risposta: Query OK, 1 row affected (0.00 sec) |
| 55 | + |
| 56 | +17. ora concediamo i privilegi al database di wordpress |
| 57 | + |
| 58 | +```bash |
| 59 | +GRANT ALL PRIVILEGES ON wordpress.* TO 'root'@'localhost' IDENTIFIED BY 'inserisci la tua password'; |
| 60 | +``` |
| 61 | + |
| 62 | +18. ricarichiamo i privilegi |
| 63 | + |
| 64 | +```bash |
| 65 | +FLUSH PRIVILEGES; |
| 66 | +``` |
| 67 | + |
| 68 | +19. Ora bisogna uscire dal mariadb con Ctrl + D |
| 69 | + |
| 70 | +20. abilitiamo un modulo di apache |
| 71 | + |
| 72 | +```bash |
| 73 | +sudo a2enmod rewrite |
| 74 | +``` |
| 75 | + |
| 76 | +21. bisogna configurare apache e aggiungere le seguenti righe al inizio della 1 riga |
| 77 | + |
| 78 | +```bash |
| 79 | +sudo nano /etc/apache2/sites-available/000-default.conf |
| 80 | +``` |
| 81 | + |
| 82 | +```script |
| 83 | +<Directory "/var/www/html"> |
| 84 | + AllowOverride All |
| 85 | +</Directory> |
| 86 | +``` |
| 87 | + |
| 88 | +22. salva ed esci con ctrl+o poi ctrl+x |
| 89 | + |
| 90 | +23. Riavvia Apache |
| 91 | + |
| 92 | +```bash |
| 93 | +sudo service apache2 restart |
| 94 | +``` |
| 95 | + |
| 96 | +24. ora apri un brower es google chrome, edge, firefox ecc e metti il seguente link http:// ip del server/wp-admin/setup-config.php e continua con la procedura guidata di wordpress |
| 97 | + |
| 98 | +## Ora compila le informazioni di base del sito seguendo lo screen |
| 99 | +![screen]() |
0 commit comments