This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| computing:invoiceplane [2019/12/24 06:35] – oemb1905 | computing:invoiceplane [2021/10/31 09:21] (current) – oemb1905 | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| ------------------------------------------- | ------------------------------------------- | ||
| - | This tutorial is for users of Debian who have already established a host with TLS/LAMP and want to create an [[hhttps:// | + | This tutorial is for users of Debian who have already established a host with TLS/LAMP and want to create an [[hhttps:// |
| + | |||
| + | cd / | ||
| + | rm -r public_html | ||
| + | wget / | ||
| + | unzip invoice-plane-1-5-9.zip | ||
| + | mv v1.5.9.zip public_html | ||
| + | |||
| + | Now, let's copy the example php configuration file and then edit it with some basic parameters: | ||
| + | |||
| + | cp ipconfig.php.example ipconfig.php | ||
| + | nano ipconfig.php | ||
| + | < | ||
| + | |||
| + | Okay, you need to adjust permissions for the portions of the web root directory that require external access by the www-data user: | ||
| + | |||
| + | sudo chown -R www-data: | ||
| + | sudo chmod -R 755 / | ||
| + | sudo chown -R www-data: | ||
| + | sudo chmod -R 755 / | ||
| + | sudo chown -R www-data: | ||
| + | sudo chmod -R 755 / | ||
| + | |||
| + | There are more hardening and permissions that could be done, but that will get everything working and allow for creation of pdf invoices. | ||
| + | |||
| + | mysql -u root -p | ||
| + | CREATE DATABASE invoiceplane; | ||
| + | CREATE USER ipuser@localhost IDENTIFIED BY ' | ||
| + | GRANT ALL PRIVILEGES ON invoiceplane.* to ipuser@localhost IDENTIFIED BY ' | ||
| + | FLUSH PRIVILEGES; | ||
| + | EXIT; | ||
| + | |||
| + | Now, navigate to the website and enter in your database credentials using the web-based installer: | ||
| + | |||
| + | https:// | ||
| + | |||
| + | It is quite possible that you will get a php error, since the version I have linked here is the last stable version before @kovah.de decided to stop maintaining the project and it utilizes an out of date php function syntax. | ||
| + | |||
| + | Original php code: | ||
| + | |||
| + | public function set_class($class) | ||
| + | { | ||
| + | $suffix = $this-> | ||
| + | if (strpos($class, | ||
| + | $class .= $suffix; | ||
| + | } | ||
| + | parent:: | ||
| + | } | ||
| + | |||
| + | Correct/ | ||
| + | |||
| + | public function set_class($class) | ||
| + | { | ||
| + | $suffix = (string) $this-> | ||
| + | parent:: | ||
| + | } | ||
| + | |||
| + | Revisit the website and refresh, and you should now be able to configure the database using the web-based installer without a php error. | ||
| + | |||
| + | mysql -u root -p | ||
| + | use invoiceplane; | ||
| + | INSERT INTO `ip_users` (`user_type`, | ||
| + | VALUES (1, 1, ' | ||
| + | flush privileges; | ||
| + | exit; | ||
| + | |||
| + | Okay, you should now be able to log in using the credentials @kovah.de originally specified in the forum. | ||
| + | |||
| + | systemctl restart apache2 | ||
| + | systemctl restart php7.3-fpm.service | ||
| + | user: demo@invoiceplane.com | ||
| + | pass: demopassword | ||
| + | |||
| + | After logging in, **immediately change** your credentials and log back out and in again. | ||
| + | |||
| + | --- // | ||
| + | |||