Editor, Editors, USER, admin, Bureaucrats, Check users, dev, editor, founder, Interface administrators, member, oversight, Suppressors, Administrators, translator
11,485
edits
Line 587: | Line 587: | ||
<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:''' | ||
parallels@ubuntu-linux-22-04-02-desktop:~$ sudo kill -9 114585 | parallels@ubuntu-linux-22-04-02-desktop:~$ sudo kill -9 114585 | ||
Line 605: | Line 606: | ||
==== '''Riavvia MySQL in modalità normale''' ==== | ==== '''Riavvia MySQL in modalità normale''' ==== | ||
Dopo aver terminato i processi problematici, riavvia il servizio MySQL in modalità standard:<blockquote><small>parallels@ubuntu-linux-22-04-02-desktop:'''~$ sudo systemctl restart mysql'''</small></blockquote> | Dopo aver terminato i processi problematici, riavvia il servizio MySQL in modalità standard:<blockquote><small>parallels@ubuntu-linux-22-04-02-desktop:'''~$ sudo systemctl restart mysql'''</small></blockquote> | ||
Line 780: | Line 782: | ||
== 5. Problemi con Apache == | == 5. Problemi con Apache == | ||
'''Errore comune:''' Apache non attivo o moduli disabilitati. | |||
'''Controlla lo stato del servizio Apache:'''{{Tooltip|2={{Tooltip|Stato del servizio Apache|Il comando <code>sudo systemctl status apache2</code> conferma che Apache è attivo (<code>active (running)</code>) da 17 ore. Il processo principale ha il PID <code>149151</code>, utilizza 6 task e 13 MB di memoria. È stato avviato correttamente il 4 gennaio e ricaricato il 5 gennaio.}}}}<blockquote><small>parallels@ubuntu-linux-22-04-02-desktop:'''~$ sudo systemctl status apache2'''</small> | |||
<small>● apache2.service - The Apache HTTP Server</small> | |||
<small> Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)</small> | |||
<small> Active: active (running) since Sat 2025-01-04 18:02:49 CET; 17h ago</small> | |||
<small> Docs: <nowiki>https://httpd.apache.org/docs/2.4/</nowiki></small> | |||
<small> Process: 149146 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)</small> | |||
<small> Process: 164284 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)</small> | |||
<small> '''Main PID: 149151 (apache2)'''</small> | |||
<small> Tasks: 6 (limit: 2258)</small> | |||
<small> Memory: 13.0M</small> | |||
<small> CPU: 1.109s</small> | |||
<small> CGroup: /system.slice/apache2.service</small> | |||
<small> ├─149151 /usr/sbin/apache2 -k start</small> | |||
<small> ├─164306 /usr/sbin/apache2 -k start</small> | |||
<small> ├─164307 /usr/sbin/apache2 -k start</small> | |||
<small> ├─164308 /usr/sbin/apache2 -k start</small> | |||
<small> ├─164309 /usr/sbin/apache2 -k start</small> | |||
<small> └─164310 /usr/sbin/apache2 -k start</small> | |||
<small>Jan 04 18:02:49 ubuntu-linux-22-04-02-desktop systemd[1]: Starting The Apache HTTP Server...</small> | |||
<small>Jan 04 18:02:49 ubuntu-linux-22-04-02-desktop systemd[1]: Started The Apache HTTP Server.</small> | |||
<small>Jan 05 09:58:35 ubuntu-linux-22-04-02-desktop systemd[1]: Reloading The Apache HTTP Server...</small> | |||
<small>Jan 05 09:58:35 ubuntu-linux-22-04-02-desktop systemd[1]: Reloaded The Apache HTTP Server.</small></blockquote>'''Verifica i log degli errori di Apache:'''{{Tooltip|2={{Tooltip|Log di Apache|Il comando <code>sudo tail -n 50 /var/log/apache2/error.log</code> mostra che Apache (versione <code>2.4.52</code>) è configurato correttamente e ha ripreso le operazioni normali. Il processo principale (<code>PID 149151</code>) è stato avviato con il comando <code>/usr/sbin/apache2</code>.}}}}<blockquote><small>parallels@ubuntu-linux-22-04-02-desktop:'''~$ sudo tail -n 50 /var/log/apache2/error.log'''</small> | |||
<small>[Sun Jan 05 09:58:35.733627 2025] [mpm_prefork:notice] '''[pid 149151]''' AH00163: Apache/2.4.52 (Ubuntu) configured -- resuming normal operations</small> | |||
<small>[Sun Jan 05 09:58:35.733655 2025] [core:notice] [pid 149151] AH00094: Command line: '/usr/sbin/apache2'</small></blockquote>'''Riavvia Apache:'''<blockquote><small>parallels@ubuntu-linux-22-04-02-desktop:'''~$ sudo systemctl restart apache2'''</small></blockquote>'''Abilita i moduli richiesti:'''<blockquote><small>parallels@ubuntu-linux-22-04-02-desktop:'''~$ sudo a2enmod rewrite'''</small> | |||
<small>Module rewrite already enabled</small></blockquote> | |||
== '''6. Problemi con MediaWiki''' == | |||
'''Errore comune:''' Mancanza del file <code>LocalSettings.php</code>. | |||
'''Controlla la directory di MediaWiki:'''{{Tooltip|2={{Tooltip|Contenuto della directory di MediaWiki|La directory <code>/var/www/html/mediawiki/</code> contiene file e directory essenziali per MediaWiki: 1) File principali come <code>index.php</code>, <code>api.php</code>, e <code>rest.php</code>. 2) Directory per estensioni, immagini, e risorse (<code>extensions</code>, <code>images</code>, <code>skins</code>). 3) File di documentazione come <code>README.md</code> e <code>INSTALL</code>. Il file <code>LocalSettings.php</code>, necessario per la configurazione, sembra mancare.}}}}<blockquote><small>parallels@ubuntu-linux-22-04-02-desktop:'''~$ ls /var/www/html/mediawiki/'''</small> | |||
<small>api.php composer.json docker-compose.yml HISTORY index.php load.php README.md SECURITY thumb.php</small> | |||
<small>autoload.php composer.local.json-sample docs images INSTALL maintenance RELEASE-NOTES-1.39 skins UPGRADE</small> | |||
<small>cache COPYING extensions img_auth.php jsduck.json mw-config resources tests vendor</small> | |||
<small>CODE_OF_CONDUCT.md CREDITS FAQ includes languages opensearch_desc.php rest.php thumb_handler.php</small></blockquote> |
edits