0

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

mahmood
  • 23,197
  • 49
  • 147
  • 242
  • Possibly duplicate: https://stackoverflow.com/questions/5121495/php-code-is-not-being-executed-instead-code-shows-on-the-page – Ryan Harne Sep 20 '17 at 06:23

1 Answers1

1

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.

unalignedmemoryaccess
  • 7,246
  • 2
  • 25
  • 40
  • There are `install.php` and `index.php` in that folder. Please note that `moodle/` is a folder in the URL – mahmood Sep 20 '17 at 06:49