GNU/Linux >> Belajar Linux >  >> Ubuntu

Cara Menginstal phpBB di Ubuntu 20.04

Pengantar

phpBB adalah paket forum Internet dalam bahasa skrip PHP. Nama “phpBB” adalah singkatan dari Papan Buletin PHP . Tersedia di bawah Lisensi Publik Umum GNU, phpBB gratis dan bersumber terbuka.

Fitur phpBB mencakup dukungan untuk beberapa mesin basis data (PostgreSQL, SQLite, MySQL, Oracle Database, Microsoft SQL Server), struktur pesan datar (sebagai lawan dari utas), subforum hierarkis, pemisahan topik/penggabungan/penguncian, grup pengguna, beberapa lampiran per postingan, penelusuran teks lengkap, plugin, dan berbagai opsi notifikasi (email, pesan instan Jabber, feed ATOM).

Sangat mudah untuk menginstal phpBB di sebagian besar server web seperti Apache dan Nginx dan juga mudah untuk dikelola dan digunakan.

Sayadalam tutorial ini, kami mempelajari cara menginstal phpBB dengan Apache di Ubuntu 20.04.

Pemasangan

Cukup ikuti langkah-langkah di bawah ini :

  • Instal tumpukan 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
  • Jalankan script di bawah ini untuk mengamankan database 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!
  • Instal PHP di Ubuntu
sudo apt install php php-mysql
  • Instal modul PHP berikut yang dibutuhkan oleh 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
  • Buat database untuk phpBB menggunakan mariadb
sudo mysql -u root -p
  • Buat database untuk PHPBB, lalu buat pengguna ke database dan berikan semua hak istimewa kepada pengguna.
CREATE USER 'phpbb_user'@'localhost' IDENTIFIED BY 'unixcopPassword';
GRANT ALL ON phpbb_db.* to 'phpbb_user'@'localhost' IDENTIFIED BY 'unixcopPassword';
FLUSH PRIVILEGES;
\q
  • Download phpBB, Pada saat artikel ini ditulis, versi terbaru dari PHPBB adalah versi 3.3.5.
cd /mnt
sudo wget -c https://download.phpbb.com/pub/release/3.3/3.3.5/phpBB-3.3.5.zip

CATATAN :Anda dapat mengunduh phpBB versi terbaru dari tautan ini rilis phpBB

  •  Buka zip file terkompresi
unzip phpBB-3.3.5.zip
  • Pindahkan ke direktori root dan ganti namanya menjadi phpbb
sudo mv phpBB3 /var/www/html/phpbb
  • Setel kepemilikan dan izin yang sesuai
sudo chown -R www-data:www-data /var/www/html/phpbb
sudo chmod -R 755 /var/www/html/phpbb
  • Konfigurasikan host virtual untuk phpBB
sudo vim /etc/apache2/sites-available/phpbb.conf
  • Kemudian tambahkan yang berikut
<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>
  • Aktifkan host virtual PHPBB.
sudo a2ensite phpbb
  • Aktifkan modul penulisan ulang Apache.
sudo a2enmod rewrite
  •  Mulai ulang Apache
sudo systemctl restart apache2
  • Buka browser Anda dan ketik URL yang ditampilkan http://IP_server atau http://domain.com untuk saya http://phpbbunixcop.com

Halaman Selamat Datang menyediakan pengenalan PHPBB.

  • Klik PASANG untuk menyelesaikan penginstalan
  • Selamat datang di instalasi, untuk melanjutkan klik Instal
  • Isi informasi pengguna dan sandi Admin lalu klik Kirim seperti yang ditunjukkan di bawah ini
  • Masukkan detail database phpbb yang telah kita buat sebelumnya lalu klik kirim
  • Selanjutnya, Klik kirim dengan konfigurasi server default ini
  • Isi detail server SMTP termasuk alamat server, port, nama pengguna SMTP, dan sandi, lalu klik Kirim . Jika fungsi email tidak dikonfigurasi, cukup klik Kirim tanpa mengubah apa pun
  • Konfigurasikan pengaturan Papan Buletin seperti bahasa default, Judul Papan, dan deskripsi singkat papan. Kemudian klik Kirim
  • Penginstal akan menginstal file yang diperlukan untuk PHPBB. setelah selesai klik ACP tautan yang ditunjukkan di bawah pada tangkapan layar.
  • Anda akan dibawa ke panel kontrol Administrasi, Juga untuk memeriksa versi phpBB buka Panel Kontrol Administrasi dan klik Indeks admin seperti yang ditunjukkan di bawah ini.
  • Versi PHP ditampilkan seperti gambar di bawah

Kesimpulan

Itu saja

Dalam tutorial ini kami mengilustrasikan cara menginstal phpBB di Ubuntu 20.04.

Terima kasih


Ubuntu
  1. Cara Menginstal MariaDB 10.4 di Ubuntu 18.04

  2. Cara Menginstal MariaDB di Ubuntu 18.04

  3. Cara Menginstal LiteCart di Ubuntu 15.04

  1. Cara Menginstal MariaDB di Ubuntu 20.04

  2. Cara Menginstal MariaDB di Ubuntu 20.04 LTS

  3. Cara Menginstal MariaDB di Ubuntu 18.04 / Ubuntu 16.04

  1. Cara Menginstal MariaDB di Ubuntu 20.04 LTS

  2. Cara Menginstal MariaDB 10.6 di Ubuntu 20.04

  3. Cara Menginstal MariaDB 10.7 di Ubuntu 20.04