[quote=āhillel, post:45, topic:11632ā]
you need to remove
[/quote]The first command produces nothing and the second an error as it canāt find the file.
on cPanel I use: * * * * * /usr/bin/ea-php81 -d register_argc_argv=On /home/accessweb/public_html/posv2/artisan schedule:run >> /dev/null 2>&1
Edit āea-php81ā to the PHP version your domain/subdomain uses in cPanel (see MultiPHP Manager) for what version, if it is 8.0 it should be āea-php80ā. Also edit ā/home/accessweb/public_html/posv2/ā to be the directory where your v5 installation is located (you will find an artisan folder in it then the path is correct). See screenshot for the manual cPanel itselfs provides when creating crons.
TIP: To test, temporarly remove the ā>> /dev/null 2>&1ā at the end (you will receive an email every minute) when you get those emails, the triangle will be gone and you can add ā>> /dev/null 2>&1ā again.
Thanks very much for your time on this. Itās been driving me nuts.
I tried browsing for the artisan folder with no luck so I then went into cPanel and browsed there. Again no luck and even though I have cPanelās file manager set to show hidden files & folders I simply couldnāt find the artisan folder.
So I did a search using terminal and hey presto it was there right in the /public_html folder.
In your cPanel for the user account (NOT the WHM interface if you have access to that on the server) search for āCron Jobsā and click it. Set the email address there where emails should go about the cronās. Itās on that page. See screenshot. You should be receiving mails then every minute, anyhow the triangle should be gone by now too?
Iāve analysed the thread a bit further, and viewed your provided screenshots, you are logged in as root on the server when doing commands on the alltbilling account (root is almost always a bad idea), in this case the file permissions might wrong and this could be the issue why the cPanel and the Invoice Ninja app is doing itās job/not showing up content in the file manager etc. When using WHM/cPanel at least as root perform: āsu - alltbillingā (You might need to enable shell access inside WHM for the account). I would suggest for you:
** ALWAYS MAKE BACKUPS FIRST **
Remove all ninja content from the public_html directory (if it will only serve as the ninja app, as root empty the directory before proceeding)
Login to the cPanel USING THE ACCOUNT login/password (not as root, or via WHM), go to file manager and extract the invoiceninja.zip from inside the cPanel file manager. Rename the example.env to .env.
Remove the SQL user and database and recreate them using the MySQL Database Wizard inside cPanel account (grant all privlidges to the user for the database).