Xwyk / Blog

P5 OpenClassroom
1 stars 0 forks source link

PHP - P5 Openclassrooms - Créez votre premier blog en PHP

Codacy Badge

Requirements :

The above website require the following environment :

Installation :

In this installation guide, I suppose server is configured, with given requirements.

  1. Download zip and extract it on your server or clone repository from github :

    git clone https://github.com/florianleboul/Blog.git
  2. Create database :

    • Create database, select it and import above scripts to create tables and default values set
    • import sql/structures.sql -- Create tables
    • import sql/fixture.sql -- Create default information set
  3. Set database informations

    • Copy config.ini to config.local.ini to set database info
      ; Database parameters
      [database]
      host     = "<Your SQL server name/ip>"
      port     = "<Your SQL server port>"
      dbname   = "<Database name, created in step 2>"
      username = "<SQL user with Read/Write access to database>"
      password = "<SQL user's password>"
  4. Create admin account :

    • Admin account is created by importing sql/fixture.sql in step 2 :
      • username : webadm
      • password : password
    • For increase security, change password by :
      • Connect to website with given credentials
      • Go to account section
      • On password section, type your new password two times and click on save