PartDB: Difference between revisions

From FlowerHouseWiki
Line 22: Line 22:
<p>Open the following file:</p>
<p>Open the following file:</p>
<syntaxhighlight lang="console">
<syntaxhighlight lang="console">
nano /etc/apache2/sites-available/000-default.conf
nano /etc/apache2/apache2.conf
</syntaxhighlight>
</syntaxhighlight>


<p>And edit it as shown here:</p>
<p>And change this part:</p>
<syntaxhighlight lang="console" line>
<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>
</syntaxhighlight>
 
<p>to this:</p>
<syntaxhighlight lang="console" line>
<Directory /var/www/>
        Options -Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>
</syntaxhighlight>





Revision as of 21:08, 28 February 2021

Froeling.jpg

Network


IP: 192.168.88.??
MAC: ??
Domain: parts.flowerhouse.at

System


OS: Debian Buster
RAM: 512MB
Cores: 1
Privileged: No

The PartDB-LXC is reachable under 192.168.88.?? which is located in the ServerVLAN.

The subdomain is parts.flowerhouse.at which is handled by the ReverseProxy.

Basic Setup

Install the required packages:

apt install apache2 php php-mysql php-curl libapache2-mod-php php-opcache php-gettext

Configure Apache

Open the following file:

nano /etc/apache2/apache2.conf

And change this part:

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

to this:

<Directory /var/www/>
        Options -Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>


Restart the apache service:

systemctl restart apache2

Configure PHP

Open the php.ini file:

nano /etc/php5/apache2/php.ini

Sources