Codeigniter Halogy cms installation setup

2019-05-23 11:36发布

i have downloaded a halogy and after extracting i put the extract folder into my htdocs folder in my localhost ..i successfully setup the database but i am getting the error after visiting the url from the browser this is the error

   Slight problem...

   This domain has not been configured properly.

my folder name after extracting

jesseorndorff-Halogy-35c4050

url

 localhost/jesseorndorff-Halogy-35c4050

2条回答
Explosion°爆炸
2楼-- · 2019-05-23 11:55

Here is a step by step solution

First rename your folder name with some thing else just for testing.
I changed jesseorndorff-Halogy-35c4050 to halogy_test.

Next cut system folder from halogy and paste it in the upper level. Now the structure will be like this.

localhost/
    halogy_test/
         halogy/
         system/
         index.php

Next go to database.php and set it up.
Next go to halogy/application/config/config.php and change
$config['index_page'] = '';

to

$config['index_page'] = 'index.php'; on line no 29.

Now go to application/config/site_config.php and change

$config['staticPath']       =   '/static' 

to

$config['staticPath']       =   '/halogy_test/static';

The final step go to halogy_test/static/js/jquery.flot.init.js and change

'/admin/stats/' to stats/ on line no 2!

Done it Vote up if successfull.

查看更多
你好瞎i
3楼-- · 2019-05-23 12:05

If you still have this issue after following the answer from @raheel-shan, then you'll want to take a look at the database you're using for your install of Halogy.

There is a table "ha_sites" that stores your sites path in the column "siteDomain". So even if you corrected the path to your site everywhere in your code, you'll still run into issues if the path in "ha_sites.siteDomain" isn't correct.

To fix this, do one of the following:

  • (easiest) Delete all tables, and re-import the sql dump.

or

  • Truncate the table "ha_sites".

or

  • Fix the path in "ha_sites.siteDomain".
查看更多
登录 后发表回答