I am trying to install version 4.5.7 on a shared server. I have followed instruction from the invoice ninja website and also from laravel tutorial, since I understand that invoice ninja is a fork from laravel.
the directory structure looks ok, permissions look ok, database has been created and .env file has been configured.
However, I get a php error:
Parse error: syntax error, unexpected ‘as’ (T_AS), expecting ‘,’ or ‘)’ in /home/kolib/domains/cyrilmorel.ca/ninja/vendor/composer/autoload_real.php on line 39
No reason in particular, this was the latest version at the time I downloaded the code. Would it make sense to use version 4.5.9 instead of version 4.5.7, Are there any significative changes?
Besides that, Is there any thing I should check on top of the above mentioned point (directory structure, file permissions, database config and .env file config?)
IIRC, composer is used when you clone from the github repo. If you’re downloading the zip file, I don’t think composer is necessary. At least I think that’s how it works. Don’t quote me on it just yet.
It is difficult to deploy Laravel on shared hosting because you don’t have ssh access there. This means you cannot use composer commands. This make it difficult to maintain your Laravel apps on shared hosting.