-3

I have an ubuntu server installed with apache2 service. but when I run the index.php file its displays as it is. it means .php files are not executing

2 Answers2

0

Be sure that you have installed php and enabled the apache component. Something like a2enmod php7.0 will enable the php processor module for apache if it is installed.

If that does not work, try following this tutorial from DigitalOcean, it is quite good explained...

Also check out the recomendations from the community.

-2

Manually open file in terminal and check for the code. Your file might be saved in rtf or html file, irrespective of ".php" file format.