A
A
adam_carraway2018-03-19 19:52:35
PHP
adam_carraway, 2018-03-19 19:52:35

Why doesn't php7 work in ubuntu?

Installed apache2 and php7.1 on ubuntu 16.04. I created a test.php file, entered phpinfo(); there, it just shows a blank page in the browser. Help, I'm new to Linux

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2018-03-19
@adam_carraway

Remove everything from the video tutorial and install lamp as I wrote here .
After that, everything will work for you.

D
Denis, 2018-03-19
@sidni

it is not enough information
1) you registered virtualhost? link how do you access the file?
2) I hope you do? <?php phpinfo(); ?>

F
feeler, 2020-02-29
@feelter

in php.ini by default
short_open_tag = off
change to
short_open_tag = on or write <?php
in the beginning of the script file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question