With those few steps you can install LUYA on your Webserver. To install LUYA you have to install Composer on your Mac, Unix or Windows System.
We have made an installation Video on Youtube in order to help you install LUYA.
First of all you have to install the global
fxp/composer-asset-plugin plugin, which is required by Yii to install bower packages via composer. To global install the plugin open your Terminal and run the following code:
composer global require "fxp/composer-asset-plugin:~1.3"
After setting up composer, we execute the composer
create-project command to checkout the luya-kickstarter application, an out of the box setup enabling you to directly run your website. We recommend to run the
create-project command directly from your htdocs/webserver folder:
composer create-project luyadev/luya-kickstarter:1.0.0-RC3
Note: During the installation Composer may ask for your Github login credentials. This is normal because Composer needs to get enough API rate-limit to retrieve the dependent package information from Github. For more details, please refer to the Composer documentation.
create-project command will create a folder (inside of your current folder where the
composer create-project command was execute) named luya-kickstarter. After the command is finished go into the configs folder inside the application and copy the dist template files to original php files.
cp env.php.dist env.php cp env-local-db.php.dist env-local-db.php
Now change the database connection inside the
configs/env-local-db.php file to fit your mysql servers configuration. You should open all config files once to change values and understand the behavior. In order to understand the config files read more in the environemnt configs section. After successfully setting up your database connection, you have to reopen your Terminal and change into your project directory and excute the luya binary files which has been installed into your vendor folder by composer as described in the follwing.
Run the migration files with the migrate console command:
Note: If the migration process failed, try to replace localhost with 127.0.0.1 in the database DNS configuration
(env-local-db.php)which is located in the configs folder.
Build and import all filesystem configurations into the database with the import console command:
At last we execute the setup console command which is going to setup a user, group and permissions:
The setup proccess will ask you for an email and password to store your personal login data inside the database (of course the password will be encrypted).
./vendor/bin/luya healthwill make a small check if several directories exist and readable/writable.
You can now log in into your administration interface
http://localhost/luya-kickstarter/admin (depending on where you have located the LUYA files).
Visit the Installation Problems and Questions Site when you have any problems with the LUYA Setup.