Installing YeeCMS


  • PHP 5.4 or newer
  • MySQL 5.5 (or any other supported database)
  • Composer (for installing an updating)
  • mod_rewrite Apache module
  • Imagick or GD2 extension

Installation Via Composer:

YeeCMS is based on Yii2 Advanced Application Template so installation of YeeCMS is very similar to installation of Advanced App.

  1. Installing (using Composer)

    If you do not have Composer, follow the instructions in the Installing Yii section of the definitive guide to install it.

    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

    Execute the init command and select dev or prod as environment.

    cd /var/www/
    php init
  2. Configurate your web server:

    For Apache config file could be the following:

    <VirtualHost *:80>
       DocumentRoot "/var/www/"
       <Directory "/var/www/">
         AllowOverride All
  3. Create a new database and adjust the components['db'] configuration in common/config/main-local.php accordingly.

  4. 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/
  5. Init root user with console command php yii init-admin.

  6. Configurate your mailer ['components']['mailer'] in common/config/main-local.php.

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.