After updating Ubuntu 16.04, no php file works. Flew apache settings. Apache start page at 127.0.0.1 works, but my php files do not

Closed due to the fact that off-topic participants Dmitriy Simushev , Denis Bubnov , user194374, Alex , aleksandr barakin 1 Jan '17 at 22:22 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • “Questions asking for help with debugging (“ why does this code not work? ”) Should include the desired behavior, a specific problem or error, and a minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, self-sufficient and reproducible example . " - Dmitriy Simushev, Denis Bubnov, Community Spirit, Alex, aleksandr barakin
If the question can be reformulated according to the rules set out in the certificate , edit it .

  • Check if php works as a whole. publish the error in the form of text, not a screenshot. - Mikhail Vaysman
  • @MikhailVaysman changed. php works. I can go into the console through the console, but I can't get to the page in phpmyadmin - PandaDP
  • how did you check php? - Mikhail Vaysman
  • @MikhailVaysman php -v shows version) + my php code that I wrote - works) If I somehow didn’t believe so, then tell me, I’ll check everything now) PS don’t judge strictly, I'm new) - PandaDP
  • php -v - you checked the console php. And you need php apache (or what is your server). - Crantisz

1 answer 1

Apparently, the PHP code in your index file is perceived as text. This can happen when PHP code blocks start with <? instead of <?php and the short_open_tag parameter is disabled. Make sure that short_open_tag = On specified in your php.ini file. After changing the php.ini server must be restarted.

  • changed the value to On, but the error remained. PS before that everything worked fine. - PandaDP