79668
Fedora 13下快速安装禅道
回帖数 5
阅读数 10735
发表时间 2010-11-03 18:29:48
Fedora 13下快速安装禅道项目管理工具
注:文中服务器的主机名为:server1.example.com,IP地址为:192.168.0.100,大家在实际应用中只要把这两个配置更换成自己的就可以了。
一、安装MySQL5
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.
Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
By default, MySQL comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Cleaning up...
All done! If you've completed all of the above steps, your MySQL
installation should now be secure.
Thanks for using MySQL!
二、安装Apache2服务器
Apache Web服务器是Fedora软件安装源的一部分,直接使用yum软件包管理器就能安装: 1. yum install httpd 安装后,同样使用chkconfig命令把 httpd 添加至系统启动组里: 1. chkconfig --levels 235 httpd on 启动Apache2: 1. /etc/init.d/httpd start 这个时候在浏览器里就能访问了,访问 http://192.168.0.100 会看到默认页面显示内容,就说明apache能正常工作了。Fedora下Apache默认站点根目录位于 /var/www/html,默认配置文件位于/etc/httpd/conf/httpd.conf,其它配置文件都在/etc/httpd/conf.d/目录下。
三、安装PHP5
1. yum install php 安装后,必须重启Apache: 1. /etc/init.d/httpd restart
四、测试PHP5
安装成不成功,还得看能不能解析php页面,新建一info.php文件在/var/www/html目录下,程序文件内容为 1. 在浏览器中访问http://192.168.0.100/info.php,如果看到phpinfo输出内容,就说明安装成功了:
当然还没完呢!!!现在还只是能解析静态页面和php页面而已,如何让php程序能连接mysql数据库呢?
五、为PHP5安装MySQL支持
PHP5支持MySQL很简单,只要安装php-mysql软件包就可以,可是,php程序要运行,可能需要多个php模块的支持,具体要看程序的说明。使用yum search命令可以搜索相应软件包,下面的命令是搜索php相关的软件包: 1. yum search php 由于php相关的软件包非常多,检索出来以后,从中筛选出自己需要的软件包安装,下面给出一个通用的安装实例: 1. yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-magickwand php-magpierss php-mbstring php-mcrypt php-mssql php-shout php-snmp php-soap php-tidy 安装完成后,重启Apache2: 1. /etc/init.d/httpd restart 现在再重新访问http://192.168.0.100/info.php就能看到之前安装的php模块了。
六、安装mysql数据库管理工具phpMyAdmin
上面的步骤已经完成了本文的全部任务了,不过,有个头疼的问题,如果我对mysql数据库的命令执行不熟悉怎么办?这样时候很自然就会想到使用phpMyAdmin来管理mysql数据库,这样会方便许多。安装phpMyAdmin: 1. yum install phpmyadmin 安装后接着就是配置phpMyAdmin:(除红字体外,其他均注释) 1. vi /etc/httpd/conf.d/phpMyAdmin.conf 2. 3. # phpMyAdmin - Web based MySQL browser written in php 4. # 5. # Allows only localhost by default 6. # 7. # But allowing phpMyAdmin to anyone other than localhost should be considered 8. # dangerous unless properly secured by SSL 9. 10. Alias /phpMyAdmin /usr/share/phpMyAdmin 11. Alias /phpmyadmin /usr/share/phpMyAdmin 12. # 13. # order deny,allow 14. # deny from all 15. # allow from 127.0.0.1 16. # allow from ::1 17. # 18. 19. # This directory does not require access over HTTP - taken from the original 20. # phpMyAdmin upstream tarball 21. # 22. 23. Order Deny,Allow 24. Deny from All 25. Allow from None 26. 27. 28. # This configuration prevents mod_security at phpMyAdmin directories from 29. # filtering SQL etc. This may break your mod_security implementation. 30. # 31. # 32. # 33. # SecRuleInheritance Off 34. # 35. # 重启Web服务: 1. /etc/init.d/httpd restart 现在就可以使用浏览器访问http://192.168.0.100/phpmyadmin/来管理mysql数据库服务器了:
七、安装禅道
在禅道的官方网站下载在fedora13下安装使用的RPM安装包。 http://zentaoms.googlecode.com/files/ZenTaoPMS-1.3.0-1.fc13.i686.rpm.tar.gz 解压安装包 # tar zxvf ZenTaoPMS-1.3.0-1.fc13.i686.rpm.tar.gz 会在当前目录中解压出产生两个RPM包。 ZenTaoPHP-1.4.1-1.fc13.i686.rpm ZenTaoPMS-1.3.0-1.fc13.i686.rpm 安装PHP安装包 Rpm –ivh ZenTaoPHP-1.4.1-1.fc13.i686.rpm 安装禅道程序安装包 Rpm –ivh ZenTaoPMS-1.3.0-1.fc13.i686.rpm
八、执行页面安装配置
安装好后的禅道主目录为/var/www/html/zentaopms/www 执行页面安装配置:http://192.168.0.100/zentaopms/www/install.php 按要求填入数据库地址、新数据库名称、数据库用户、数据库密码等。页面配置完成后,就可以访问禅道的主页了。 http://192.168.0.100/zentaopms/www/index.php 当然,如果你觉得的路径太长,那就在apache的配置文件中将根目录路径设成如下: Vi /etc/httpd/conf/httpd.conf 修改内容如下: DocumentRoot "/var/www/html/zentaopms/www" 再次访问http://192.168.0.100/ 即可访问禅道主页。
九、配置邮件提醒
由于我在安装fedora13时,默认安装好了sendmail,所以我们的邮件提醒采用sendmail,其本不用特别配置很方便,建议大家这么配。 1. 进入邮件配置文件所在目录: /var/www/html/zentaopms/module/mail/ 2. 里面有一个config.php,mail的相关配置都是在这个地方进行设置的。但不建议直接修改这个文件,因为我们后面升级会覆盖改文件。 3. 在module/mail下面创建opt/config目录,然后将module/mail/config.php 拷贝一份到opt/config/下面。(切记,一定要照做!)别告诉我你不会用mkdir和cp命令:) 4. 修改config.php里的参数: mail->turnon = true; //true为打开邮件功能 /* 设置发件人地址和名称。*/ $config->mail->fromAddress = 'wf@xxx.xxx.xxx'; // 发件人地址。 注意xxx为本机的hostname(必须完全一致,主要怕被个别的邮件系统拒收) //$config->mail->fromAddress = 'wf@xxx.com.cn'; // 发件人地址。 真正的收件人的地址 $config->mail->fromName = 'wf'; // 发件人名称。 /* 设置发信方式,目前支持phpmail|sendmail|smtp|gmail。*/ $config->mail->mta = ' sendmail'; /* 普通SMTP的配置:*/ if($config->mail->mta == 'smtp') { $config->mail->smtp->debug = 2; // smtp debug级别,0,1, 2, 数字越大,级别越高。 $config->mail->smtp->auth = true; // 是否需要验证。 $config->mail->smtp->host = '127.0.0.1'; // smtp主机。 $config->mail->smtp->port = '25'; // 端口号。 $config->mail->smtp->username = ''; // 登录用户名,有的smtp需要完整的邮箱地址。 $config->mail->smtp->password = ''; // 密码。 } /* GMAIL的配置。*/ elseif($config->mail->mta == 'gmail') { $config->mail->gmail->debug = 0; // debug级别,0,1, 2, 数字越大,级别越高。 $config->mail->gmail->username = ""; // GMAIL username $config->mail->gmail->password = ""; // GMAIL password } 至此,我们伟大的禅道系统就安装完了,感谢禅道!!发扬国产!!!支持开源!!!!
注:文中服务器的主机名为:server1.example.com,IP地址为:192.168.0.100,大家在实际应用中只要把这两个配置更换成自己的就可以了。
一、安装MySQL5
Redhat是Linux下安装软件非常方便,多数软件只要使用yum命令就可以,在终端执行下面的命令安装MySQL服务器: 1. yum install mysql mysql-server 想要MySQL随系统启动,需要使用chkconfig命令把mysqld添加到启动组里: 1. chkconfig --levels 235 mysqld on 2. /etc/init.d/mysqld start 执行 mysql_secure_installation 命令为MySQL数据库添加相应的安全配置: [root@server1 ~]# mysql_secure_installation
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQLSERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MySQL to secure it, we'll need the current
password for the root user. If you've just installed MySQL, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Enter current password for root (enter for none):
OK, successfully used password, moving on...
Setting the root password ensures that nobody can log into the MySQL
root user without the proper authorisation.
Set root password? [Y/n]
New password:Re-enter new password:
Password updated successfully!
Reloading privilege tables..
... Success!
By default, a MySQL installation has an anonymous user, allowing anyone
to log into MySQL without having to have a user account created for
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a
production environment.
Remove anonymous users? [Y/n]
... Success!Normally, root should only be allowed to connect from 'localhost'. This
ensures that someone cannot guess at the root password from the network.
Disallow root login remotely? [Y/n]
... Success!By default, MySQL comes with a database named 'test' that anyone can
access. This is also intended only for testing, and should be removed
before moving into a production environment.
Remove test database and access to it? [Y/n]
- Dropping test database...... Success!
- Removing privileges on test database...
... Success!
Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.
Reload privilege tables now? [Y/n]
... Success!Cleaning up...
All done! If you've completed all of the above steps, your MySQL
installation should now be secure.
Thanks for using MySQL!
二、安装Apache2服务器
Apache Web服务器是Fedora软件安装源的一部分,直接使用yum软件包管理器就能安装: 1. yum install httpd 安装后,同样使用chkconfig命令把 httpd 添加至系统启动组里: 1. chkconfig --levels 235 httpd on 启动Apache2: 1. /etc/init.d/httpd start 这个时候在浏览器里就能访问了,访问 http://192.168.0.100 会看到默认页面显示内容,就说明apache能正常工作了。Fedora下Apache默认站点根目录位于 /var/www/html,默认配置文件位于/etc/httpd/conf/httpd.conf,其它配置文件都在/etc/httpd/conf.d/目录下。
三、安装PHP5
1. yum install php 安装后,必须重启Apache: 1. /etc/init.d/httpd restart
四、测试PHP5
安装成不成功,还得看能不能解析php页面,新建一info.php文件在/var/www/html目录下,程序文件内容为 1. 在浏览器中访问http://192.168.0.100/info.php,如果看到phpinfo输出内容,就说明安装成功了:
当然还没完呢!!!现在还只是能解析静态页面和php页面而已,如何让php程序能连接mysql数据库呢?
五、为PHP5安装MySQL支持
PHP5支持MySQL很简单,只要安装php-mysql软件包就可以,可是,php程序要运行,可能需要多个php模块的支持,具体要看程序的说明。使用yum search命令可以搜索相应软件包,下面的命令是搜索php相关的软件包: 1. yum search php 由于php相关的软件包非常多,检索出来以后,从中筛选出自己需要的软件包安装,下面给出一个通用的安装实例: 1. yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-magickwand php-magpierss php-mbstring php-mcrypt php-mssql php-shout php-snmp php-soap php-tidy 安装完成后,重启Apache2: 1. /etc/init.d/httpd restart 现在再重新访问http://192.168.0.100/info.php就能看到之前安装的php模块了。
六、安装mysql数据库管理工具phpMyAdmin
上面的步骤已经完成了本文的全部任务了,不过,有个头疼的问题,如果我对mysql数据库的命令执行不熟悉怎么办?这样时候很自然就会想到使用phpMyAdmin来管理mysql数据库,这样会方便许多。安装phpMyAdmin: 1. yum install phpmyadmin 安装后接着就是配置phpMyAdmin:(除红字体外,其他均注释) 1. vi /etc/httpd/conf.d/phpMyAdmin.conf 2. 3. # phpMyAdmin - Web based MySQL browser written in php 4. # 5. # Allows only localhost by default 6. # 7. # But allowing phpMyAdmin to anyone other than localhost should be considered 8. # dangerous unless properly secured by SSL 9. 10. Alias /phpMyAdmin /usr/share/phpMyAdmin 11. Alias /phpmyadmin /usr/share/phpMyAdmin 12. #
七、安装禅道
在禅道的官方网站下载在fedora13下安装使用的RPM安装包。 http://zentaoms.googlecode.com/files/ZenTaoPMS-1.3.0-1.fc13.i686.rpm.tar.gz 解压安装包 # tar zxvf ZenTaoPMS-1.3.0-1.fc13.i686.rpm.tar.gz 会在当前目录中解压出产生两个RPM包。 ZenTaoPHP-1.4.1-1.fc13.i686.rpm ZenTaoPMS-1.3.0-1.fc13.i686.rpm 安装PHP安装包 Rpm –ivh ZenTaoPHP-1.4.1-1.fc13.i686.rpm 安装禅道程序安装包 Rpm –ivh ZenTaoPMS-1.3.0-1.fc13.i686.rpm
八、执行页面安装配置
安装好后的禅道主目录为/var/www/html/zentaopms/www 执行页面安装配置:http://192.168.0.100/zentaopms/www/install.php 按要求填入数据库地址、新数据库名称、数据库用户、数据库密码等。页面配置完成后,就可以访问禅道的主页了。 http://192.168.0.100/zentaopms/www/index.php 当然,如果你觉得的路径太长,那就在apache的配置文件中将根目录路径设成如下: Vi /etc/httpd/conf/httpd.conf 修改内容如下: DocumentRoot "/var/www/html/zentaopms/www"
九、配置邮件提醒
由于我在安装fedora13时,默认安装好了sendmail,所以我们的邮件提醒采用sendmail,其本不用特别配置很方便,建议大家这么配。 1. 进入邮件配置文件所在目录: /var/www/html/zentaopms/module/mail/ 2. 里面有一个config.php,mail的相关配置都是在这个地方进行设置的。但不建议直接修改这个文件,因为我们后面升级会覆盖改文件。 3. 在module/mail下面创建opt/config目录,然后将module/mail/config.php 拷贝一份到opt/config/下面。(切记,一定要照做!)别告诉我你不会用mkdir和cp命令:) 4. 修改config.php里的参数: mail->turnon = true; //true为打开邮件功能 /* 设置发件人地址和名称。*/ $config->mail->fromAddress = 'wf@xxx.xxx.xxx'; // 发件人地址。 注意xxx为本机的hostname(必须完全一致,主要怕被个别的邮件系统拒收) //$config->mail->fromAddress = 'wf@xxx.com.cn'; // 发件人地址。 真正的收件人的地址 $config->mail->fromName = 'wf'; // 发件人名称。 /* 设置发信方式,目前支持phpmail|sendmail|smtp|gmail。*/ $config->mail->mta = ' sendmail'; /* 普通SMTP的配置:*/ if($config->mail->mta == 'smtp') { $config->mail->smtp->debug = 2; // smtp debug级别,0,1, 2, 数字越大,级别越高。 $config->mail->smtp->auth = true; // 是否需要验证。 $config->mail->smtp->host = '127.0.0.1'; // smtp主机。 $config->mail->smtp->port = '25'; // 端口号。 $config->mail->smtp->username = ''; // 登录用户名,有的smtp需要完整的邮箱地址。 $config->mail->smtp->password = ''; // 密码。 } /* GMAIL的配置。*/ elseif($config->mail->mta == 'gmail') { $config->mail->gmail->debug = 0; // debug级别,0,1, 2, 数字越大,级别越高。 $config->mail->gmail->username = ""; // GMAIL username $config->mail->gmail->password = ""; // GMAIL password } 至此,我们伟大的禅道系统就安装完了,感谢禅道!!发扬国产!!!支持开源!!!!
2010-11-03 18:35:44 成功 最后编辑
5个回复
我的这点儿分享比起禅道的分享差远了,所以不必言谢。另外,上面的格式有点乱,我想把doc传上来,如何加呀?
2010-11-04 11:25:49 成功 最后编辑 2010-11-04 11:25:49 成功 回帖
联系我们
联系人
杨苗/高级客户经理
电话(微信)
13165050229
QQ号码
2692096539
联系邮箱
yangmiao@chandao.com

相关帖子
jerry | 最后回帖 2025-03-07 13:10 金凯
wj | 最后回帖 2013-09-18 17:08 王春生
lifw | 最后回帖 2013-02-20 16:18 lifw
zhengkaisheng | 最后回帖 2024-04-28 17:18 禅道-李锡碧
Day | 最后回帖 2019-01-08 17:25 王林
段誉 | 最后回帖 2012-08-24 08:49 段誉



精品资料包
1V1产品演示
免费试用增强功能
专属顾问答疑支持


