Difference between revisions of "Ubuntu"

1,663 bytes added ,  3 months ago
no edit summary
Line 201: Line 201:
<small>2025-01-04T16:30:53.534928Z mysqld_safe Logging to '/var/log/mysql/error.log'.</small>
<small>2025-01-04T16:30:53.534928Z mysqld_safe Logging to '/var/log/mysql/error.log'.</small>


<small>2025-01-04T16:30:53.635250Z mysqld_safe A mysqld process already exists</small></blockquote>
<small>2025-01-04T16:30:53.635250Z mysqld_safe A mysqld process already exists</small></blockquote>Una volta dentro MySQL, esegui:{{Tooltip|2={{Tooltip|Errore nei comandi MySQL da terminale|I comandi <code>USE mysql;</code> e <code>SELECT User, Host, plugin FROM user;</code> sono stati eseguiti direttamente nel terminale invece che all'interno del client MySQL. Questo ha causato gli errori <code>USE: command not found</code> e <code>SELECT: command not found</code>, poiché il terminale Bash non riconosce comandi SQL. Per eseguire correttamente questi comandi, è necessario accedere al client MySQL con <code>mysql -u [username] -p</code> e poi digitare i comandi SQL.}}}}<blockquote><small>parallels@ubuntu-linux-22-04-02-desktop:~$ USE mysql;</small>
 
<small>SELECT User, Host, plugin FROM user;</small>
 
<small>USE: command not found</small>
 
<small>SELECT: command not found</small></blockquote>


===4. Installazione di PHP===
===4. Installazione di PHP===
Line 210: Line 216:
<blockquote>Installazione con il comando: <code>sudo apt install php php-mysql</code>.
<blockquote>Installazione con il comando: <code>sudo apt install php php-mysql</code>.


Configurazione di PHP per la compatibilità con MediaWiki.</blockquote>---
Configurazione di PHP per la compatibilità con MediaWiki.</blockquote>
 
 
Controlla la versione di PHP:{{Tooltip|2={{Tooltip|Informazioni sulla versione di PHP|Il comando <code>php -v</code> mostra la versione di PHP installata sul sistema. L'output indica che la versione corrente è <code>8.1.2-1ubuntu2.20</code> con supporto CLI (Command Line Interface). Viene utilizzato il motore Zend <code>v4.1.2</code>, con il modulo di caching <code>Zend OPcache</code> attivo. Questo modulo migliora le prestazioni memorizzando bytecode precompilati.}}}}<blockquote><small>parallels@ubuntu-linux-22-04-02-desktop:~$ php -v</small>
 
<small>PHP 8.1.2-1ubuntu2.20 (cli) (built: Dec  3 2024 20:14:35) (NTS)</small>
 
<small>Copyright (c) The PHP Group</small>
 
<small>Zend Engine v4.1.2, Copyright (c) Zend Technologies</small>
 
<small>    with Zend OPcache v8.1.2-1ubuntu2.20, Copyright (c), by Zend Technologies</small></blockquote>
 
 
 
 


===5. Installazione di Apache===
===5. Installazione di Apache===
Editor, Editors, USER, admin, Bureaucrats, Check users, dev, editor, founder, Interface administrators, member, oversight, Suppressors, Administrators, translator
11,487

edits