P
P
parab0la2020-02-13 14:30:01
PHP
parab0la, 2020-02-13 14:30:01

Why is one of the folders with the site not displayed in the browser (Error 500)?

Установил на виртуальное машине (Win 7 x32) Apache, PHP, MySQL, PHPMyAdmin. Всё настроил между собой.

В localhost отображаются 2 созданные папки с html-документами (они открываются в браузере, всё ок) кроме третьей папки (назовём её site), куда закинул готовый сайт (браузер не видит её).
Если прописать localhost/site или 127.0.0.1/site или указать путь к конкретному файлу в этой папке, выдаёт 500 Internal Server Error.
Нашёл в логах следующее (ругается на файл .htaccess): Invalid command ‘Order’, perhaps misspelled or defined by a module not included in the server configuration
В .htaccess у меня

order deny,allow
RewriteEngine On
RewriteBase /
RewriteRule .* index.php?url=$0 [QSA,L]

В чем может быть причина?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
F
FanatPHP, 2020-02-13
@FanatPHP

Error 500 translated into Russian means "open the web server error log, it says what the problem is."

I
Igor, 2020-02-13
@IgorPI

Standard problem, standard answer


The value 500 is the status code of the HTTP protocol. The reason for an error with this code is a server configuration malfunction, or the appearance of information that a component has failed. At error 500, the software is working, but there are serious internal problems that prevent requests from being processed correctly.
The most common cause of error 500 (Internal Server Error, internal server error) is incorrect file syntax. htaccess or the presence of unsupported directives in it. Most often, it is enough to comment out the Options directive (to do this, put a hash mark at the beginning of the line - #), and the problem will disappear.

Google twice.

P
parab0la, 2020-02-16
@parab0la

In general, I commented out all the lines in .htaccess, and the folder became available. I really don't know how it will affect the site. Most likely there are other solutions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question