I know I shouldnt, but i have been tinkering.
I tried (because i am clueless!)
php artisan install
then after some reading i tried
sudo apt install composer
then
php artisan --help
which resulted in an error that mentioned composureautoloadinit in the log.
So after some more Dr. google I tried
composer dump-autoload
which brought the website back to life from the 500 error.
I also tried
php artisan serve
which is neither here nor there because it also achieved nothing! (apart from run the site on localhost?)
after all of this, I tried to update InN again.
error services.php is not writable
I found service.php in bootstrap/cache/services.php
Ran chmod to 755, didn’t achieve anything. Then tried 777
After this change ran update again. - Server error 500 website offline again
Log file says zipfile.php chmod error
httpdocs/vendor/nelexa/zip/src/zipfile.php chmod - was off
Ran 777.
composer dump-autoload
Website back up
Ran update again - website 500 error again. This time services.php again. So I went round in circles here before I thought that maybe the dump was resetting the files and that is why I was chasing my tail.
- composer dump-autoload
- chmod -R 777 httpdocs
- chown -R www-data:www-data httpdocs (this one, I don’t know why)
Website back up. Ran update again. 500 error - website back down.
[2022-09-23 12:41:33] production.ERROR: chmod(): Operation not permitted {"userId":1,"exception":"[object] (ErrorException(code: 0): chmod(): Operation not permitted at /var/www/vhosts/invoice.manytechsolutions.co.uk/httpdocs/vendor/nelexa/zip/src/ZipFile.php:456)
[stacktrace]
So what I understand from this is, when I hit update the settings of the files are reset and then the update doesn’t work???!