Добрый день. После загрузки файлов на сервер , при попытки войти на сайт выдает ошибку HTTP ERROR 500. В чем может быть проблема , и как ее решить что бы сайт заработал?
Hi @shuma007!
For begin, please change the PHP version to a lower one, and try again: 000webhost cPanel > Settings > General > Change PHP version > 5.6
I will take a look into your .htaccess
file, to see if there’s anything I can correct from there.
Я поменял версию PHP на 5.6. После этого при попытки войти на сайт выбивает вот это.
Good! Now, please check out this tutorial and change your character set to: ISO-8859-5
Я прописал в документе нужные строки.При попытке выдает . Может не так что то сделал.Если можете то покажите как оно должно все выглядеть в файле.
You did it wrong.
Give me a minute to dish things out.
Вот так сейчас выглядит мой .htaccess.
Может не так написал?
There were some syntax errors that I have commented out.
.htaccess
will not work because you have PHP scripts, that’s why you need to use header()
function.
Let me dish things out.
Подскажите , пожалуйста , как использовать header функцию? Что нужно мне сделать?
Technically you should incorporate to every .php
script this line of code
<?php header("Content-Type: text/html; charset=ISO-8859-5"); ?>
I did it for you but not for the original content. I have backed it up, as I don’t know how it supposed to look like.
Is this the way your website should render? https://tortile-merchandise.000webhostapp.com/TEST/zipped/
Please do not change nor remove anything from your website now.
А эту строчку я должен включить во все файлы .php которое не в папках? Или даже в те что в папках?
All PHP files, including those from folders.
https://tortile-merchandise.000webhostapp.com/TEST/zipped/ <— is this the way your website should look like? (да или нет)
utf8 maybe to use ?
Я даже и не знаю этот путь или нет. А эту строчку в начало вставлять документа или можно в конец?
It can be at the end of the document, sure
Прописал эту строчку во все файлы .php
Вот что выбивает
You have corrupted your website because you have modified all your documents using File Manager, however I kept a backup of your website in case things go wrong.
I have restored it for you.
Never modify files with non UTF-8 encoding from File Manager, as it will corrupt your files. To edit your files, first download them using a FTP client, then edit them locally, from your PC using an advanced text editor, such as Notepad++