Project not working on production server

Hello,

I copied my 2026 project to the server but it’s not working. I deleted the cache in var/cache/dev and prod and changed the database details but no luck. Does anybody has a clue? Locally it’s working fine.

Whenever you see 500 Internal Server Error, turn on Debug and check the actual error message.

If you don't want to upload all files again, you should at least modify the .env to enable debugging as follows:

APP_DEBUG=true

Then run the site again and see if you can get the error message. If not, check the log files under var/log/prod-yyyy-mm-dd.log (assume you have generated your project in "production" mode).

If you have uploaded before, make sure you have deleted the old cache, read Clearing Symfony Cache.

If you still cannot find error message, upload all files with debugging enabled, delete old cache and run the site again.

The var folder must be writable, read Migrating to v2026 -> Write Permissions.

The debug mode is telling me my connection string is not ok. I double checked everything and even used my credentials in SSMS. No problem there and again on my local machine it does work using a diffent DB_HOST offcourse.

If you use "production" mode, make sure you have set up your production connection info correctly, read Setting Production Connection Info.

One step further but now I get this error. Something with the AuditTrial.php

The error message says:

Undefined array key "DateTime"

Make sure your audit trail table setup is correct. If you create the audit trail table by PHPMaker and uses the default field names, there should be a field named "DateTime" to store the datetime of the audit trail log.

This is my table.

Your real field name is "Datetime" ("t" in lowercase), you need to fix your audit trail table field name settings (similarly for "Xxxvalue") in the project and generate scripts again.

Thx, I did what you said. Now I have the next error

Make sure:

  1. You use v2026.3 and its latest template, or
  2. You use datetime2 instead of datetime data type for your date time fields.

Your dev server is Windows, your Production server is Linux.

When you compile as Development and Debug on, the Linux server will work.