Simple, Powerful Blog Publishing Platform

Canvas is a simple, powerful blog publishing platform that lets you to share your stories with the world. Its beautifully designed interface and completely customizable framework allows you to create and publish your own blog, giving you tools that make it easy and even fun to do.

Get Started    

Installation

Server Requirements

Before you proceed make sure your server meets the following requirements:

Installing Canvas

  1. Install Canvas by issuing the Composer create-project command in your terminal:
composer create-project --prefer-dist cnvs/canvas blog
  1. Set your database credentials in the .env file.

Be sure to keep the value of APP_ENV set to local for the duration of the installation process.

  1. Accessing your site in a web browser at this point will present you with the Welcome screen and an Artisan command to finish up the installation. Issue the following command from the project root:
php artisan canvas:install

Permissions

Files and directories are manipulated both by the CLI user as well as web server. You will need to make sure that you add your user to the www-data group, or whichever group name your web server runs as:

sudo usermod -a -G www-data userName

The user will need to logout and log back in to see their new group added.

Storage Directory

According to the Laravel Documentation, you will need to update your directory permissions:

After installing Laravel, you may need to configure some permissions. Directories within the storage and the bootstrap/cache directories should be writable by your web server or Laravel will not run. If you are using the Homestead virtual machine, these permissions should already be set.

The official steps are as follows:

sudo chgrp -R www-data storage/
sudo chgrp -R www-data bootstrap/cache/

Substitute "www-data" for whichever group name your web server runs as. Even though you may have user and group write permissions in these folders, sudo is required since your account may not be a member of the target group (which fires off an "Operation not permitted" error).

Now that these directories and files belong to the web server's user group, ensure that the group permissions are set:

sudo chmod -R g+w storage/
sudo chmod -R g+w bootstrap/cache/

Installation