Web management interface for cnxcc module
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
module
public
sql
vendor
README.md
composer.json
init_autoloader.php

README.md

cnxcc-web

Web management interface for cnxcc module.

Updates

  • Still under development.

Requirements

  • Latest release of Zend Framwork 2.
  • MySQL

Installation

  1. Create a new user, "cnxcc" for example (this is not mandatory, but it is recommended).
    # useradd cnxcc -m
    # su - cnxcc
  1. Go to your installation directory and clone the repository
    $ git clone git://github.com/caruizdiaz/cnxcc-web.git
  1. Grant read/execute permissions over your directory
    # chmod 755 /home/cnxcc/
  1. Create a virtual host configuration file for apache, pointing the document root to the public directory of your recently cloned repository
    # vim /etc/httpd/conf.d/cnxcc.conf
    <VirtualHost 1.2.3.4:80>
        DocumentRoot /home/cnxcc/cnxcc-web/public
        ErrorLog /var/log/httpd/cnxcc-error_log
        <Directory /home/cnxcc/cnxcc-web/public/>
            Options Indexes FollowSymLinks MultiViews
            DirectoryIndex index.php
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
    </VirtualHost>
<pre>
# /etc/init.d/httpd restart
</pre>
  1. Create the database
    # mysql < /home/cnxcc/cnxcc-web/sql/cnxcc.sql
  1. Install ZendFramework and its dependencies
   
    cd /home/cnxcc/cnxcc-web
    php -r "readfile('https://getcomposer.org/installer');" | php
    php composer.phar install

You may also need to install some other php dependencies, php-dom for example. Check "/var/log/httpd/cnxcc-error_log" error log.

  1. Now the page should be accessible. Go to http://1.2.3.4 and try it
   
    User: admin
    Password: 123456
  1. Configure the database synchronization following these instructions
    https://github.com/caruizdiaz/cnxcc-db-sync/blob/master/README.md
  1. You can configure the database connection credentials in:
    'db' => array(
                'driver'        => 'Pdo',
                'dsn'           => 'mysql:dbname=cnxcc;host=127.0.0.1',
                'username' => 'root',
                'password' => '',
                'driver_options' => array(
                                PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\''
                ),
    ),

On the file located at:

./module/Application/config/module.config.php

Screenshots

ScreenShot