YeeCMS - Control Panel Based On Yii2 PHP Framework
- Installing (using Composer)
If you do not have [Composer](http://getcomposer.org/), follow the instructions in the
[Installing Yii](https://github.com/yiisoft/yii2/blob/master/docs/guide/start-installation.md#installing-via-composer) section of the definitive guide to install it.
With Composer installed, you can then install the application using the following commands:
```bash
cd /var/www/
composer global require "fxp/composer-asset-plugin:~1.0.0"
composer create-project --prefer-dist --stability=dev yeesoft/yii2-yee-cms mysite.com
```
-
Initialize the installed application
Execute the
init
command and selectdev
orprod
as environment.cd /var/www/mysite.com/ php init
-
Configurate your web server:
For Apache config file could be the following:
<VirtualHost *:80> ServerName mysite.com ServerAlias www.mysite.com DocumentRoot "/var/www/mysite.com/" <Directory "/var/www/mysite.com/"> AllowOverride All </Directory> </VirtualHost>
-
Create a new database and adjust the
components['db']
configuration incommon/config/main-local.php
accordingly. -
Apply all migrations with console command
php yii migrate --migrationLookup=@yeesoft/yii2-yee-core/migrations/,@yeesoft/yii2-yee-auth/migrations/,@yeesoft/yii2-yee-settings/migrations/,@yeesoft/yii2-yee-menu/migrations/,@yeesoft/yii2-yee-user/migrations/,@yeesoft/yii2-yee-media/migrations/,@yeesoft/yii2-yee-post/migrations/,@yeesoft/yii2-yee-page/migrations/,@yeesoft/yii2-comments/migrations/,@yeesoft/yii2-yee-comment/migrations/
. -
Configurate your mailer
['components']['mailer']
incommon/config/main-local.php
.
#####Your Yee CMS
application is installed. Visit your site, the site should work and message Congratulations! You have successfully created your Yii-powered application should be displayed.