PartDB: Difference between revisions

From FlowerHouseWiki
No edit summary
Line 12: Line 12:
<p>The subdomain is [https://parts.flowerhouse.at parts.flowerhouse.at] which is handled by the [[ReverseProxy]].</p>
<p>The subdomain is [https://parts.flowerhouse.at parts.flowerhouse.at] which is handled by the [[ReverseProxy]].</p>
__TOC__
__TOC__
== Old version ==
== Installation ==
<p>Install the required packages:</p>
<syntaxhighlight lang="console">
apt install git zip apache2 php php-mysql php-curl libapache2-mod-php php-opcache php-gettext
</syntaxhighlight>
 
<p>Configure locales:</p>
<syntaxhighlight lang="console">
dpkg-reconfigure locales
</syntaxhighlight>
 
=== Configure Apache ===
<p>Open the following file:</p>
<syntaxhighlight lang="console">
nano /etc/apache2/apache2.conf
</syntaxhighlight>
 
<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
        AllowOverride All
        Require all granted
</Directory>
</syntaxhighlight>
 
<p>Restart the apache service:</p>
<syntaxhighlight lang="console">
systemctl restart apache2
</syntaxhighlight>
 
=== Configure PHP ===
<p>Edit ''php.ini'':</p>
<syntaxhighlight lang="console">
nano /etc/php/7.3/apache2/php.ini
</syntaxhighlight>
 
<p>Change the following settings:</p>
<syntaxhighlight lang="console">
memory_limit = 128M
upload_max_filesize = 100M
post_max_size = 100M
</syntaxhighlight>
 
=== PartDB ===
<p>Download and unpack:</p>
<syntaxhighlight lang="console" line>
wget -O part-db.tar.gz https://github.com/jbtronics/Part-DB/archive/master.tar.gz
tar -xzf part-db.tar.gz -C /var/www
rm part-db.tar.gz
</syntaxhighlight>
 
<p>Change folder name to root directory:</p>
<syntaxhighlight lang="console" line>
cd /var/www
rm -r html
mv Part-DB-master html
</syntaxhighlight>
 
<p>Set ownership:</p>
<syntaxhighlight lang="console">
chown -R www-data:www-data html
</syntaxhighlight>
 
<p>Generate composer files:</p>
<syntaxhighlight lang="console" line>
cd /var/www/html
php composer.phar install -o --no-dev
</syntaxhighlight>
 
== New version ==
[https://docs.part-db.de/installation/installation%20guide-debian.html Installation Guide]
[https://docs.part-db.de/installation/installation%20guide-debian.html Installation Guide]


== Update ==
[https://docs.part-db.de/installation/installation_guide-debian.html#update-part-db Update Guide]
[https://docs.part-db.de/installation/installation_guide-debian.html#update-part-db Update Guide]



Revision as of 19:44, 27 May 2023


Network


IP: 192.168.88.16
MAC: 32:22:DA:F2:39:1B
Domain: parts.flowerhouse.at

System


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

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

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

Installation

Installation Guide

Update

Update Guide

Sources