PHP 5.4or newer
MySQL 5.5(or any other supported database)
Composer(for installing an updating)
YeeCMS is based on Yii2 Advanced Application Template so installation of YeeCMS is very similar to installation of Advanced App.
Installing (using Composer)
With Composer installed, you can then install the application using the following commands:
cd /var/www/ composer global require "fxp/composer-asset-plugin:~1.1.0" composer create-project --prefer-dist --stability=dev yeesoft/yii2-yee-cms mysite.com
init command and select
prod 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 in
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-translation/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/,@yeesoft/yii2-yee-seo/migrations/
Init root user with console command
php yii init-admin.
Configurate your mailer