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
|
1 answer
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
|
php -v- you checked the console php. And you need php apache (or what is your server). - Crantisz