Editor, Editors, USER, admin, Bureaucrats, Check users, dev, editor, founder, Interface administrators, member, oversight, Suppressors, Administrators, translator
11,487
edits
Line 562: | Line 562: | ||
<small>[1]- Killed sudo mysqld_safe --skip-grant-tables --skip-networking</small></blockquote>'''Termina il processo MySQL in modalità sicura:''' | <small>[1]- Killed sudo mysqld_safe --skip-grant-tables --skip-networking</small></blockquote>'''Termina il processo MySQL in modalità sicura:''' | ||
Line 594: | Line 597: | ||
===='''Riavvia MySQL in modalità normale'''==== | ===='''Riavvia MySQL in modalità normale'''==== | ||
Line 611: | Line 619: | ||
==3. Problemi con la configurazione del file MySQL== | ==3. Problemi con la configurazione del file MySQL== | ||
'''Errore comune:''' Parametro <code>bind-address</code> mal configurato. | '''Errore comune:''' Parametro <code>bind-address</code> mal configurato. | ||
Line 662: | Line 673: | ||
==4. Problemi con PHP== | ==4. Problemi con PHP== | ||
'''Errore comune:''' Moduli mancanti o versioni non compatibili. | '''Errore comune:''' Moduli mancanti o versioni non compatibili. | ||
Line 788: | Line 802: | ||
'''Errore comune:''' Apache non attivo o moduli disabilitati. | '''Errore comune:''' Apache non attivo o moduli disabilitati. | ||
Line 843: | Line 860: | ||
=='''6. Problemi con MediaWiki'''== | =='''6. Problemi con MediaWiki'''== | ||
'''Errore comune:''' Mancanza del file <code>LocalSettings.php</code>. | '''Errore comune:''' Mancanza del file <code>LocalSettings.php</code>. | ||
Line 866: | Line 886: | ||
==7. Problemi di sincronizzazione con Masticationpedia== | ==7. Problemi di sincronizzazione con Masticationpedia== | ||
'''Errore comune:''' Errori API o configurazioni mancanti | '''Errore comune:''' Errori API o configurazioni mancanti | ||
Line 881: | Line 904: | ||
<small>[Sun Jan 05 11:48:56.032352 2025] [core:notice] '''[pid 184298]''' AH00094: Command line: '/usr/sbin/apache2'</small></blockquote> | <small>[Sun Jan 05 11:48:56.032352 2025] [core:notice] '''[pid 184298]''' AH00094: Command line: '/usr/sbin/apache2'</small></blockquote> | ||
=Installazione e configurazione MadiaWiki = | =Installazione e configurazione MadiaWiki= | ||
==Scarica la versione 1.43:== | ==Scarica la versione 1.43:== | ||
Usa il comando <code>wget</code> per scaricare la versione indicata:<blockquote><small>parallels@ubuntu-linux-22-04-02-desktop:'''~$ wget <nowiki>https://releases.wikimedia.org/mediawiki/1.43/mediawiki-1.43.0.tar.gz</nowiki>'''</small> | |||
Usa il comando <code>wget</code> per scaricare la versione indicata: | |||
<blockquote><small>parallels@ubuntu-linux-22-04-02-desktop:'''~$ wget <nowiki>https://releases.wikimedia.org/mediawiki/1.43/mediawiki-1.43.0.tar.gz</nowiki>'''</small> | |||
<small>--2025-01-05 15:51:19-- <nowiki>https://releases.wikimedia.org/mediawiki/1.43/mediawiki-1.43.0.tar.gz</nowiki></small> | <small>--2025-01-05 15:51:19-- <nowiki>https://releases.wikimedia.org/mediawiki/1.43/mediawiki-1.43.0.tar.gz</nowiki></small> | ||
Line 901: | Line 929: | ||
<small>mediawiki-1.43.0.tar.gz 100%[==============================================================================================>] 87.69M 5.41MB/s in 18s </small> | <small>mediawiki-1.43.0.tar.gz 100%[==============================================================================================>] 87.69M 5.41MB/s in 18s </small> | ||
<small>2025-01-05 15:51:37 (4.89 MB/s) - ‘mediawiki-1.43.0.tar.gz’ saved [91947888/91947888]</small></blockquote>'''Estrai l'archivio scaricato''': Questo creerà una directory chiamata <code>'''mediawiki-1.43.0'''</code>. | <small>2025-01-05 15:51:37 (4.89 MB/s) - ‘mediawiki-1.43.0.tar.gz’ saved [91947888/91947888]</small></blockquote> | ||
'''Estrai l'archivio scaricato''': Questo creerà una directory chiamata <code>'''mediawiki-1.43.0'''</code>. | |||
llels@ubuntu-linux-22-04-02-desktop:'''~$ tar -xvzf mediawiki-1.43.0.tar.gz''' | llels@ubuntu-linux-22-04-02-desktop:'''~$ tar -xvzf mediawiki-1.43.0.tar.gz''' | ||
Line 907: | Line 940: | ||
Sostituisci la directory esistente: | |||
<blockquote><small>parallels@ubuntu-linux-22-04-02-desktop:'''~$ sudo mv /var/www/html/mediawiki /var/www/html/mediawiki_old'''</small> | |||
<small>sudo mv mediawiki-1.43.0 /var/www/html/mediawiki</small> | |||
<small>[sudo] password for parallels:</small> </blockquote> | |||
'''Verifica i permessi''': Assicurati che Apache possa accedere ai file: | |||
ffffffff | |||
==2. Configurazione del database== | |||
<p>'''Verifica la connessione al database''': MediaWiki 1.43 dovrebbe essere compatibile con il database esistente. Accedi al database per verificare: | |||
<small>parallels@ubuntu-linux-22-04-02-desktop:'''~$ mysql -u root -p'''</small> | |||
<small>Enter password:</small> {{Rosso inizio}}Errore {{Rosso Fine}}</p> | |||
fffff | |||
<small>ERROR 1698 (28000): Access denied for user 'root'@'localhost'</small>Desccrizione errore e risoluzione {{Tooltip|Errore "Access denied for user 'root'@'localhost"|L'errore si verifica quando MySQL nega l'accesso all'utente <code>root</code>. Cause comuni includono: 1) Autenticazione tramite <code>auth_socket</code>, 2) Password errata, 3) Privilegi insufficienti. Soluzione: Accedi con <code>sudo mysql</code>, cambia il metodo di autenticazione con <code>ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'nuova_password';</code>, oppure resetta la password avviando MySQL in modalità sicura (<code>mysqld_safe --skip-grant-tables</code>). Verifica sempre i privilegi e riavvia il servizio MySQL.}} | <small>ERROR 1698 (28000): Access denied for user 'root'@'localhost'</small>Desccrizione errore e risoluzione {{Tooltip|Errore "Access denied for user 'root'@'localhost"|L'errore si verifica quando MySQL nega l'accesso all'utente <code>root</code>. Cause comuni includono: 1) Autenticazione tramite <code>auth_socket</code>, 2) Password errata, 3) Privilegi insufficienti. Soluzione: Accedi con <code>sudo mysql</code>, cambia il metodo di autenticazione con <code>ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'nuova_password';</code>, oppure resetta la password avviando MySQL in modalità sicura (<code>mysqld_safe --skip-grant-tables</code>). Verifica sempre i privilegi e riavvia il servizio MySQL.}} | ||
Line 935: | Line 974: | ||
parallels@ubuntu-linux-22-04-02-desktop:'''~$ sudo mv /var/www/html/mediawiki /var/www/html/mediawiki_old''' sudo mv mediawiki-1.43.0 /var/www/html/mediawiki [sudo] password for parallels: ---- | parallels@ubuntu-linux-22-04-02-desktop:'''~$ sudo mv /var/www/html/mediawiki /var/www/html/mediawiki_old''' sudo mv mediawiki-1.43.0 /var/www/html/mediawiki [sudo] password for parallels: ---- | ||
#parallels@ubuntu-linux-22-04-02-desktop:'''~$ sudo chown -R www-data:www-data /var/www/html/mediawiki''' sudo chmod -R 755 /var/www/html/mediawiki ---- | |||
#parallels@ubuntu-linux-22-04-02-desktop:'''~$ mysql -u root -p''' Enter password: '''ERROR 1698 (28000)''': Access denied for user 'root'@'localhost' ---- | |||
#parallels@ubuntu-linux-22-04-02-desktop:'''~$ sudo mysql''' Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9 Server version: 8.0.40-0ubuntu0.22.04.1 (Ubuntu) Copyright (c) 2000, 2024, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. ---- | |||
#parallels@ubuntu-linux-22-04-02-desktop:'''~$ sudo mysql''' Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 10 Server version: 8.0.40-0ubuntu0.22.04.1 (Ubuntu) Copyright (c) 2000, 2024, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Rosa!01011925'; Query OK, 0 rows affected (0.27 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.04 sec) mysql> EXIT; ---- | |||
#parallels@ubuntu-linux-22-04-02-desktop:'''~$ mysql -u root -p''' Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 11 Server version: 8.0.40-0ubuntu0.22.04.1 (Ubuntu) Copyright (c) 2000, 2024, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> Exit | |||
#parallels@ubuntu-linux-22-04-02-desktop:'''~$ cd /var/www/html/mediawiki''' ---- | |||
#parallels@ubuntu-linux-22-04-02-desktop:'''/var/www/html/mediawiki$ ls -l''' ---- | |||
<small> | |||
<blockquote> | <blockquote> | ||
* total 2184 | *total 2184 | ||
* -rwxr-xr-x 1 www-data www-data 1511 Dec 5 16:41 api.php | *-rwxr-xr-x 1 www-data www-data 1511 Dec 5 16:41 api.php | ||
* -rwxr-xr-x 1 www-data www-data 352410 Dec 5 16:42 autoload.php | *-rwxr-xr-x 1 www-data www-data 352410 Dec 5 16:42 autoload.php | ||
* drwxr-xr-x 2 www-data www-data 4096 Jan 5 15:58 cache | *drwxr-xr-x 2 www-data www-data 4096 Jan 5 15:58 cache | ||
* -rwxr-xr-x 1 www-data www-data 168 Dec 5 16:41 CODE_OF_CONDUCT.md | *-rwxr-xr-x 1 www-data www-data 168 Dec 5 16:41 CODE_OF_CONDUCT.md | ||
* -rwxr-xr-x 1 www-data www-data 8358 Dec 5 16:42 composer.json | *-rwxr-xr-x 1 www-data www-data 8358 Dec 5 16:42 composer.json | ||
* -rwxr-xr-x 1 www-data www-data 125 Dec 5 16:41 composer.local.json-sample | * -rwxr-xr-x 1 www-data www-data 125 Dec 5 16:41 composer.local.json-sample | ||
* -rwxr-xr-x 1 www-data www-data 19421 Dec 5 16:41 COPYING | *-rwxr-xr-x 1 www-data www-data 19421 Dec 5 16:41 COPYING | ||
* -rwxr-xr-x 1 www-data www-data 15957 Dec 5 16:42 CREDITS | *-rwxr-xr-x 1 www-data www-data 15957 Dec 5 16:42 CREDITS | ||
* -rwxr-xr-x 1 www-data www-data 1762 Dec 20 19:45 docker-compose.yml drwxr-xr-x 5 www-data www-data 4096 Jan 5 15:58 docs | *-rwxr-xr-x 1 www-data www-data 1762 Dec 20 19:45 docker-compose.yml drwxr-xr-x 5 www-data www-data 4096 Jan 5 15:58 docs | ||
* drwxr-xr-x 35 www-data www-data 4096 Jan 5 15:58 extensions | *drwxr-xr-x 35 www-data www-data 4096 Jan 5 15:58 extensions | ||
* -rwxr-xr-x 1 www-data www-data 95 Dec 5 16:41 FAQ -rwxr-xr | * -rwxr-xr-x 1 www-data www-data 95 Dec 5 16:41 FAQ -rwxr-xr | ||
* -x 1 www-data www-data 1639880 Dec 5 16:42 HISTORY | *-x 1 www-data www-data 1639880 Dec 5 16:42 HISTORY | ||
* drwxr-xr-x 2 www-data www-data 4096 Jan 5 15:58 images | * drwxr-xr-x 2 www-data www-data 4096 Jan 5 15:58 images | ||
* -rwxr-xr-x 1 www-data www-data 2221 Dec 5 16:41 img_auth.php | *-rwxr-xr-x 1 www-data www-data 2221 Dec 5 16:41 img_auth.php | ||
* drwxr-xr-x 96 www-data www-data 4096 Jan 5 15:58 includes | *drwxr-xr-x 96 www-data www-data 4096 Jan 5 15:58 includes | ||
* -rwxr-xr-x 1 www-data www-data 2213 Dec 5 16:41 index.php | *-rwxr-xr-x 1 www-data www-data 2213 Dec 5 16:41 index.php | ||
* -rwxr-xr-x 1 www-data www-data 3685 Dec 5 16:42 INSTALL | *-rwxr-xr-x 1 www-data www-data 3685 Dec 5 16:42 INSTALL | ||
* -rwxr-xr-x 1 www-data www-data 1302 Dec 5 16:41 jsdoc.json | * -rwxr-xr-x 1 www-data www-data 1302 Dec 5 16:41 jsdoc.json | ||
* drwxr-xr-x 5 www-data www-data 4096 Jan 5 15:58 languages | * drwxr-xr-x 5 www-data www-data 4096 Jan 5 15:58 languages | ||
* -rwxr-xr-x 1 www-data www-data 1464 Dec 5 16:41 load.php | *-rwxr-xr-x 1 www-data www-data 1464 Dec 5 16:41 load.php | ||
* drwxr-xr-x 11 www-data www-data 12288 Jan 5 15:58 maintenance | * drwxr-xr-x 11 www-data www-data 12288 Jan 5 15:58 maintenance | ||
* drwxr-xr-x 4 www-data www-data 4096 Jan 5 15:58 mw-config | * drwxr-xr-x 4 www-data www-data 4096 Jan 5 15:58 mw-config | ||
* -rwxr-xr-x 1 www-data www-data 1761 Dec 5 16:41 opensearch_desc.php | * -rwxr-xr-x 1 www-data www-data 1761 Dec 5 16:41 opensearch_desc.php | ||
* -rwxr-xr-x 1 www-data www-data 1643 Dec 5 16:41 README.md | *-rwxr-xr-x 1 www-data www-data 1643 Dec 5 16:41 README.md | ||
* -rwxr-xr-x 1 www-data www-data 54673 Dec 20 19:45 RELEASE-NOTES-1.43 | *-rwxr-xr-x 1 www-data www-data 54673 Dec 20 19:45 RELEASE-NOTES-1.43 | ||
* drwxr-xr-x 5 www-data www-data 4096 Jan 5 15:58 resources | *drwxr-xr-x 5 www-data www-data 4096 Jan 5 15:58 resources | ||
* -rwxr-xr-x 1 www-data www-data 1239 Dec 5 16:41 rest.php | *-rwxr-xr-x 1 www-data www-data 1239 Dec 5 16:41 rest.php | ||
* -rwxr-xr-x 1 www-data www-data 199 Dec 5 16:41 SECURITY | * -rwxr-xr-x 1 www-data www-data 199 Dec 5 16:41 SECURITY | ||
* drwxr-xr-x 6 www-data www-data 4096 Jan 5 15:58 skins | *drwxr-xr-x 6 www-data www-data 4096 Jan 5 15:58 skins | ||
* drwxr-xr-x 11 www-data www-data 4096 Jan 5 15:58 tests | * drwxr-xr-x 11 www-data www-data 4096 Jan 5 15:58 tests | ||
* -rwxr-xr-x 1 www-data www-data 1659 Dec 5 16:41 thumb_handler.php | * -rwxr-xr-x 1 www-data www-data 1659 Dec 5 16:41 thumb_handler.php | ||
* -rwxr-xr-x 1 www-data www-data 1357 Dec 5 16:41 thumb.php | *-rwxr-xr-x 1 www-data www-data 1357 Dec 5 16:41 thumb.php | ||
* -rwxr-xr-x 1 www-data www-data 4394 Dec 5 16:41 UPGRADE | *-rwxr-xr-x 1 www-data www-data 4394 Dec 5 16:41 UPGRADE | ||
* drwxr-xr-x 21 www-data www-data 4096 Jan 5 15:58 vendor ---- | *drwxr-xr-x 21 www-data www-data 4096 Jan 5 15:58 vendor ---- | ||
<br /> | |||
<br /> | |||
</small> |
edits