M
M
Martovitskiy2019-10-01 20:00:40
PHP
Martovitskiy, 2019-10-01 20:00:40

Why php is not executed, but the contents of the file are displayed on the screen?

I set up a server on Centos7, the php content is displayed on the screen. How to win?

<IfModule php7_module>
    AddType application/x-httpd-php .php
    AddType application/x-httpd-php-source .phps
    <IfModule dir_module>
        DirectoryIndex index.html index.php
    </IfModule>
</IfModule>

This solution did not help

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question