禅道是国人开发的项目管理系统,见
下面是我安装的过程
1.安装httpd+php 5.1.6+ mysql 5.0.27
把安装源修改为163的源
- cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
- vi /etc/yum.repos.d/CentOS-Base.repo
修改为
- [base]
- name=CentOS-$releasever - Base
- baseurl=
- gpgcheck=0
安装:
- yum install -y httpd mysql php php-mysql
2.升级php版本到5.2,
- rpm -Uvh
- yum --enablerepo=webtatic --exclude=php*5.3* update php
3.安装禅道系统
修改my.cnf
- socket = /var/lib/mysql/mysql.sock
启动数据库
- mkdir -p /var/lib/mysql/
- chown mysql:mysql /var/lib/mysql
- service mysqld start
创建数据库和用户
- mysql -e "create database zentao"
- mysql -e "grant all on zentao.* to zentao_user@'localhost' identified by '123456'"
5.修改httpd.conf
- vi /etc/httpd/conf/httpd.conf
增加
- <VirtualHost *:80>
- ServerAdmin admin@test.com
- DocumentRoot /var/www/html/zentaopms/www
- ServerName projectserver.com
- ErrorLog logs/projectserver.com-error_log
- CustomLog logs/projectserver.com-access_log common
- </VirtualHost>
6.通过web安装
见到界面:
配置文件写在/var/www/html/zentaopms/config/my.php里
设置完管理员帐号后
7.登录系统
访问
8.增加邮件功能
- vi /var/www/html/zentaopms/module/mail/config.php
- $config->mail->turnon = ture; // trun on email feature or not.
- $config->mail->fromAddress = 'admin@abc.com'; // The from address.
- $config->mail->fromName = 'projectserver'; // The from name.
- $config->mail->mta = 'smtp'; // phpmail|sendmail|smtp|gmail
-
- /* SMTP settings. */
- if($config->mail->mta == 'smtp')
- {
- $config->mail->smtp->debug = 0; // Debug level, 0,1,2.
- $config->mail->smtp->auth = true; // Need auth or not.
- $config->mail->smtp->host = '1.1.1.1'; // The smtp server host address.
- $config->mail->smtp->port = '25'; // The smtp server host port.
- $config->mail->smtp->secure = ''; // The type to encode datas, 'ssl' or 'tls' allowed
- $config->mail->smtp->username = 'admin@abc.com'; // The smtp user, may be a full email adress.
- $config->mail->smtp->password = '123'; // The smtp user
阅读(13997) | 评论(0) | 转发(0) |