Y
Y
y0zek32020-10-19 22:05:13
PHP
y0zek3, 2020-10-19 22:05:13

Why does Apache download php files?

I installed everything according to this manual https://www.digitalocean.com/community/tutorials/h...
To check, I used the form from here https://www.php.net/manual/en/tutorial.forms.php
PHP file is not opens and downloads
PhpInfo works

If you log in via IP 127.0.0.1/action.php the file opens
If you just open it - no

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sanes, 2020-10-20
@Sanes

This is a crooked manual. Search with php-fpm, mod_ruid2, mpm-itk or FastCGI.

V
Viktor Taran, 2020-10-20
@shambler81

<IfModule !php5_module> 
    <FilesMatch "\.php$">        
        Order allow,deny
        Deny from all     
    </FilesMatch>
</IfModule>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question