Apache, PHP and Document Root

Discussion in 'Mac OS X' started by Logantoo, Aug 5, 2018.

  1. Logantoo

    Logantoo New Member

    Joined:
    Jul 29, 2018
    Messages:
    2
    Likes Received:
    0
    Please bear with me as I am new to a Mac, running High Sierra and I am on a steep learning curve. I have activated Apache and PHP but need to create a file named “phpinfo.php” and file it in my document root with certain code and then view it in my browser. The code is provided so I can easily copy and paste, no problem. However in simple step by step instructions please, how do I create the file phpinfo.php file, where do I store it, and then how do I transfer it to my document root? I am sure it is simple but at the moment my mind is a complete blank.
    Many thanks
     
    Logantoo, Aug 5, 2018
    #1
    1. Advertisements

  2. Logantoo

    Cory Cooper Moderator

    Joined:
    May 19, 2004
    Messages:
    5,976
    Likes Received:
    197
    Hello and welcome.

    First off, I would recommend having a current Time Machine or other backup of your data before proceeding.

    Here's a good article about Apache and PHP on High Sierra: Install Apache, MySQL, PHP on macOS High Sierra 10.13

    Hope that helps a bit,

    C
     
    Cory Cooper, Aug 11, 2018
    #2
    1. Advertisements

  3. Logantoo

    Logantoo New Member

    Joined:
    Jul 29, 2018
    Messages:
    2
    Likes Received:
    0
    Many thanks
     
    Logantoo, Aug 11, 2018
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.