Installazione di un CMS: Joomla! con Apache2, MySql e Php5
Da RavennaLug.
Introduzione
In questo tutorial andremo ad analizzare l'installazione di Joomla!, un Content Management System, cioè un sistema di gestione di contenuti quale può essere un portale web di informazioni e news o contenuti ipertestuali di qualsiasi genere tematico. La installazione non prevede una distribuzione Linux specifica, quella che normalmente usate è valida, mentre gli esempi che qui vi mostro si riferiscono ad una Suse 10.0 installata su una macchina spare.
Joomla!
Joomla!, secondo il sito dal quale possiamo scaricare i sorgenti e scripts eseguibili, è uno dei più potenti Open Source Content Management System del mondo, usato per qualsiasi cosa a partire dal semplice sito web al più complesso sito corporativo. Devo comunque dargli ragione quando sul sito di Joomla! segnalano che è facile da installare, semplice da gestire ed affidabile.
Controlli preliminari
Diamo già per scontata la presenza nel sistema della triade Apache versione 2, MySQL dalla versione 4 alla 5 e PHP versione 5. Le metodiche di installazione dei componenti necessari variano a seconda della distribuzione (apt e dpkg, rpm, emerge, yast, etc.), vi invito quindi a rifarvi alla documentazione che È SEMPRE PRESENTE nella distribuzione prescelta. Nel caso che i termini RTFM, STFW e Google non vi dicano nulla :), fatemelo sapere, compatibilmente con il (mio) poco tempo disponibile, provvederò a scrivere un minitutorial sui vari metodi di installazione e gestione dei pacchetti.
Una analisi al volo sulla presenza ed esecuzione dei pacchetti Apache, MySQL e PHP è possibile ottenerla attraverso la esecuzione dei comandi che seguono:
- Apache:
cborelli@linux:~> su - Password: linux:~ # /etc/init.d/apache2 status Checking for httpd2: unused linux:~ # /etc/init.d/apache2 start Starting httpd2 (prefork) done linux:~ # /etc/init.d/apache2 status Checking for httpd2: running linux:~ #
- MySQL:
linux:~ # /etc/init.d/mysql status Checking for service MySQL: unused linux:~ # /etc/init.d/mysql start Starting service MySQL done linux:~ # /etc/init.d/mysql status Checking for service MySQL: running linux:~ #
- PHP5:
linux:~ # php5 --version PHP 5.0.4 (cgi) (built: Sep 13 2005 02:24:00) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.4-dev, Copyright (c) 1998-2004 Zend Technologies linux:~ #
Come vediamo dagli esempi, dopo essere diventato superuser, vado a controllare la presenza dei servizi disponibili, in questo caso Apache2 e MySQL e relativa loro attivazione.
L'alternativa per controllare se i processi relativi sono in esecuzione sono:
- Apache:
linux:~ # ps aux | grep apache root 10909 0.7 4.3 11656 5524 ? Ss 15:26 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf wwwrun 10912 0.0 4.3 11656 5540 ? S 15:26 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf wwwrun 10913 0.0 4.3 11656 5540 ? S 15:26 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf wwwrun 10914 0.0 4.3 11656 5540 ? S 15:26 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf wwwrun 10915 0.0 4.3 11656 5540 ? S 15:26 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf wwwrun 10916 0.0 4.3 11656 5540 ? S 15:26 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf linux:~ #
- MySQL:
linux:~ # ps aux | grep mysql root 10959 0.2 0.9 2484 1208 pts/0 S 15:28 0:00 /bin/sh /usr/bin/mysqld_safe --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --socket=/var/lib/mysql/mysql.sock --datadir=/var/lib/mysql mysql 10994 2.4 11.9 57908 15140 pts/0 Sl 15:28 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/mysqld.pid --skip-locking --port=3306 --socket=/var/lib/mysql/mysql.sock linux:~ #
Notiamo come vengono evidenziate alcune caratteristiche del processi in esecuzione come l'utente che li esegue, la locazione della configurazione di apache, la porta che MySQL usa per accettare connessioni entranti, etc.
L'ultimo prerequisito che ci darà la certezza che l'ambiente creato è corretto, è quello di salvare l'archivio che segue nella radice dell'http server che, secondo il tipo di distribuzione, risiede in /var/www/docs, /http/docs/, /srv/www/htdocs o se si usa la directory utente ~/public_html/. Il file in questione ci permetterà di fare un rapido check-up sull'ambiente di lavoro creato:
<?php
/**
* @version $Id: common.php 85 2005-09-15 23:12:03Z eddieajau $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
error_reporting( E_ALL );
header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header ("Pragma: no-cache"); // HTTP/1.0
/**
* Utility function to return a value from a named array or a specified default
*/
define( "_MOS_NOTRIM", 0x0001 );
define( "_MOS_ALLOWHTML", 0x0002 );
function mosGetParam( &$arr, $name, $def=null, $mask=0 ) {
$return = null;
if (isset( $arr[$name] )) {
if (is_string( $arr[$name] )) {
if (!($mask&_MOS_NOTRIM)) {
$arr[$name] = trim( $arr[$name] );
}
if (!($mask&_MOS_ALLOWHTML)) {
$arr[$name] = strip_tags( $arr[$name] );
}
}
if (!get_magic_quotes_gpc()) {
$arr[$name] = addslashes( $arr[$name] );
}
return $arr[$name];
} else {
return $def;
}
}
function get_php_setting($val) {
$r = (ini_get($val) == '1' ? 1 : 0);
return $r ? 'ON' : 'OFF';
}
echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/
xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Joomla - Web Installer</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<p><strong>Pre-installation check</strong></p>
<p>If any of these items are highlighted in red then please take actions to correct
them. Failure to do so could lead to your Joomla installation not functioning
correctly.</p>
<table cellpadding="5" bordercolor="#CCCCCC" bgcolor="#FFFFCC">
<tr>
<td>
PHP version >= 4.1.0
</td>
<td align="left">
<?php echo phpversion() < '4.1' ? '<b><font color="red">No</font></b>' : '<b><font
color="green">Yes</font></b>';?>
</td>
</tr>
<tr>
<td>
- zlib compression support
</td>
<td align="left">
<?php echo extension_loaded('zlib') ? '<b><font color="green">Available</font></b>' : '<b><font
color="red">Unavailable</font></b>';?>
</td>
</tr>
<tr>
<td>
- XML support
</td>
<td align="left">
<?php echo extension_loaded('xml') ? '<b><font color="green">Available</font></b>' : '<b><font
color="red">Unavailable</font></b>';?>
</td>
</tr>
<tr>
<td>
- MySQL support
</td>
<td align="left">
<?php echo function_exists( 'mysql_connect' ) ? '<b><font color="green">Available</font></b>' :
'<b><font color="red">Unavailable</font></b>';?>
</td>
</tr>
<tr>
<td class="item">
Session save path
</td>
<td align="left">
<b><?php echo (($sp=ini_get('session.save_path'))?$sp:'Not set'); ?></b>,
<?php echo is_writable( $sp ) ? '<b><font color="green">Writeable</font></b>' : '<b><font
color="red">Unwriteable</font></b>';?>
</td>
</tr>
</table>
<p><strong>Recommended settings:</strong></p>
<p>These settings are recommended for PHP in order to ensure full compatibility
with Joomla. <br />
However, Joomla will still operate if your settings do not quite match the recommended
</p>
<table bgcolor="#FFFFCC" class="content">
<tr>
<td class="toggle">
Directive
</td>
<td class="toggle">
Recommended
</td>
<td class="toggle">
Actual
</td>
</tr>
<?php
$php_recommended_settings = array(array ('Safe Mode','safe_mode','OFF'),
array ('Display Errors','display_errors','ON'),
array ('File Uploads','file_uploads','ON'),
array ('Magic Quotes GPC','magic_quotes_gpc','ON'),
array ('Magic Quotes Runtime','magic_quotes_runtime','OFF'),
array ('Register Globals','register_globals','OFF'),
array ('Output Buffering','output_buffering','OFF'),
array ('Session auto start','session.auto_start','OFF'),
);
foreach ($php_recommended_settings as $phprec) {
?>
<tr>
<td class="item"><?php echo $phprec[0]; ?>:</td>
<td class="toggle"><?php echo $phprec[2]; ?>:</td>
<td>
<?php
if ( get_php_setting($phprec[1]) == $phprec[2] ) {
?>
<font color="green"><b>
<?php
} else {
?>
<font color="red"><b>
<?php
}
echo get_php_setting($phprec[1]);
?>
</b></font>
<td>
</tr>
<?php
}
?>
</table>
<p><a href="http://www.joomla.org" target="_blank">Joomla</a> is Free Software
released under the GNU/GPL License. </p>
</body>
</html>
È necessario un copia ed incolla dello script nella radice del server apache, suggerisco che il suffisso sia .php, tipo test.php
Un accenno al risultato dello script lo vediamo qui di seguito, il risultato, se avete seguito fino a qui, ve lo tirate fuori da soli:
Pre-installation check If any of these items are highlighted in red then please take actions to correct them. Failure to do so could lead to your Joomla installation not functioning correctly. PHP version >= 4.1.0 Yes - zlib compression support Available - XML support Available - MySQL support Available Session save path /var/lib/php5, Writeable Recommended settings: These settings are recommended for PHP in order to ensure full compatibility with Joomla. However, Joomla will still operate if your settings do not quite match the recommended
Installazione
Dopo aver scrupolosamente controllato l'ambiente necessario al funzionamento di Joomla! passiamo a installarlo scaricando la ultima versione che attualmente è la 1.10.0-Stable. Vi ricordate che abbiamo già aperta una shell e siamo superuser? In una directory in precedenza creata, nel caso di specie download, andiamo a digitare i seguenti comandi:
linux:~ # cd ~/download/ linux:~/download # lynx http://developer.joomla.org/sf/frs/do/downloadFile/projects.joomla/frs.joomla_1_0.1_0_10/frs5789?dl=1 linux:~/download # ls -l Joomla_1.0.10-Stable-Full_Package.tar.bz2 -rw-r--r-- 1 root root 1707685 Jul 1 18:10 Joomla_1.0.10-Stable-Full_Package.tar.bz2 linux:~/download #
Perchè lynx e non wget? Data la natura del link, c'è un passaggio di paramentri, wget salva il file con questo nome: frs5789?dl=1. Comunque liberi di scegliere il sistema a voi più comodo.
linux:~/download # cd /srv/www/htdocs/ linux:/srv/www/htdocs # ll total 12 drwxr-xr-x 3 root root 128 Jul 1 18:41 . drwxr-xr-x 5 root root 120 Jun 30 14:19 .. drwxr-xr-x 2 root root 208 May 16 18:22 gif -rw-r--r-- 1 root root 20 Jun 25 11:18 index.php -rw-r--r-- 1 root root 4455 Jul 1 08:57 test.php linux:/srv/www/htdocs # mkdir wiki linux:/srv/www/htdocs # cd wiki linux:/srv/www/htdocs/wiki # tar jxvf ~/download/Joomla_1.0.10-Stable-Full_Package.tar.bz2
Diamo invio e ritroveremo nella directory creata la struttura di archivi di Joomla!:
templates/css/ templates/css/offline.css templates/css/index.html templates/index.html templates/404.php linux:/srv/www/htdocs/wiki # ls -l total 171 drwxr-xr-x 15 root root 848 Jul 1 18:44 . drwxr-xr-x 4 root root 152 Jul 1 18:42 .. -rw-r--r-- 1 cborelli 1000 79239 Jun 25 16:54 CHANGELOG.php -rw-r--r-- 1 cborelli 1000 3429 Jun 25 16:54 COPYRIGHT.php -rw-r--r-- 1 cborelli 1000 4374 Jun 25 16:54 INSTALL.php -rw-r--r-- 1 cborelli 1000 17977 Jun 25 16:54 LICENSE.php drwxr-xr-x 9 cborelli 1000 360 Jun 25 16:54 administrator drwxr-xr-x 2 cborelli 1000 80 Jun 25 16:54 cache drwxr-xr-x 16 cborelli 1000 504 Jun 25 16:54 components -rw-r--r-- 1 cborelli 1000 4251 Jun 25 16:54 configuration.php-dist drwxr-xr-x 2 cborelli 1000 112 Jun 25 16:54 editor -rw-r--r-- 1 cborelli 1000 3053 Jun 25 16:54 globals.php drwxr-xr-x 3 cborelli 1000 2528 Jun 25 16:54 help -rw-r--r-- 1 cborelli 1000 3789 Jun 25 16:54 htaccess.txt drwxr-xr-x 6 cborelli 1000 904 Jun 25 16:54 images drwxr-xr-x 10 cborelli 1000 1288 Jun 25 16:54 includes -rw-r--r-- 1 cborelli 1000 7210 Jun 25 16:54 index.php -rw-r--r-- 1 cborelli 1000 4836 Jun 25 16:54 index2.php drwxr-xr-x 3 cborelli 1000 496 Jun 25 16:54 installation drwxr-xr-x 2 cborelli 1000 184 Jun 25 16:54 language -rw-r--r-- 1 cborelli 1000 710 Jun 25 16:54 mainbody.php drwxr-xr-x 7 cborelli 1000 208 Jun 25 16:54 mambots drwxr-xr-x 2 cborelli 1000 112 Jun 25 16:54 media drwxr-xr-x 2 cborelli 1000 1296 Jun 25 16:54 modules -rw-r--r-- 1 cborelli 1000 3808 Jun 25 16:54 offline.php -rw-r--r-- 1 cborelli 1000 2474 Jun 25 16:54 offlinebar.php -rw-r--r-- 1 cborelli 1000 709 Jun 25 16:54 pathway.php -rw-r--r-- 1 cborelli 1000 286 Jun 25 16:54 robots.txt drwxr-xr-x 5 cborelli 1000 200 Jun 25 16:54 templates linux:/srv/www/htdocs/wiki #
Siamo a questo punto pronti per procedere alla installazione attraverso il browser html che preferite, o se siete connessi in rete al server anche con IExporer (anche se Windows causa effetti indesiderati alla salute degli utenti), seguendo le istruzioni che gli sviluppatori di Joomla! danno qui Procediamo quindi a digitare la url di inizio dell'installazione che è:
http://localhost/wiki/
se siamo in locale, cioè il browser html è sulla stessa macchina dove stiamo installando Joomla! oppure:
http://172.20.44.100/wiki/
se siamo su un computer differente da quello dell'installazione. Attenzione, se il nome del server sul quale stiamo installando Joomla! è risolto localmente attraverso un dns locale o semplicemente attraverso il file /etc/hosts procederemo così:
server.miarete.localnet/wiki
Il nome del server e la numerazione ip sono di fantasia, cambiateli in conformità alla vostra configurazione di rete!
Se le istruzioni sono state eseguite correttamente ci ritroviamo nel Step 1 ed apparirà la seguente schermata:
Pre-installation check for: Joomla! 1.0.10 Stable [ Sundown ] 26 June 2006 00:00 UTC If any of these items are highlighted in red then please take actions to correct them. Failure to do so could lead to your Joomla installation not functioning correctly. PHP version >= 4.1.0 Yes - zlib compression support Available - XML support Available - MySQL support Available configuration.php Unwriteable You can still continue the install as the configuration will be displayed at the end, just copy & paste this and upload. Session save path Writeable /var/lib/php5 Recommended settings: These settings are recommended for PHP in order to ensure full compatibility with Joomla. However, Joomla will still operate if your settings do not quite match the recommended Directive Recommended Actual Safe Mode: OFF: OFF Display Errors: ON: OFF File Uploads: ON: ON Magic Quotes GPC: ON: OFF Magic Quotes Runtime: OFF: OFF Register Globals: OFF: OFF Output Buffering: OFF: OFF Session auto start: OFF: OFF Directory and File Permissions: In order for Joomla to function correctly it needs to be able to access or write to certain files or directories. If you see "Unwriteable" you need to change the permissions on the file or directory to allow Joomla to write to it. administrator/backups/ Unwriteable administrator/components/ Unwriteable administrator/modules/ Unwriteable administrator/templates/ Unwriteable cache/ Unwriteable components/ Unwriteable images/ Unwriteable images/banners/ Unwriteable images/stories/ Unwriteable language/ Unwriteable mambots/ Unwriteable mambots/content/ Unwriteable mambots/editors/ Unwriteable mambots/editors-xtd/ Unwriteable mambots/search/ Unwriteable mambots/system/ Unwriteable media/ Unwriteable modules/ Unwriteable templates/ Unwriteable
Abbiamo quindi ancora una serie di condizioni da fissare, quali sono i permessi di scrittura per le varie directory di servizio di Joomla! . Non consiglio assolutamente di modificare i permessi di scrittura con chmod ma li concediamo esclusivamente al server web Apache, operando invece in questo modo:
chown -R wwwrun:root *
Daremo quindi i diritti di scrittura solo all'utente (wwwuser) che esegue il servizio Apache web server e che ha gli stessi diritti di un utente ordinario. Per sapere nel vostro sistema qual'è:
linux:/srv/www/htdocs/wiki # grep User /etc/apache2/uid.conf User wwwrun linux:/srv/www/htdocs/wiki #
Invece l'archivio di configurazione configuration.php almeno per adesso lo lasciamo esattamente com'è. Diamo un occhiata in alto alla destra della schermata del browser dove appare il bottone Check Again, clicchiamo ancora una volta e vedremo che la situazione è nettamente cambiata:
Pre-installation check for: Joomla! 1.0.10 Stable [ Sundown ] 26 June 2006 00:00 UTC If any of these items are highlighted in red then please take actions to correct them. Failure to do so could lead to your Joomla installation not functioning correctly. PHP version >= 4.1.0 Yes - zlib compression support Available - XML support Available - MySQL support Available configuration.php Unwriteable You can still continue the install as the configuration will be displayed at the end, just copy & paste this and upload. Session save path Writeable /var/lib/php5 Recommended settings: These settings are recommended for PHP in order to ensure full compatibility with Joomla. However, Joomla will still operate if your settings do not quite match the recommended Directive Recommended Actual Safe Mode: OFF: OFF Display Errors: ON: OFF File Uploads: ON: ON Magic Quotes GPC: ON: OFF Magic Quotes Runtime: OFF: OFF Register Globals: OFF: OFF Output Buffering: OFF: OFF Session auto start: OFF: OFF Directory and File Permissions: In order for Joomla to function correctly it needs to be able to access or write to certain files or directories. If you see "Unwriteable" you need to change the permissions on the file or directory to allow Joomla to write to it. administrator/backups/ Writeable administrator/components/ Writeable administrator/modules/ Writeable administrator/templates/ Writeable cache/ Writeable components/ Writeable images/ Writeable images/banners/ Writeable images/stories/ Writeable language/ Writeable mambots/ Writeable mambots/content/ Writeable mambots/editors/ Writeable mambots/editors-xtd/ Writeable mambots/search/ Writeable mambots/system/ Writeable media/ Writeable modules/ Writeable templates/ Writeable
Adesso la situazione è normalizzata, abbiamo settato correttamente i permessi di scrittura, il configuration.php lo aggiusteremo poi con i parametri che ci darà direttamente l'installer. Procediamo a cliccare sempre in alto a destra dove appare Next, passiamo attraverso la licenza GNU/GPL, clicchiamo ancora Next e ci appare la schermata di configurazione di MySQL:
MySQL database configuration: Setting up Joomla to run on your server involves 4 simple steps... Please enter the hostname of the server Joomla is to be installed on. Enter the MySQL username, password and database name you wish to use with Joomla. Enter a table name prefix to be used by this Joomla! install and select what to do with existing tables from former installations. Install the sample data unless you are an experienced Joomla! User wanting to start with a completely empty site. Host Name This is usually 'localhost' MySQL User Name Either something as 'root' or a username given by the hoster MySQL Password For site security using a password for the mysql account is mandatory MySQL Database Name Some hosts allow only a certain DB name per site. Use table prefix in this case for distinct Joomla sites. MySQL Table Prefix Drop Existing Tables Backup Old Tables Any existing backup tables from former Joomla installations will be replaced Install Sample Data Don't uncheck this option unless you are experienced in using Joomla!
In questo esempio non appaiono le caselle di testo dove andiamo ad inserire i dati, comunque la schermata è autoesplicante e suggerisce le informazioni da immettere:
- Hostname: localhost (stiamo operando con MySQL sulla stessa macchina)
- MySQL User Name: root
- MySQL Password: Inserire qui la password
- MySQL Database Name: Wiki (è il nome che daremo alla tabella)
- Drop Existing Tables: spuntiamo la casella solo se stiamo reinstallando
- Backup Old Tables: spuntiamo la casella solo se intendiamo creare un backup di dati precedentemente utilizzati
- Install Sample Data: Consiglio vivamente di farlo, serve a farsi un idea...
Clicchiamo ancora una volta in alto a destra su Next, passiamo dalla conferma dei dati correttamente inseriti e l'installer procederà alla creazione delle tabelle di lavoro sul database e ci ritroviamo nel Step 2:
Joomla Installation SUCCESS! Enter the name of your Joomla site: Type in the name for your Joomla site. This name is used in email messages so make it something meaningful. Site name e.g. The Home of Joomla Joomla! is Free Software released under the GNU/GPL License.
- Carlo Borelli Personal Web (Qui va scritto il nome del sito)
Clicchiamo ancora in alto a destra e finalmente passiamo allo Step 3
Confirm the site URL, path, admin e-mail and file/directory chmods If URL and Path look correct then please do not change them. If you are not sure then please contact your ISP or administrator. Usually the values displayed will work for your site. Enter your e-mail address, this will be the e-mail address of the site SuperAdministrator. The permission settings will be used while installing Joomla itself, by the Joomla addon-installers and by the media manager. If you are unsure what flags shall be set, leave the default settings at the moment. You can still change these flags later in the site global configuration. URL Path Your E-mail Admin password File Permissions Dont CHMOD files (use server defaults) CHMOD files to: User: read write execute Group: read write execute World: read write execute Directory Permissions Dont CHMOD directories (use server defaults) CHMOD directories to: User: read write search Group: read write search World: read write search
In questa schermata le uniche cose che modificheremo sono:
- Your E-mail: (Poniamo la nostra email)
- Admin password: (Inseriamo la password di amministrazione del sito)
Procediamo cliccando in alto a destra la casella Next e arriviamo alla fine dell'installazione di Joomla!, lo Step 4:
Congratulations! Joomla is installed Click the "View Site" button to start Joomla site or "Administration" to take you to administrator login. PLEASE REMEMBER TO COMPLETELY REMOVE THE INSTALLATION DIRECTORY Administration Login Details Username : admin Password : ******* Your configuration file or directory is not writeable, or there was a problem creating the configuration file. You'll have to upload the following code by hand. Click in the textarea to highlight all of the code. <?php $mosConfig_offline = '0'; $mosConfig_host = 'localhost'; $mosConfig_user = 'root'; $mosConfig_password = '**********'; $mosConfig_db = 'wiki'; $mosConfig_dbprefix = 'jos_'; $mosConfig_lang = 'english'; $mosConfig_absolute_path = '/srv/www/htdocs/wiki'; $mosConfig_live_site = 'http://localhost/wiki'; $mosConfig_sitename = 'Carlo Borelli personal Web'; $mosConfig_shownoauth = '0'; $mosConfig_useractivation = '1'; $mosConfig_uniquemail = '1'; $mosConfig_offline_message = 'This site is down for maintenance.<br /> Please check back again soon.'; $mosConfig_error_message = 'This site is temporarily unavailable.<br /> Please notify the System Administrator'; $mosConfig_debug = '0'; $mosConfig_lifetime = '900'; $mosConfig_session_life_admin = '1800'; $mosConfig_session_type = '0'; $mosConfig_MetaDesc = 'Joomla - the dynamic portal engine and content management system'; $mosConfig_MetaKeys = 'Joomla, joomla'; $mosConfig_MetaTitle = '1'; $mosConfig_MetaAuthor = '1'; $mosConfig_locale = 'en_GB'; $mosConfig_offset = '0'; $mosConfig_offset_user = '0'; $mosConfig_hideAuthor = '0'; $mosConfig_hideCreateDate = '0'; $mosConfig_hideModifyDate = '0'; $mosConfig_hidePdf = '0'; $mosConfig_hidePrint = '0'; $mosConfig_hideEmail = '0'; $mosConfig_enable_log_items = '0'; $mosConfig_enable_log_searches = '0'; $mosConfig_enable_stats = '0'; $mosConfig_sef = '0'; $mosConfig_vote = '0'; $mosConfig_gzip = '0'; $mosConfig_multipage_toc = '1'; $mosConfig_allowUserRegistration = '1'; $mosConfig_link_titles = '0'; $mosConfig_error_reporting = -1; $mosConfig_list_limit = '30'; $mosConfig_caching = '0'; $mosConfig_cachepath = '/srv/www/htdocs/wiki/cache'; $mosConfig_cachetime = '900'; $mosConfig_mailer = 'mail'; $mosConfig_mailfrom = 'carlo.borelli@gmail.com'; $mosConfig_fromname = 'Carlo Borelli personal Web'; $mosConfig_sendmail = '/usr/sbin/sendmail'; $mosConfig_smtpauth = '0'; $mosConfig_smtpuser = ''; $mosConfig_smtppass = ''; $mosConfig_smtphost = 'localhost'; $mosConfig_back_button = '1'; $mosConfig_item_navigation = '1'; $mosConfig_secret = '************'; $mosConfig_pagetitles = '1'; $mosConfig_readmore = '1'; $mosConfig_hits = '1'; $mosConfig_icons = '1'; $mosConfig_favicon = 'favicon.ico'; $mosConfig_fileperms = ''; $mosConfig_dirperms = ''; $mosConfig_helpurl = 'http://help.joomla.org'; $mosConfig_mbf_content = '0'; $mosConfig_editor = 'tinymce'; $mosConfig_admin_expired = '1'; $mosConfig_frontend_login = '1'; $mosConfig_frontend_userparams = '1'; setlocale (LC_TIME, $mosConfig_locale); ?>
A questo punto copiamo la configurazione che ci viene proposta e la incolliamo nel file configuration.php con il vostro editor preferito:
linux:/srv/www/htdocs/wiki # vim configuration.php
- digitare i per inserire una linea di testo
- digitare Control+insert per incollare il testo copiato (siamo in gnome, kde o nel vostro gestore grafico preferito)
- digitare ESC, due punti orizzontali per andare in linea di comando, wq per salvare ed uscire
Cambiamo la ownership di configuration.php:
linux:/srv/www/htdocs/wiki # chown wwwrun:root configuration.php
Non ci resta che scegliere se andare direttamente al sito che abbiamo appena terminato di creare o passare ad amministrare i contenuti attraverso il pannello di amministrazione. Buon divertimento!
Carlo dot Borelli at gee mail dot com
Questo tutorial è rilasciato sotto Licenza Creative Commons.
BlogMarks
del.icio.us
digg
Facebook
Fark
Furl
GoogleBookmark
IcerocketSearch
Newsvine
Propeller
reddit
Segnalo
Simpy
Slashdot
smarking
Spurl
StumbleUpon
TechnoratiSearch
Vigillar
Wists
YahooBookmark