Server Requirements
1. PHP >= 7.1.
2. Redis server.
3. OpenSSL PHP Extension.
4. PDO PHP Extension.
5. Mbstring PHP Extension.
6. Tokenizer PHP Extension.
7. XML PHP Extension.
8. Fileinfo Extension.
Supported Image Libraries
1. GD Library (>=2.0).
2. Imagick PHP extension (>=6.5.7).
Installing Vox
PHP 7.1+, a database MySQL server, Composer, and [Laravel 5.5] are required.
- First, download the Laravel installer using Composer:
composer global require "laravel/installer"
. - Make sure to place composer's system-wide vendor bin directory in your
$PATH
so the laravel executable can be located by your system. This directory exists in different locations based on your operating system; however, some common locations include:- macOS:
$HOME/.composer/vendor/bin
. - GNU / Linux Distributions:
$HOME/.config/composer/vendor/bin
.
- macOS:
- Once installed, the
laravel new
command will create a fresh Laravel installation in the directory you specify. For instance,laravel new blog
will create a directory named blog containing a fresh Laravel installation with all of Laravel's dependencies already installed:-
laravel new blog
. Alternatively, you may also install Laravel by issuing the Composer create-project command in your terminal: -
composer create-project --prefer-dist laravel/laravel blog "5.5.*"
.
-
- After installation is complete, transfer the contents of the folder, in example it is
blog
, to the website root folder and deleteblog
. - Change database config:
- open
config/database.php
and changeconnections => mysql => charset
fromutf8mb4
toutf8
. - open
config/database.php
and changeconnections => mysql => collation
fromutf8mb4_unicode_ci
toutf8_unicode_ci
.
- open
- Change .env (if you use cyrillic or spaces, wrap the value in "..."):
- replace
http://localhost
in APP_URL to your website URL (for examplehttp://example.com
). The result should beAPP_URL=http://example.com
. - add below
WWW_USER=user
andWWW_GROUP=group
whereuser
should be the user-owner andgroup
should be the group your user belongs to according to your server settings. - add below
COMPOSER_HOME=path
wherepath
should be root path to your website, for eample/var/www/example/data/www/example.com
. - change your
DB_HOST
,DB_DATABASE
,DB_USERNAME
, andDB_PASSWORD
for correct connection to your database MySQL server.
- replace
- Define the dependency of Vox in your
composer.json
by runing in consolecomposer require "yogurt-design/vox"
. - Run the updat command
php artisan vox:install