使用者工具

網站工具


server:dotproject:centos7_安裝_dotproject

環境安裝說明

  • CentOS 7.6.1810
  • Apache 2.4.6
  • MariaDB 5.5
  • PHP 7.2.13
  • dotProject 2.1.9

下載 dotProject

Apache Config

<VirtualHost *:80>
        ServerAdmin eddie@lang.idv.tw
        DocumentRoot "/usr/local/dotproject"
        ServerName dotproject.lang.idv.tw
        ErrorLog "logs/dotproject.lang.idv.tw-error.log"
        CustomLog "logs/dotproject.lang.idv.tw-access.log" common

        <Directory "/usr/local/dotproject">
                Options FollowSymLinks
                AllowOverride all
                Order deny,allow
                Allow from all
                Require all granted
        </Directory>
</VirtualHost>

Create Database

請自行至database 建立 database & user

Init dotProject

開啟網頁設定

問題排解

第一次執行會報錯

Cannot set 'user' save handler by ini_set() or session_module_name()

找不到更好的解法, 先 mark 那行

function dpSessionStart($start_vars = 'AppUI') {
	session_name('dotproject');
	if (ini_get('session.auto_start') > 0) {
		session_write_close();
	}
	if (dPgetConfig('session_handling') == 'app') {
	//	ini_set('session.save_handler', 'user');  --> 註解這行
	// PHP 5.2 workaround
    if (version_compare(phpversion(), '5.0.0', '>=')) {
        register_shutdown_function('session_write_close');
    } 
		session_set_save_handler('dPsessionOpen', 'dPsessionClose', 'dPsessionRead', 
		                         'dPsessionWrite', 'dPsessionDestroy', 'dPsessionGC');
		$max_time = dPsessionConvertTime('max_lifetime');
	} else {
		$max_time = 0; // Browser session only.
	}
...

Default User

admin / passwd

server/dotproject/centos7_安裝_dotproject.txt · 上一次變更: 2019/05/19 14:30 由 eddie