uts-ios-dev / uts-ios-2019-project3-group-114

uts-ios-2019-project3-group-114 created by GitHub Classroom
0 stars 1 forks source link

How to set up php server on mac #1

Closed jeannieyeliu closed 5 years ago

jeannieyeliu commented 5 years ago

How to set up a PHP server on MAX OS

  1. download phpStorm from https://www.jetbrains.com/community/education/
  2. use your UTS student email to register a free student account
  3. install PHP in terminal: brew install php

image

  1. open phpStorm, register it
  2. create new Project, name it “HelloWorld” or anything.
  3. Press Command + , to open preference tab, go to language & Frameworks > PHP Configure PHP

image

specify language level click ‘…’ to configer CLI Interpreter: click +, then (the PHP executable must be a folder that has php excutable files, and also a php.ini, this php.ini file can be downloaded from the internet)

  1. Configure the server: click “edit configurations” to open server configurations

image

  1. Add a new PHP Built-in Web Server

image

  1. Create a sample index.php file under the project image

  2. Click image to run

  3. Go to browser, type localhost:8087

image