CMS

Week 1 - Praktijk

Lokaal hosten & installeren WP

Hosting tools

MAMP / XAMP

Intall one of these:

Download installer & run it!

Default options

 

Make sure you:

  • Save account information (mysql)
  • enable MySQL & phpMyAdmin

MAMP

MAMP

XAMP

Logs!

MAMP

Mac

/Applications/MAMP/logs/

 

Windows

<installdir>/MAMP/logs

XAMP

Click logs

MAMP

Mac

/Applications/MAMP/logs/

 

Windows

<installdir>/MAMP/logs

Install WP

Setup DataBase

MAMP

  1. Open MAMP CP
  2. Open Start page
  3. Click phpMyAdmin

XAMP

  1. Open XAMP CP
  2. Click MySQL - Admin

Setup DataBase cont.

phpMyAdmin

  1. Click on Databases (top left)
  2. Enter name
    1. Free to choose
    2. Avoid special characters
  3. Choose collation
    1. Default Europe: utf8_general_ci
  4. Click Create

Install WP files

MAMP

  1. Open MAMP CP
  2. Open preferences - Tab Web Server
  3. Copy document root (change if needed) and go to
    • ​​Default mac: HD > Applications > MAMP > htdocs

  4. ​Unzip WP in own folder

    • Foldernaam = name project/site

      • vb: wordpress

XAMP

  1. Go to XAMP installation folder

    • C:/Program files/XAMPP

    • /Applications/XAMPP

  2. Enter /htdocs directory

  3. Unzip WP in own folder

    • Foldernaam = name project/site

      • vb: wordpress

Config WP files

  1. Go to WP installation folder
    • C:/Program files/XAMPP/htdocs/wordpress
    • /Applications/XAMPP/htdocs/wordpress

  2. Copy & rename

    • wp-config-sample.php to wp-config.php 

  3. Open wp-config.php with editor

    • Sublime, PHPStorm, brackets, ...

  4. Find and replace:

    • database_name_here -> database_name

    • username_here -> username mysql

    • password_here -> password mysql

Setup WP

  1. Go to http://localhost/wordpress
    • of http://localhost:8888/wordpress 
  2. If everything went right: you should see install.php screen
  3. Choose a language, hit continue
  4. Follow the steps
    • Make sure to save any user credential information
  5. Click install wordpress at the end
  6. A success screen should appear
    • If not, see error messages and debug

Login WP

  1. Go to http://localhost/wordpress/wp-admin
    • of http://localhost:8888/wordpress/wp-admin
  2. Log in using the credentials setup previously

More info?

Google!

  • "Install wordpress mamp"
  • "Install wordpress xamp"

 

CMS1 W1 Praktijk 18-19

By Pieter Mathys

CMS1 W1 Praktijk 18-19

Lokaal hosten & installeren WordPress

  • 895