Skip to content

Install

Cedric AUDRIT edited this page Nov 28, 2020 · 2 revisions

Installation (Debian-based Linux Distributions)

  1. Install Apache, PHP and MySQL.
sudo apt install apache2
sudo apt install php libapache2-mod-php php-mysql php-mbstring 
sudo apt install mysql-server mysql-client

MySQL will require a password for the root during the installation.

  1. You may also install phpmyadmin if you want to visualize the database.
sudo apt install phpmyadmin
sudo ln -s /usr/share/phpmyadmin /path/to/site

Choose apache2 as the web server, and enter your root password for MySQL.

  1. Add the following lines to /etc/apache2/sites-enabled/000-default.conf to configure the site.
DocumentRoot /path/to/site
<Directory /path/to/site/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted

        ErrorDocument 404 /404.php
        ErrorDocument 500 /500.php
        ErrorDocument 502 /500.php
        ErrorDocument 503 /500.php
        ErrorDocument 504 /500.php
</Directory>

And restart your apache by

sudo systemctl restart apache2
  1. Modify includes/connect.php with the wanted user and password and your database name.

  2. Modify resources/bbs-queen.sql Line 5 with the wanted user and password and your database name (same user/pass of includes/connect.php).

  3. Import Database + table structure ( bbs-queen.sql is in resources folder )bbs-queen.sql

mysql -u username -p < bbs-queen.sql

or

sudo mysql < bbs-queen.sql

Clone this wiki locally