M
M
Martovitskiy2019-10-02 18:10:32
PHP
Martovitskiy, 2019-10-02 18:10:32

How to make apache execute php files?

Centos 7,
php 7.2.23
changed default apache directory from var/www/ to home/sybase/vipoc

httpd.conf

ServerRoot "/etc/httpd"
Listen 80
Include conf.modules.d/*.conf
User apache
Group apache
ServerAdmin [email protected]
ServerName www.домен:80
<Directory />
    AllowOverride none
    Require all denied
</Directory>
DocumentRoot "/home/sybase/vipoc"
<Directory "/home/sybase/vipoc">
    Options FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>
<IfModule dir_module>
    DirectoryIndex index.php
</IfModule>
<Files ".ht*">
    Require all denied
</Files>


The Apache start page is launched, but I can’t get the php files to be executed in any way. Only output as html
rights to all files in folder 777.
please help what to do? Google has already covered everything. Who faced such problem?

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