I am getting Internal Server Error (500)

This error is generalized when there is a problem the server cannot process a request to the site you are on. At the same time, the browser cannot tell exactly what went wrong.
It can arise for many reasons. Let's take a look at the most common ones.

1. Invalid entry in the .htaccess file
Check the file configuration, make sure the syntax is correct, try commenting out some of the settings. If no problems are found here, then add the following entry at the beginning of .htaccess:
php_flag display_errors 1
This will enable advanced PHP error reporting to help us further.

2. Incorrect PHP syntax
By enabling the extended PHP error output, we find out what the problem is. Most often it consists in the incorrect spelling of PHP syntax.

3. Invalid rights to folders or files
Set permissions to 755 for folders and 644 for files.

4. PHP timeout
If your PHP script is trying to create a lot of external connections, this can cause a timeout and in turn cause a 500 error. You may need to add some kind of timeout rules to your script. Try to search for a solution to the problem in Google by specifying the query "script name + internal server error"

  • 18 Пользователей нашли это полезным
Помог ли вам данный ответ?

Статьи по Теме

Я получаю ошибку доступа при импортировании базы данных через phpMyAdmin

Если ошибка доступа отображается, когда Вы пытаетесь импортировать бэкап базы данных MySQL через...

Я не могу войти на сайт, он не работает. Что делать?

Иногда Ваш сайт может стать недоступным и он может не отобразится для Вас. Ниже перечислены...

403 Forbidden Ошибка

Причины возникновения ошибки:1. Некорректное содеражание файла index.php или index.html, его...

Команда пинг ping и tracert(traceroute) как правильно использовать?

Команда ping используется для проверки доступности сетевых ресурсов. Чаще всего она нужна, чтобы...

Мой Wordpress был взломан, как сбросить пароль администратора ?

Если Ваш пароль Wordpress был сменен на неизвестное значение, Вы всегда можете сменить его...