D
D
Denis2020-05-16 14:51:18
symfony
Denis, 2020-05-16 14:51:18

How to fix error 500 when loading a site in Symfony?

Please tell me how to fix the error 500 on my own when loading the site. The site is written en Symfony. Keep in mind that I'm not a programmer myself. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Foxcloud Foxcloud, 2020-05-18
@FoxCloud

Hello!
In order to fix a 500 error on the site, do the following (from simple to complex):
1. Remember what you did recently on the site and return everything as it was.
2. Restore the site from a backup copy from the date when the site was still working. Start by recovering files. Most often this can be done with a few clicks in the hosting panel.
3. Change the PHP version for the site. Try multiple versions. If it doesn't help, return the PHP version that was.
4. Make sure that the hosting account has a free space in any way familiar to you.
5. Contact your hosting company for help. Sometimes hosters help with similar problems for free.
More difficult:
6. Check the logs for errors. Logs can be found in several places:
1. Server logs, often they can be found:
- in the root of the site, file /error.log (CPANEL panel)
- In the directory /logs/Your_site.error.log (ISPmanager5 panel)
2. Symphony logs
Go to the root of the site, and then to /var/log/
There you will find the logs.
Analyze the logs, they will lead you to the problem.
7. Enable syphony debug.
Instructions at the link: https://symfony.com/doc/4.2/components/debug.html
And the second option is to contact the hoster's technical support. They usually help with setting up the site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question