+ 1

How to write web languages on MAMP?

I was recently told that to mix PHP and HTML to make a website, that I would have to download MAMP (Mac Apache Mysql PHP). Ive downloaded MAMP but now I am not sure how to write web languages on it. Help is needed.

27th Apr 2018, 3:02 AM
Kyle
Kyle - avatar
3 Answers
+ 1
Have you gone to http://localhost in your browser? If MAMP is configured correctly, and Apache (the web server) is running, then that should work, if not you may need to do further configurations.
27th Apr 2018, 3:11 AM
Emma
+ 1
You need to work out where web root is. It should be /Applications/MAMP/htdocs. You can create a folder in that directory for each web project. Start putting an index.php in the new directory, with some text in it. Then visit localhost/YOUR_DIRECTORY in a web browser. The contents of your index.php should show up in the browser. There may be some other configuration issues, like permissions of the folder and index.php.
27th Apr 2018, 3:52 AM
Emma
0
Xan, I have been directed to local host, but I dont know how to get a platform to write my web languages on.
27th Apr 2018, 3:47 AM
Kyle
Kyle - avatar