1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

ELI5 Localhost installation

Discussion in 'General Programming Chat' started by artu123, Mar 26, 2017.

  1. artu123

    artu123 Newbie

    Joined:
    Mar 21, 2017
    Messages:
    25
    Likes Received:
    8
    Hello, first time trying something like this, made my path to here from tutorials but after long hours of research there is no way that I can solve this by myself.

    I am installing WordPress locally through MAMP, I've downloaded the WP zip file and inserted into the root directory (htdocs), but when I am trying to go to localhost:8889 (which is my port) this start downloading some kind of file instead of redirect me to wp-admin/setup.

    Here is where all the research have blown my mind with too many .php and programming knowledge that I don't have. I don't even know if I have to install PHP on my computer or this come by default.

    The thing is if there is someone willing to explain like Im 5 to help me to sort this out would be great.
     
  2. AneaKr

    AneaKr Jr. VIP Jr. VIP

    Joined:
    Oct 15, 2014
    Messages:
    159
    Likes Received:
    27
    Occupation:
    SEM Specialist
    Home Page:
    Hi artu123, I'm more than happy to help you, but perhaps a little more info would be helpful. What sort of file starts downloading?

    Did you unzip the WP package before you stuck it in /htdocs?
     
  3. Captain America

    Captain America Newbie

    Joined:
    Apr 8, 2017
    Messages:
    24
    Likes Received:
    8
    Gender:
    Male
    PHP comes default on MAMP

    so if you can't open the setup .php file, enable logging and see if there are any errors


    1. Navigate to /Applications/MAMP/bin/php/php{your-version}/conf and open php.ini. If you are unsure which PHP version you are using, then open the preferences within MAMP and check the PHP tab.
    2. Search for display_errors and change the value from Off to On. Just above this, you can also configure which errors you want to be displayed by configuring error_reporting, but it is recommended leaving this to E_ALL for development environments.
    3. Restart your Apache web server by stopping and starting your servers in MAMP.
     
  4. Conor

    Conor Elite Member

    Joined:
    Nov 7, 2012
    Messages:
    3,577
    Likes Received:
    5,954
    Gender:
    Male
    Location:
    South Africa
    Home Page:
    Found your problem.

    You're using a Mac.
     
  5. artu123

    artu123 Newbie

    Joined:
    Mar 21, 2017
    Messages:
    25
    Likes Received:
    8
    Thank you guys for trying to help but I sorted it out several days ago.

    No, they released the win version some time ago.
     
  6. Conor

    Conor Elite Member

    Joined:
    Nov 7, 2012
    Messages:
    3,577
    Likes Received:
    5,954
    Gender:
    Male
    Location:
    South Africa
    Home Page:
    MAMP is for Mac though. WAMP is for Windows.
     
  7. artu123

    artu123 Newbie

    Joined:
    Mar 21, 2017
    Messages:
    25
    Likes Received:
    8
    I am not an expert but I am using MAMP on my Windows.
     
    • Thanks Thanks x 1
  8. AneaKr

    AneaKr Jr. VIP Jr. VIP

    Joined:
    Oct 15, 2014
    Messages:
    159
    Likes Received:
    27
    Occupation:
    SEM Specialist
    Home Page:
    MAMP is available for both Mac OS X and Windows.
     
  9. Conor

    Conor Elite Member

    Joined:
    Nov 7, 2012
    Messages:
    3,577
    Likes Received:
    5,954
    Gender:
    Male
    Location:
    South Africa
    Home Page:
    You're right. This is new info to me. Originally, the M, W and L stood for the operating system it was supported on. So, you had MAMP (Mac), WAMP (Windows) and LAMP (Linux). And then there was Xampp, which was cross platform. The fact that they made MAMP available on Windows is just confusing to me.
     
  10. bluehatface

    bluehatface Regular Member

    Joined:
    Oct 19, 2013
    Messages:
    259
    Likes Received:
    105
    Location:
    Here
    When I used windows for Dev, I used XAMPP. It never seemed to work quite right due to file permissions and directory naming and MIME issues

    I recommend you go for a vagrant install. It's all self contained in a VM and is basically a Linux web server in Windows.