-
Notifications
You must be signed in to change notification settings - Fork 2
Install
Cedric AUDRIT edited this page Nov 28, 2020
·
2 revisions
- Install
Apache,PHPandMySQL.
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.
- You may also install
phpmyadminif 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.
- Add the following lines to
/etc/apache2/sites-enabled/000-default.confto 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
-
Modify
includes/connect.phpwith the wanted user and password and your database name. -
Modify
resources/bbs-queen.sqlLine 5 with the wanted user and password and your database name (same user/pass ofincludes/connect.php). -
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