GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Come installare phpBB su Ubuntu 20.04

Introduzione

phpBB è un pacchetto di forum Internet nel linguaggio di scripting PHP. Il nome "phpBB" è l'abbreviazione di PHP Bulletin Board . Disponibile sotto la GNU General Public License, phpBB è gratuito e open-source.

Le funzionalità di phpBB includono il supporto per più motori di database (PostgreSQL, SQLite, MySQL, Oracle Database, Microsoft SQL Server), struttura dei messaggi flat (anziché threaded), sottoforum gerarchici, suddivisione/unione/blocco di argomenti, gruppi di utenti, più allegati per post, ricerca full-text, plug-in e varie opzioni di notifica (e-mail, messaggistica istantanea Jabber, feed ATOM).

È facile installare phpBB sulla maggior parte dei server Web come Apache e Nginx e anche facile da amministrare e utilizzare.

In questo tutorial, impariamo come installare phpBB con Apache su Ubuntu 20.04.

Installazione

Segui i passaggi seguenti :

  • Installa lo stack LAMP (Apache-Mariadb-PHP)
#Update Packages
sudo apt update

#Install, start and enable apache 
sudo apt install apache2 -y
sudo systemctl start apache2
sudo systemctl enable apache2

#Install, start and enable Mariadb Database
sudo apt install mariadb-server -y
sudo systemctl start mariadb
sudo systemctl enable mariadb
  • Esegui lo script qui sotto per proteggere il database di maria
mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!

In order to log into MariaDB to secure it, we'll need the current password for the root user.  If you've just installed MariaDB, and you haven't set the root password yet, the password will be blank, so you should just press enter here.

Enter current password for root (enter for none):
OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB root user without the proper authorisation.

Set root password? [Y/n] y
New password:
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment.

Remove anonymous users? [Y/n] y
 ... Success!

Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network.

Disallow root login remotely? [Y/n] y
 ... Success!

By default, MariaDB comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment.

Remove test database and access to it? [Y/n] y
 - Dropping test database...
 ... Success!
 - Removing privileges on test database...
 ... Success!

Reloading the privilege tables will ensure that all changes made so far will take effect immediately.

Reload privilege tables now? [Y/n] y
 ... Success!

Cleaning up...

All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.

Thanks for using MariaDB!
  • Installa PHP su Ubuntu
sudo apt install php php-mysql
  • Installa i seguenti moduli PHP richiesti da PHPBB
sudo apt install php-net-ftp php7.4-ldap php7.4-common libapache2-mod-php7.4 php7.4-gd php7.4-curl openssl php-imagick php7.4-intl php7.4-json php7.4-imap php7.4-mbstring php7.4-mysql php7.4-zip unzip php7.4-pgsql php-ssh2 php7.4-xml php7.4-sqlite3 -y
  • Crea database per phpBB usando mariadb
sudo mysql -u root -p
  • Crea il database per PHPBB, quindi crea l'utente nel database e concedi tutti i privilegi all'utente.
CREATE USER 'phpbb_user'@'localhost' IDENTIFIED BY 'unixcopPassword';
GRANT ALL ON phpbb_db.* to 'phpbb_user'@'localhost' IDENTIFIED BY 'unixcopPassword';
FLUSH PRIVILEGES;
\q
  • Scarica phpBB, Al momento della stesura di questo articolo, l'ultima versione di PHPBB è la versione 3.3.5.
cd /mnt
sudo wget -c https://download.phpbb.com/pub/release/3.3/3.3.5/phpBB-3.3.5.zip

NOTA :Puoi scaricare l'ultima versione di phpBB da questo link phpBB releases

  •  Decomprimi il file compresso
unzip phpBB-3.3.5.zip
  • Spostalo nella directory principale e rinominalo in phpbb
sudo mv phpBB3 /var/www/html/phpbb
  • Imposta la proprietà e le autorizzazioni appropriate
sudo chown -R www-data:www-data /var/www/html/phpbb
sudo chmod -R 755 /var/www/html/phpbb
  • Configura un host virtuale per phpBB
sudo vim /etc/apache2/sites-available/phpbb.conf
  • Quindi aggiungi quanto segue
<VirtualHost *:80>
      ServerAdmin [email protected]
      DocumentRoot /var/www/html/phpbb
      ServerName phpBBunixcop.com

      <Directory /var/www/html/phpbb>
                Options FollowSymlinks
                AllowOverride All
                Require all granted
       </Directory>

ErrorLog ${APACHE_LOG_DIR}/phpBBunixcop.com_error.log
CustomLog ${APACHE_LOG_DIR}/phpBBunixcop.com_access.log combined

</VirtualHost>
  • Abilita l'host virtuale PHPBB.
sudo a2ensite phpbb
  • Abilita il modulo di riscrittura di Apache.
sudo a2enmod rewrite
  •  Riavvia l'Apache
sudo systemctl restart apache2
  • Apri il browser e digita l'URL mostrato http://IP_server o http://dominio.com per me http://phpbbunixcop.com

La pagina di benvenuto fornisce un'introduzione a PHPBB.

  • Fai clic su INSTALLA per completare l'installazione
  • Benvenuto nell'installazione, per continuare fai clic su Installa
  • Compila le informazioni dell'utente amministratore e della password, quindi fai clic su Invia come mostrato di seguito
  • Inserisci i dettagli del database phpbb che abbiamo creato prima, quindi fai clic su invia
  • Avanti, fai clic su invia con queste configurazioni server predefinite
  • Compila i dettagli del server SMTP, inclusi l'indirizzo del server, la porta, il nome utente SMTP e la password, e fai clic su Invia . Se la funzionalità e-mail non è configurata, fai semplicemente clic su Invia senza cambiare nulla
  • Configura le impostazioni della bacheca come la lingua predefinita, il titolo della bacheca e una breve descrizione della bacheca. Quindi fai clic su Invia
  • Il programma di installazione installerà i file necessari per PHPBB. al termine, fai clic su ACP link mostrato di seguito nello screenshot.
  • Ti porta al pannello di controllo dell'amministrazione, anche per controllare la versione phpBB vai su Pannello di controllo amministrazione e fai clic su Indice amministratore come mostrato di seguito.
  • La versione PHP viene visualizzata come mostrato di seguito

Conclusione

Questo è tutto

In questo tutorial abbiamo illustrato come installare phpBB su Ubuntu 20.04.

Grazie


Ubuntu
  1. Come installare MariaDB 10.4 su Ubuntu 18.04

  2. Come installare MariaDB su Ubuntu 18.04

  3. Come installare MariaDB su Ubuntu 20.04

  4. Come installare MariaDB in Ubuntu 20.04 LTS

  5. Come installare LiteCart su Ubuntu 15.04

Come installare Mahara su Ubuntu 16.04

Come installare MariaDB su Ubuntu 16.04

Come installare X2CRM su Ubuntu 16.04

Come installare Rukovoditel su Ubuntu 16.04

Come installare OpenCart su Ubuntu 16.04

Come installare MariaDB su Ubuntu