Announcement

Collapse
No announcement yet.

How to install phpbb website on Linux

Collapse
This topic has been answered.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to install phpbb website on Linux

    How do I set up phpbb website using Linux trying to set up forums using PHPBB My set up is as follows. -have two websites on the same server -would like to have an independent forum for each site
  • Answer selected by bogdan.sh at 09-19-2024, 07:03 AM.

    Hello

    Check below-

    Install phpBB
    1. Download and unzip phpBB:

      wget https://www.phpbb.com/files/release/phpBB-3.3.9.zip unzip phpBB-3.3.9.zip
    2. Move phpBB to your web directories:

      sudo mv phpBB3 /var/www/html/site1-forum sudo mv phpBB3 /var/www/html/site2-forum
    3. Set permissions:

      sudo chown -R www-data:www-data /var/www/html/site1-forum sudo chown -R www-data:www-data /var/www/html/site2-forum sudo chmod -R 755 /var/www/html/site1-forum sudo chmod -R 755 /var/www/html/site2-forum
    2. Configure Apache Virtual Hosts
    1. Create virtual host files:

      For Site 1:

      sudo nano /etc/apache2/sites-available/site1.conf apache

      <VirtualHost *:80> DocumentRoot /var/www/html/site1-forum ServerName site1.com <Directory /var/www/html/site1-forum> AllowOverride All Require all granted </Directory> </VirtualHost>
      For Site 2:

      sudo nano /etc/apache2/sites-available/site2.conf apache

      <VirtualHost *:80> DocumentRoot /var/www/html/site2-forum ServerName site2.com <Directory /var/www/html/site2-forum> AllowOverride All Require all granted </Directory> </VirtualHost>
    2. Enable and reload:

      sudo a2ensite site1.conf sudo a2ensite site2.conf sudo systemctl reload apache2
    3. Create Databases
    1. Log into MySQL:

      mysql -u root -p
    2. Create databases and users:

      CREATE DATABASE site1_forum_db; CREATE DATABASE site2_forum_db; CREATE USER 'site1_user'@'localhost' IDENTIFIED BY 'password1'; CREATE USER 'site2_user'@'localhost' IDENTIFIED BY 'password2'; GRANT ALL PRIVILEGES ON site1_forum_db.* TO 'site1_user'@'localhost'; GRANT ALL PRIVILEGES ON site2_forum_db.* TO 'site2_user'@'localhost'; FLUSH PRIVILEGES; EXIT;
    4. Install phpBB
    1. Access http://site1.com and http://site2.com and follow the phpBB installation wizard.
    2. Delete the install directory after setup:

      sudo rm -rf /var/www/html/site1-forum/install sudo rm -rf /var/www/html/site2-forum/install
    5. Configure phpBB
    1. Log into the Admin Control Panel for each forum to configure settings.

    Comment


    • #2
      You would have to setup two forums in every public_html for both domains.

      Not really CloudLinux related question, but anyway

      Comment


      • #3
        Hello

        Check below-

        Install phpBB
        1. Download and unzip phpBB:

          wget https://www.phpbb.com/files/release/phpBB-3.3.9.zip unzip phpBB-3.3.9.zip
        2. Move phpBB to your web directories:

          sudo mv phpBB3 /var/www/html/site1-forum sudo mv phpBB3 /var/www/html/site2-forum
        3. Set permissions:

          sudo chown -R www-data:www-data /var/www/html/site1-forum sudo chown -R www-data:www-data /var/www/html/site2-forum sudo chmod -R 755 /var/www/html/site1-forum sudo chmod -R 755 /var/www/html/site2-forum
        2. Configure Apache Virtual Hosts
        1. Create virtual host files:

          For Site 1:

          sudo nano /etc/apache2/sites-available/site1.conf apache

          <VirtualHost *:80> DocumentRoot /var/www/html/site1-forum ServerName site1.com <Directory /var/www/html/site1-forum> AllowOverride All Require all granted </Directory> </VirtualHost>
          For Site 2:

          sudo nano /etc/apache2/sites-available/site2.conf apache

          <VirtualHost *:80> DocumentRoot /var/www/html/site2-forum ServerName site2.com <Directory /var/www/html/site2-forum> AllowOverride All Require all granted </Directory> </VirtualHost>
        2. Enable and reload:

          sudo a2ensite site1.conf sudo a2ensite site2.conf sudo systemctl reload apache2
        3. Create Databases
        1. Log into MySQL:

          mysql -u root -p
        2. Create databases and users:

          CREATE DATABASE site1_forum_db; CREATE DATABASE site2_forum_db; CREATE USER 'site1_user'@'localhost' IDENTIFIED BY 'password1'; CREATE USER 'site2_user'@'localhost' IDENTIFIED BY 'password2'; GRANT ALL PRIVILEGES ON site1_forum_db.* TO 'site1_user'@'localhost'; GRANT ALL PRIVILEGES ON site2_forum_db.* TO 'site2_user'@'localhost'; FLUSH PRIVILEGES; EXIT;
        4. Install phpBB
        1. Access http://site1.com and http://site2.com and follow the phpBB installation wizard.
        2. Delete the install directory after setup:

          sudo rm -rf /var/www/html/site1-forum/install sudo rm -rf /var/www/html/site2-forum/install
        5. Configure phpBB
        1. Log into the Admin Control Panel for each forum to configure settings.

        Comment


        • #4
          Thanks for your detailed instruction. This is what I am looking for.

          Comment


          • #5
            Originally posted by rosshaden View Post
            Hello

            Check below-

            Install phpBB
            1. Download and unzip phpBB:

              wget https://www.phpbb.com/files/release/phpBB-3.3.9.zip unzip phpBB-3.3.9.zip
            2. Move phpBB to your web directories:

              sudo mv phpBB3 /var/www/html/site1-forum sudo mv phpBB3 /var/www/html/site2-forum
            3. Set permissions:

              sudo chown -R www-data:www-data /var/www/html/site1-forum sudo chown -R www-data:www-data /var/www/html/site2-forum sudo chmod -R 755 /var/www/html/site1-forum sudo chmod -R 755 /var/www/html/site2-forum
            2. Configure Apache Virtual Hosts
            1. Create virtual host files:

              For Site 1:

              sudo nano /etc/apache2/sites-available/site1.conf apache

              <VirtualHost *:80> DocumentRoot /var/www/html/site1-forum ServerName site1.com <Directory /var/www/html/site1-forum> AllowOverride All Require all granted </Directory> </VirtualHost>
              For Site 2:

              sudo nano /etc/apache2/sites-available/site2.conf apache

              <VirtualHost *:80> DocumentRoot /var/www/html/site2-forum ServerName site2.com <Directory /var/www/html/site2-forum> AllowOverride All Require all granted </Directory> </VirtualHost>
            2. Enable and reload:

              sudo a2ensite site1.conf sudo a2ensite site2.conf sudo systemctl reload apache2
            3. Create Databases
            1. Log into MySQL:

              mysql -u root -p
            2. Create databases and users:

              CREATE DATABASE site1_forum_db; CREATE DATABASE site2_forum_db; CREATE USER 'site1_user'@'localhost' IDENTIFIED BY 'password1'; CREATE USER 'site2_user'@'localhost' IDENTIFIED BY 'password2'; GRANT ALL PRIVILEGES ON site1_forum_db.* TO 'site1_user'@'localhost'; GRANT ALL PRIVILEGES ON site2_forum_db.* TO 'site2_user'@'localhost'; FLUSH PRIVILEGES; EXIT;
            4. Install phpBB
            1. Access http://site1.com and http://site2.com and follow the phpBB installation wizard.
            2. Delete the install directory after setup:

              sudo rm -rf /var/www/html/site1-forum/install sudo rm -rf /var/www/html/site2-forum/install
            5. Configure phpBB
            1. Log into the Admin Control Panel for each forum to configure settings.
            Thanks for showing me how to fix it, very detailed and specific.

            Comment

            Working...
            X