I am wondering and I know it is already older article, but it seems the only one that helped me to get to allthe details needed to get to understand what the app really need on internet.
if You may be plz so kind to help me how to solve the issue, with installation, when the defined version of PHP by Manjaro is 8.5, but som of the the parts for Ninja do not support higher version than 8.4, on top some modules version of AUR storage at Manajro LInux are only in php8.2ver. That made me install 8.2, but I am sensing issue. Here is some idea, that might helpā¦
sudo -u http /usr/bin/php /usr/bin/composer i --no-dev
[sudo] password for soil_guy:
Installing dependencies from lock file
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- lcobucci/clock is locked to version 3.3.1 and an update of this package was not requested.
- lcobucci/clock 3.3.1 requires php ~8.2.0 || ~8.3.0 || ~8.4.0 -> your php version (8.5.1) does not satisfy that requirement.
Problem 2
- sabberworm/php-css-parser is locked to version v8.9.0 and an update of this package was not requested.
- sabberworm/php-css-parser v8.9.0 requires php ^5.6.20 || ^7.0.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 -> your php version (8.5.1) does not satisfy that requirement.
Problem 3
- sprain/swiss-qr-bill is locked to version v4.20 and an update of this package was not requested.
- sprain/swiss-qr-bill v4.20 requires php ~8.1.0|~8.2.0|~8.3.0|~8.4.0 -> your php version (8.5.1) does not satisfy that requirement.
Problem 4
- dompdf/php-svg-lib is locked to version 1.0.0 and an update of this package was not requested.
- dompdf/php-svg-lib 1.0.0 requires sabberworm/php-css-parser ^8.4 -> satisfiable by sabberworm/php-css-parser[v8.9.0].
- sabberworm/php-css-parser v8.9.0 requires php ^5.6.20 || ^7.0.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 -> your php version (8.5.1) does not satisfy that requirement.
This is always going to be an in issue when using Arch Linux derivatives as they frequently lag behind on package updates. Iāve never used Manjaro so I canāt help you on these specific issues Iām afraid.
I wrote this post to help installation on a VPS not a local PC (Iām assuming you are not using Manjaro on a server). As the VPS I was using no longer offers an Arch Linux variant, I was forced to switch to Ubuntu Server.
There is a solution for you to consider. Arch supports Linux Containers (lxc) so I assume Manjaro does too. You could install Ubuntu in a container and install IN there. I run a number of containers to support complex nodejs apps that mandate Ubuntu and it works really well for me. I recommend that you try this - it should save you a lot of headaches like this in the long run.
Good luck
Thank you, I got the point. I am using Manjaro, as I wanted to work out some clear situation for purpose to backup. And Yes I do not have any production server, nor VPS, so I just go with what there is. I did try to install all that would be needed with php8.2 unfortunately ended uyp that the official archive of Manajar for php-xdebug does not exist,
It seesm there is a problem with composer
==> Starting prepare()...
/var/tmp/pamac-build-soil_guy/php82-composer/PKGBUILD: line 24: php82: command not found
==> ERROR: A failure occurred in prepare().
Aborting...
and needed to use from php56, which not sure if it would work yet, and the php82-composer also does not work.these are just 2 packages that would be nice to have tobe able to use the defaultninja app2 they have in the AUR archive lavader and flutter. Other option seems to try to get back to the 8.5 and accept that there would not work some functionalities for the Ninja due to those 4 erros, and hope that over time these issues will get solved.
In general I like debian too, though the backup of all the added liraries that are needed just for having few extra apps running seems quite odd to me. Not sure if I shall consider it unreliable, but probably would be great if there would be some nicer solutions, to make the backups smaller, but I caanot spent that much time on it either, na dnot soo good at these things.
At the end I did manage to bypassl the PKGBUILD directing it to newr php8.2 instead of php 5.6 for composer.It seems for now working fine.
What seems to be an error I could add key to database burt could not add datbase.
I neede to cread the systemd. file too. isued google, but not sure if it is good.
Do you know where could be an isue plz?
What does the following command actually do?
i RUN: sudo -u http php82 artisan migrate:fresh --seed
could not find driver (Connection: db-ninja-01, SQL: select exists (select 1 from information_schema.tables whe
re table_schema = 'db-ninja-01' and table_name = 'migrations' and table_type in ('BASE TABLE', 'SYSTEM VERSIONE
D')) as `exists`)
there is for sure not any tables under that schema. IS it actually real issue? or it is only for case of migrations of production ?
other was that: is it becasue I did nothave it started yet at all?
In Connector.php line 66:
could not find driver
I also would like to know what means CHROME in this part? Does it mean browser?. I do not have that subfolder XXXXX under vendor in my instalation.
Change the XXXXXX in the file path below to the actual number of the folder name on disk - it changes with each new Chrome version
Another Thing I would like to solve is that when I push the button of the database connection to mysql, I get feedback.
Could ont find driver
may it be because I should have table permisoin settled, bu ti cannot do so,because there are not any tables generated yet, but it is probably because i do not have php82-mysql installedā¦
I think I manage to install the app *(I saw there are now mysql tables generate) but it says
404 empty page with text OOPs, nothing to see here
, wit a white screen, and I do not have any idea how to move from here. I thought it would bring me now to test the pdf generator which i believe I will have to still work on to install it more properly, however I did not get to it yet. What shall I do next to start using it plz? It look to me that I do not see php-fpm process running. Will try to reinstall, and also did not see the test for pdf generation, nor email test, that I willnot be testing anyways, as I am not having email set at my home environment.
I also fif not find the php-fpm service to be able to restart it
systemctl list-units | grep php-fpm
So I had looked at /etc/php82/php-fpm82.conf file. NOt sure if it is what is thall be updated, but I think i twas not creating PID file in the /run/php-fp directory I amnot sure if I am usin service or pid file on system.
Iām pleased youāve made some progress, but you are reviving a thread that is almost 5 years old, and therefore is out of date - InvoiceNinja and PHP have evolved a lot since then.
Regardless of this, I suggest that you start a new thread if you are still having problems. I only got tagged as the author of this thread - I havenāt used InvoiceNinja for more than 3 years as I no longer need to create invoices. As the Arch Linux installation is/was so niche, I very much doubt that anyone else will be reading your posts other than me.
As Iāve already said, Iād definitely go down the Linux Container route if I were you - this container can be backed up as a normal folder if this is a need for you. All the PHP issues you are having will disappear, and you will get more support here in the forum (on a new thread) as InvoiceNinja now mandate a Debian based OS if I remember correctly.
I wonāt be replying to this thread again, for the reasons Iāve just explained.
Good luck
1 Like