apache2 - PHP Installation broken - shows strange php code as response - Ask Ubuntu


i wanted open simple index.php contained

<?php phpinfo(); ?> 

as result seeing following message in browser:

handle($request); $response->send(); $kernel->terminate($request, $response); 

how can debug issue?

i seems message shown if local php installation broken. me seems have happend when upgraded ubuntu 14.04 ubuntu 16.04.

the following commands resolved issue:

sudo apt-get install --reinstall php sudo aptitude install libapache2-mod-php 

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User