user5178035
user5178035

Reputation:

MAMP moodle project

I am working on a moodle based project, which I inherited from someone else. Having copied the files into htdocs folder and started MAMP, the files still don't show in the browser. Instead, the browser automatically initiates a download. I might be required to change the config file, however, since I do not have much experience with php and SQL I am not sure what exactly. My part of the project is to develop html and css, but need to be able to run it locally first.

What do I need to do to get the files run locally? The route I use is localhost:8888/whatever/whatever/index.php

Upvotes: 0

Views: 285

Answers (1)

user5178035
user5178035

Reputation:

In case someone else runs into the same problem - Apache downloads php files instead of reading them - here is what helped me.

  1. .htaccess file may need changes if the application has changed servers.

  2. Delete (at least rename if you don't want to remove it) config.php and run the application through the browser. It should initiate install automatically.

To run php and SQL I used MAMP.

Upvotes: 1

Related Questions