Skip to content

All start here create your first project site with gxc cms

nganhtuan63 edited this page Nov 23, 2012 · 3 revisions

( YOU NEED TO BE FAMILIAR WITH YII FRAMEWORK BEFORE WORKING WITH THIS CMS)

So at first, you have to clone the two source :

CORE : GXC-CMS (https://github.com/nganhtuan63/GXC-CMS) PROJECT NAME : Sample-Project ( https://github.com/nganhtuan63/Sample-Project ) For example, after cloning in our www directory, we have this structure:

|-gxc

|————core

|-project

|————backend

|————common

|————frontend

From here, you need to configure some PATH to CORE Folder, and basic INFO LIKE SITE_NAME, SUPPORT_EMAIL,...! With this structure, you can create multiple projects that use the same CORE folder.

1/ In file Common/config.php

Browse to line 90 and change Database Information

For the first installation, make sure we don’t use session handle by Db, so comment these lines that use session db components on line 139

2/ In file Common/define.php and Common/define-test.php (*)

Edit basic Information that your site will use to run in official or developing mode

3/ In file frontend/index.php, backend/index.php ()**

Check to make sure that the PATH to CORE FOLDER is CORRECT on line 12 (*)(**) – In your local machine, when developing, you should create an index-test.php file in backend and frontend folder. In that file point to (FRONT|BACK)END/protected/config/test.php and use COMMON/define-test.php. You can reference these files examples at common/local/frontend-index-test.php and common/local/frontend-index-test.php.

When using index-test.php, please make sure to change .htaccess in FRONTEND|BACKEND to use index-test.php RewriteRule ^.$ index.php [L] ==> RewriteRule ^.$ index-tesxt.php [L] 4/ After edit all information, run **

Remove .locked file in Common folder

http://localhost/sample/backend/beinstall/run to install Database script to start!

5/ Default admin account is : admin/123456

That’s all for setting up the first application. Hope it run well. Feel free to contact or add issue tickets to this project.

Have a nice day and happy coding you guys!