Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Install Development Copy

John O. Brennan edited this page Sep 30, 2016 · 16 revisions

Setup the Development Environment

  • Install and setup a Homestead environment.
  • Configure your Homestead environment to point mybb2.dev to /home/vagrant/Code/mybb2/public.
  • Add mybb2.dev to your machine's /etc/hosts file.

Install a Development Copy of MyBB 2.0

Downloading Updates

sudo apt-get update
sudo apt-get upgrade

Installing Essential Packages

sudo apt-get install build-essential
sudo apt-get install git

Installing MySQL

sudo apt-get install mysql-server php5-mysql

Install PHP

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

Configure MySQL

sudo mysql_install_db

MySQL Installation

sudo mysql_secure_installation

DataBase

mysql -u root -p
CREATE DATABASE NAME-YOUR-DB;
CREATE USER 'YOUR-DB-USER'@'localhost' IDENTIFIED BY 'YOUR-DB-USER-PASSWORD';
GRANT ALL PRIVILEGES ON NAME-YOUR-DB.* TO 'YOUR-DB-USER'@'localhost' IDENTIFIED BY 'YOUR-DB-USER-PASSWORD';
FLUSH PRIVILEGES;
exit

Clone the repository under /home/vagrant/Code/ inside the Homestead environment.

$ git clone https://github.com/mybb/mybb2.git
mv mybb2* .

Give write permissions to the storage/ directory.

$ chmod -R 777 storage/

Install Composer dependencies.

$ composer install

Create your environment file and edit it accordingly. In a default Homestead environment you can leave the copy untouched and everything will work right out of the box.

$ cp .env.example .env
$ vim .env

Publish assets by packages

$ php artisan vendor:publish

Install migrations table and run migrations.

$ php artisan migrate:install
$ php artisan migrate

Add Debug Data (aka Seeds)

$ php artisan db:seed