Version ie <v5.12.0>
Environment
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an Error Document to handle the request.
We host Invoice Ninja on a subdomain (ninja5.mydomain.co.za)
Our shared server was running low on memory and our website was experiencing crashes. We upgraded to the memory to 5gb more and changed the memory limit of php file in Cpanel for the subdomain as well as for the main domain, Therafter this problem started.
There are no errors in :storage/logs/laravel.log
Php Ver 8.2
I have logged in with Windows Powershell (ssh) and Ran the ff commands:
- php artisan migrate (this took about 30 minutes and then gave an error of Driver for PDO/SQL not found and this was then added in laravel log - I dont know how to resolve this but I checked that the php extensions for SQL and PDO were installed and loaded - besides this error was never written to logs previously)
- php artisan config:clear (successful)
- php artisan cache:clear(successful)
- php artisan route:clear (successful)
php artisan view:clear (successful)
***These command took about 15 minutes each to complete
I made sure the correct permissions were on all the folders (755)
This is my ninja php file now:
display_errors = On
max_execution_time = 60
max_input_time = 60
max_input_vars = 5000
memory_limit = 2028M
post_max_size = 8M
session.gc_maxlifetime = 1440
session.save_path = “/var/cpanel/php/sessions/ea-php82”
upload_max_filesize = 6M
zlib.output_compression = Off
I have no idea where else to look or what else to do as iv spent the last few days of looking at every other possible way to try and fix this but to no avail