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
Announcement
Collapse
No announcement yet.
How to install phpbb website on Linux
Collapse
This topic has been answered.
X
X
-
Answer selected by bogdan.sh at 09-19-2024, 07:03 AM.
Hello
Check below-
Install phpBB- Download and unzip phpBB:
wget https://www.phpbb.com/files/release/phpBB-3.3.9.zip unzip phpBB-3.3.9.zip - Move phpBB to your web directories:
sudo mv phpBB3 /var/www/html/site1-forum sudo mv phpBB3 /var/www/html/site2-forum - 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
- 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> - Enable and reload:
sudo a2ensite site1.conf sudo a2ensite site2.conf sudo systemctl reload apache2
- Log into MySQL:
mysql -u root -p - 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;
- Access http://site1.com and http://site2.com and follow the phpBB installation wizard.
- Delete the install directory after setup:
sudo rm -rf /var/www/html/site1-forum/install sudo rm -rf /var/www/html/site2-forum/install
- Log into the Admin Control Panel for each forum to configure settings.
- Selected Answer
- Download and unzip phpBB:
-
Hello
Check below-
Install phpBB- Download and unzip phpBB:
wget https://www.phpbb.com/files/release/phpBB-3.3.9.zip unzip phpBB-3.3.9.zip - Move phpBB to your web directories:
sudo mv phpBB3 /var/www/html/site1-forum sudo mv phpBB3 /var/www/html/site2-forum - 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
- 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> - Enable and reload:
sudo a2ensite site1.conf sudo a2ensite site2.conf sudo systemctl reload apache2
- Log into MySQL:
mysql -u root -p - 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;
- Access http://site1.com and http://site2.com and follow the phpBB installation wizard.
- Delete the install directory after setup:
sudo rm -rf /var/www/html/site1-forum/install sudo rm -rf /var/www/html/site2-forum/install
- Log into the Admin Control Panel for each forum to configure settings.
- Selected Answer
Comment
- Download and unzip phpBB:
-
Originally posted by rosshaden View PostHello
Check below-
Install phpBB- Download and unzip phpBB:
wget https://www.phpbb.com/files/release/phpBB-3.3.9.zip unzip phpBB-3.3.9.zip - Move phpBB to your web directories:
sudo mv phpBB3 /var/www/html/site1-forum sudo mv phpBB3 /var/www/html/site2-forum - 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
- 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> - Enable and reload:
sudo a2ensite site1.conf sudo a2ensite site2.conf sudo systemctl reload apache2
- Log into MySQL:
mysql -u root -p - 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;
- Access http://site1.com and http://site2.com and follow the phpBB installation wizard.
- Delete the install directory after setup:
sudo rm -rf /var/www/html/site1-forum/install sudo rm -rf /var/www/html/site2-forum/install
- Log into the Admin Control Panel for each forum to configure settings.
Comment
- Download and unzip phpBB:
Comment