MAMP and XAMPP

MAMP

  • The web server (Apache) starts by default on port 8888, the database server (MySQL) on port 8889. When calling your web page in a web browser, you must enter the Apache port at the end of the URL, e.g.: http://localhost:8888
  • By default, PHP and HTML Pages should be stored inside the MAMP “htdocs” folder which is located in the MAMP Application directory (Macintosh SSD>applications>mamp>htdocs ). This folder is called “Document Root”.
  • To find out which PHP modules are included, use the following procedure:

    1. Start the servers and direct your web browser to http://localhost:8888/MAMP/.
    2. Click on the phpInfo tab at the top of page.
  • How to change MYSQL password
    1. open terminal
    2. /Applications/MAMP/Library/bin/mysqladmin -u root -p password [NewPassword]

XAMPP

  • For windows XP, PHP runs up to 5.4.27.  Use this link for download:  https://www.apachefriends.org/download.html
  • To start XAMPP automatically:
    • Start XAMPP controller
    • Go to the Config button (upper right) and select the Autostart for Apache.
  • Documentation root:
    • c:\xampp\htdocs