Stepo Paradise

Blogged by Stephen Po

UCenter Home 2.0 Installation (Part 2)

This is part 2 of the series of setting up UCenter Home 2.0 on a dedicated Linux machine.   Check out UCenter Home 2.0 Installation (Part 1) if you haven’t.

Setup UCenter Home

First, download the installation package at http://download.comsenz.com/UCenter_Home/2.0/UCenter_Home_2.0_TC_UTF8.zip.  Again I choose the Traditional Chinese edition with UTF-8 encoding.  Under the root’s shell, issue the following commands to download and unpack the installation package.

mkdir ~/setup-ucenter-home
cd ~/setup-ucenter-home
wget http://download.comsenz.com/UCenter_Home/2.0/\
UCenter_Home_2.0_TC_UTF8.zip
unzip UCenter_Home_2.0_TC_UTF8.zip

I would like UCenter Home to be installed at http://u.tcpo.org.  Because I have put UCenter into http://u.tcpo.org/ucenter, I can save put UCenter Home into the document root fof the domain, i.e. /var/www/html/u.tcpo.org/

cp -pr upload/* /var/www/html/u.tcpo.org/

Then I need to create config.php based on config.new.php

cd /var/www/html/u.tcpo.org
cp config.new.php config.php

Next permissions for some files and directories need to be changed in order for UCenter Home to run correctly.

chmod 777 attachment
chmod 777 data
chmod 777 data/*.*
chmod 777 uc_client/data
chmod 777 config.php

During the setup of UCenter Home, you need to make one user the administrator.  Visit http://u.tcpo.org/ucenter/admin.php, login with the 創始人密碼.  In the category 用戶管理, click on 添加用戶.  Enter the information required to create your first user.

Then, go to the category 應用管理, click on 添加新應用.  Enter the URL of http://u.tcpo.org/install/index.php and then click 安裝.  After that, the UCenter Home installation guide is shown.

1. 安裝開始

Here file/directory permission check is done.  If it is all ok, then proceed with the installation.

2. 設置UCenter訊息

Here UCenter information is pre-filled, normally you don’t need to change anything, just click on the submit button.  After that, you will be shown a message telling you that the application is successfully installed, go to the next step.

3. 設置數據庫連接訊息

Here we will reuse the same database connection parameters as that we have setup for UCenter.

數據庫服務器本地地址: localhost
數據庫用戶名: uc
數據庫密碼: <password>
數據庫字符集: UTF-8
數據庫名: UC
表名前綴: uchome_

6. 安裝完成

Here enter the user name and password of the administrator

After that, the installation guide is completed.  To safeguard the system, do the following.

cd /var/www/html/u.tcpo.org
rm -rf install
chmod 644 config.php

If you go into the administrative interface of UCenter Home, you will notice an error saying:

File: /var/www/html/u.tcpo.org/./data/tpl_cache/template_default_cp_advance.php can not be write!

This can be fixed on changing permission on the data/tpl_cache directory.

chmod -R 777 data/tpl_cache

Now everything is completed, you can enter http://u.tcpo.org/admincp.php to fine tune your configuration.

Tags:

Leave a Reply