A
A
Ayk722016-06-20 23:43:44
PHP
Ayk72, 2016-06-20 23:43:44

Apache nginx php why php script not working?

Goodnight!
Installed apache+nginx+php on centos 6.
But when I open the site, a blank page appears. DLE engine (php).
I click the source code, and there, something like this:

*PHP код index.php движка*

<html><body></body></html>

What is the reason? Where to dig?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey, 2016-06-20
@alsopub

First, dig the apache config for the item:

AddType application/x-httpd-php phtml php 
LoadModule php5_module /usr/lib/apache2/modules/libphp5.so

E
Egor, 2016-06-21
@egormmm

Enable php error output. What is the server response code?

O
OnYourLips, 2016-06-21
@OnYourLips

You must either install either the FPM SAPI for PHP (php7.0-fpm) or the SAPI for Apache.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question