A
A
Alexey Yarkov2016-07-29 21:17:11
PHP
Alexey Yarkov, 2016-07-29 21:17:11

Why did php stop working?

On an Ubuntu 14.04 laptop asked: - Would you like to upgrade to 16.04?
I want, but why not)) Updated. Among the installed packages, php7 was also installed. Before that, LAMP was installed. Now the local site does not work and the code of php files is displayed in the browser. Someone faced?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel Volintsev, 2016-07-29
@copist

Reinstalled Apache and PHP. It is necessary to activate the Apache modules for PHP.

B
BoShurik, 2016-07-29
@BoShurik

Most likely your php files start with
In recent versions this option is disabled by default and you need to write
Can be disabled in php.ini
php.net/manual/en/ini.core.php#ini.short-open-tag

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question