mahmood
mahmood

Reputation: 24795

content of the php file is shown by browser

I want to open the Moodle's web installer as stated by the document (see step 3). Problem is that, I only see the content of the installer file and not the installer itself! Why such thing happens?

root@qemu:~# ls -l /var/www/html/
total 20
-rw-r--r--  1 root     root     11321 اوت   31 23:35 index.html
drwxr-xr-x  7 mahmood  mahmood   4096 سپتام  3 15:42 kar3
drwxr-xr-x 49 www-data www-data  4096 سپتام 15 16:42 moodle
root@qemu:~# which php
/usr/bin/php
root@qemu:~# which php7.0 
/usr/bin/php7.0

enter image description here

Upvotes: 0

Views: 402

Answers (1)

unalignedmemoryaccess
unalignedmemoryaccess

Reputation: 7441

Your file has .html suffix while PHP files must have .php.

Change to .php and enable PHP on server if not already.

Check here for possible problems.

Upvotes: 1

Related Questions