reliv/rcm

This package is abandoned and no longer maintained. The author suggests using the rcm/core package instead.

Reliv Content Management System

1.27.1 2018-11-13 21:19 UTC

README

If you don't already have the ZF2 skeleton app, download it from github

git clone https://github.com/zendframework/ZendSkeletonApplication.git

Add these entries to the "require" section inside "path-to-zf2-project-root/composer.json"

"require": {
    "rcm/core" : "dev-master"
}

Tell Composer to download the required packages

php /path-to-zf2-project-root/composer.phar update

Run this to set the correct permissions for folders that Apache/PHP must be able to write to

mkdir  /path-to-zf2-project-root/data
mkdir  /path-to-zf2-project-root/data/DoctrineORMModule
mkdir  /path-to-zf2-project-root/data/DoctrineORMModule/Proxy
chmod 777 /path-to-zf2-project-root/data -R

mkkdir /path-to-zf2-project-root/public/modules
chmod 777 /path-to-zf2-project-root/public/modules

Add Rcm's modules and module paths in "path-to-zf2-project-root/config/application.config.php"

<?php
return array(
    'modules' => array(

        //Rcm Dependencies
        'DoctrineModule',
        'DoctrineORMModule',

        //RCM core and plugins
        'Rcm',
        'RcmInstanceConfig',
        'RcmHtmlArea',
        'RcmNavigation',
        'RcmCallToActionBox',
        'RcmPortalAnnouncementBox',
        'RcmLogin',
        'RcmSocialButtons',
        'RcmRssFeed',
        'RcmRotatingImage',

        //MUST BE AT BOTTOM OF DEFINITION
        'ElFinder',
    ),
    'module_listener_options' => array(
        'config_glob_paths'    => array(
            'config/autoload/{,*.}{global,local}.php',
        ),
        'module_paths' => array(
            './module',
            './vendor',
            './vendor/reliv',
            './vendor/reliv/RcmPlugins',
        ),
    ),
);

Add this to "path-to-zf2-project-root/config/autoload/local.php"

<?php
return array(
    'doctrine' => array(
        'connection' => array(
            'orm_default' => array(
                'driverClass' => 'Doctrine\DBAL\Driver\PDOMySql\Driver',
                'params' => array(
                    'host'     => 'localhost',
                    'port'     => '3306',
                    'user'     => 'DATABASE-USERNAME',
                    'password' => 'DATABASE-PASSWORD',
                    'dbname'   => 'DATABASE-DBNAME',
                )
            )
        ),
    ),
    'encryption' => array(
        'cypher' => array(
            'algo' => 'aes',
            'key' => 'CHANGE THIS ENCRYPTION KEY!'
        )
    ),
);

To avoid issues with Doctrine, make sure "date.timezone" is set in your php.ini.

date.timezone="America/Chicago"

Navigate to this URL in a browser to run the installer. This loads data into your database and creates symlinks that allow zf2 modules to contain routable public asset folders.

http://localhost/rcm/install

Login with these credentials:

Email: admin@admin.com
Password: admin