S
S
Svyatoslav Torg2016-09-07 17:24:14
PHP
Svyatoslav Torg, 2016-09-07 17:24:14

PHP not working on Ubuntu server 16.04. Why?

Hello. Essence. VDS from 1gb. OS Ubuntu Server 16.04
Installed Webmin
Installed LAMP
Sent the domain name to the server, everything is OK, when I open the site I'm in the right directory (it's clear only because the favicon appears)
Karoch is the point, index.php finally can't see chtoli, gives a blank screen. I create index.html next to it, everything opens index.html.
Domain name lovemy . xyz
I'm setting up a server for AdultVideo Script (I set the rights to all the necessary directories and files according to the instructions and installed all codecs)
Lan who will advise?
Even <?php phpinfo() ?> doesn't work

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Osher, 2016-09-07
@miraage

Install and configure nginx + php-fpm in a human way, and not use ready-made dubious solutions.

S
Smithson, 2016-09-07
@Smithson

Well, it is clear that either there is no php at all, or Apache does not see it (did Apache restart after installing php?), Or the processing of the php extension is not configured. In this case, you need to add to the Apache config

AddType application/x-httpd-php .php .php5 .php4
AddType application/x-httpd-php-source .phps

and restart again.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question