« Installation phpBB-3.0.11 » : différence entre les versions
Aller à la navigation
Aller à la recherche
Ligne 1 : | Ligne 1 : | ||
<span style="color:#FF0000;">''' /!\ En cours de rédaction ... /!\'''</span> | <span style="color:#FF0000;">''' /!\ En cours de rédaction ... /!\'''</span> | ||
<span style="color:#FF0000;"> </span> | |||
=Installation d'un forum phpBB= | =Installation d'un forum phpBB= | ||
Ligne 15 : | Ligne 18 : | ||
=Création de la base de données Mysql= | |||
* Via la console. | * Via la console. | ||
Ligne 82 : | Ligne 85 : | ||
~ # | ~ # | ||
=Téléchargement et décompression= | |||
~ # cd /opt/sources/telechargements | ~ # cd /opt/sources/telechargements | ||
Ligne 92 : | Ligne 95 : | ||
* l'option -d à pour effet d'extraire le fichier zip dans le répertoire /var/www/ et ne supprime pas l'archive zip. Si le répertoire de destination n'existe pas il est crée. | |||
/opt/sources/telechargements # unzip phpBB-3.0.11_FR.zip -d /var/www | |||
=Création du Vhost apache2= | |||
* Le forum sera accessible via http://<span style="color:#FF0000;">votre_domaine.com</span> | |||
# touch /etc/apache2/sites-available/phpBB3 | |||
# nano /etc/apache2/sites-available/phpBB3 | |||
<VirtualHost *:80> | |||
ServerName phpBB3 | |||
ServerAlias phpBB3 | |||
RewriteCond %{HTTP_HOST} ^<span style="color:#FF0000;">votre_domaine.com</span>$ | |||
RewriteRule ^(.*) http://www.<span style="color:#FF0000;">votre_domaine.com</span>/$1 [QSA,L,R=301] | |||
ServerAdmin webmaster@<span style="color:#FF0000;">votre_domaine.com</span> | |||
DocumentRoot /var/www/phpBB3/ | |||
<Directory /> | |||
Options FollowSymLinks | |||
AllowOverride all | |||
</Directory> | |||
<Directory /var/www/phpBB3/> | |||
Options Indexes +FollowSymLinks MultiViews | |||
AllowOverride all | |||
Order allow,deny | |||
# allow from all | |||
allow from 192.168.1.13, 2.x.x.x | |||
</Directory> | |||
include /etc/apache2/www.d/*.conf | |||
ErrorLog ${APACHE_LOG_DIR}/www-error.log | |||
# Possible values include: debug, info, notice, warn, error, crit, | |||
# alert, emerg. | |||
LogLevel error | |||
CustomLog ${APACHE_LOG_DIR}/www-access.log combined | |||
</VirtualHost> | |||
===Interdire l'accès public provisoirement=== | |||
Afin de pouvoir procéder aux divers configurations/créations/modif etc ... une fois l'installation terminer | |||
* On interdit et autorise uniquement: | |||
** allow from all la ligne est commenté (accès public autoriser) | |||
** allow from 192.168.1.13, 2.x.x.x on autorise uniquement l'ip local et public (accès uniquement pour ...) | |||
Version du 12 septembre 2012 à 12:00
/!\ En cours de rédaction ... /!\
Installation d'un forum phpBB
Prérequis
- (fr) Téléchargements et mises à jour
- Ce tutoriel est destiné aux utilisateurs Linux, plus particulièrement Debian Squeeze dans le cas présent.
Notes
- Un bon nombre de png serviront de support d'installation.
- Pour votre confort, ces images on étaient réduites (à 300 pixels).
- Deux clics à la suite, sur l'une d'elles, l'affichera en mode pleine écran.
Création de la base de données Mysql
- Via la console.
~ # mysql Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 10576 Server version: 5.1.63-0+squeeze1-log (Debian) Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. 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>
- Nommer cette base à votre guise, sous conditions:
- ne pas utiliser de caractère spéciaux.
- ne pas utiliser de caractère accentué
- ne pas utiliser de tiret - ni de point .
mysql> create database phpBB_3_0_11; Query OK, 1 row affected (0.00 sec) mysql>
- Suppression d'une base, suite au(x) caractère(s)
- /!\ Prenez garde quant à la sélection de cette dernière!!! La suppression sera irréversible /!\
mysql> mysql> DROP DATABASE phpBB_; Query OK, 0 rows affected (0.00 sec) mysql>
Création de l'utilisateur de cet base
mysql> grant all privileges on phpBB_3_0_11.* to "user_phpBB"@"localhost" identified by 'votre_mot_de_pass_en_bêton'; Query OK, 0 rows affected (0.00 sec) mysql>
- Recharger les privilèges et quitter proprement.
mysql> mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql>
mysql> quit; Bye ~ #
- Redémarrer mysql.
~ # /etc/init.d/mysql restart Stopping MySQL database server: mysqld. Starting MySQL database server: mysqld. Checking for corrupt, not cleanly closed and upgrade needing tables.. ~ #
Téléchargement et décompression
~ # cd /opt/sources/telechargements /opt/sources/telechargements #
/opt/sources/telechargements # wget -c http://garr.dl.sourceforge.net/project/phpbb-fr/phpBB3/phpBB%203.0.11%20Package/phpBB- 3.0.11_FR.zip ... /opt/sources/telechargements #
- l'option -d à pour effet d'extraire le fichier zip dans le répertoire /var/www/ et ne supprime pas l'archive zip. Si le répertoire de destination n'existe pas il est crée.
/opt/sources/telechargements # unzip phpBB-3.0.11_FR.zip -d /var/www
Création du Vhost apache2
- Le forum sera accessible via http://votre_domaine.com
# touch /etc/apache2/sites-available/phpBB3
# nano /etc/apache2/sites-available/phpBB3
<VirtualHost *:80> ServerName phpBB3 ServerAlias phpBB3 RewriteCond %{HTTP_HOST} ^votre_domaine.com$ RewriteRule ^(.*) http://www.votre_domaine.com/$1 [QSA,L,R=301] ServerAdmin webmaster@votre_domaine.com DocumentRoot /var/www/phpBB3/ <Directory /> Options FollowSymLinks AllowOverride all </Directory> <Directory /var/www/phpBB3/> Options Indexes +FollowSymLinks MultiViews AllowOverride all Order allow,deny # allow from all allow from 192.168.1.13, 2.x.x.x </Directory> include /etc/apache2/www.d/*.conf ErrorLog ${APACHE_LOG_DIR}/www-error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel error CustomLog ${APACHE_LOG_DIR}/www-access.log combined </VirtualHost>
Interdire l'accès public provisoirement
Afin de pouvoir procéder aux divers configurations/créations/modif etc ... une fois l'installation terminer
- On interdit et autorise uniquement:
- allow from all la ligne est commenté (accès public autoriser)
- allow from 192.168.1.13, 2.x.x.x on autorise uniquement l'ip local et public (accès uniquement pour ...)