Note, selecting ’ php8.1-common’ instead of ‘php8.1-ctype’
Note, selecting ‘php8.1-common’ instead of ‘php8.1-fileinfo’
Note, selecting ‘php8.1-pdo’ for glob ‘php8.1-PDO’
Note, selecting ‘php8.1-common’ instead of ‘php8.1-pdo’
Note, selecting ‘php8.1-common’ instead of ‘php8.1-tokenizer’
Package php8.1-json is a virtual package provided by:
php8.1-phpdbg 8.1.8-1+0~20220711.23+debian11~1.gbp5e9cbc
php8.1-fpm 8.1.8-1+0~20220711.23+debian11~1.gbp5e9cbc
php8.1-cli 8.1.8-1+0~20220711.23+debian11~1.gbp5e9cbc
php8.1-cgi 8.1.8-1+0~20220711.23+debian11~1.gbp5e9cbc
libphp8.1-embed 8.1.8-1+0~20220711.23+debian11~1.gbp5e9cbc
libapache2-mod-php8.1 8.1.8-1+0~20220711.23+debian11~1.gbp5e9cbc
You should explicitly select one to install.
E: Package ‘php8.1-json’ has no installation candidate
E: Unable to locate package php8.1-openssl
E: Couldn’t find any package by glob ‘php8.1-openssl’
then, create a recurring invoice as a test to send today. on the hour, it should send. I think the message you are seeing may not resolve itself for ~24hours until the check runs again.
Some of the PHP 7 modules are rolled into common on version 8. The following installation line worked for me.
sudo apt install php8.1 php8.1-{common,fpm,bcmath,mbstring,xml,curl,zip,gmp,gd,mysql}
I think your cron for www-data (sudo crontab -u www-data -e) should look more like this. Ignore the single quotes that were used to format it for posting here.
‘* * * * * cd /var/www/invoiceninja && php8.1 artisan schedule:run >> /dev/null 2>&1’
I am using Ubuntu 20.04 but this should work for Debian 11. I have a feeling that the missing period in php81 and not being run in the Invoice Ninja directory is the problem.
thank you for your answer,
You are correct regarding the point in the cron, also i check to have the packages you mention installed, but unfortunately it still does not work
Looks like Debian 11 with Apache which I haven’t tried but are you sure that your cron is cd’ing into the invoiceninja folder first? Running it as ‘php8.1 /var/www/invoiceninja/artisan’ doesn’t work on Ubuntu at least.
Maybe your www-data cron should look like the following minus the single quotes.
‘* * * * * cd /var/www/invoiceninja && /usr/bin/php8.1 artisan schedule:run >> /dev/null 2>&1’
Must be something wrong in the apache config but I don’t know where to look. I do remember running ‘sudo apt-get purge php7.*’ which nuked several apache packages. I was curious why it did that even though I wasn’t using apache so I reverted to a previous snapshot and didn’t run that command again. Using the instructions here gave me some guidance at the time. Maybe check this too for the Apache config.
I remembered that I had configured nginx when I installed invoiceninja a long time ago, with the update just copy and paste what the guide said and surely install apache by mistake, uninstall it and everything went back to normal.
Thank you all very much for helping me