lsmqylsmqy
当前离线
- UID
- 269380
- 帖子
- 625
- 精华
- 0
- 积分
- 168
- MST币
- 2858 个
- BST币
- 263 个
- 阅读权限
- 30
- 在线时间
- 156 小时
- 注册时间
- 2003-9-1
- 最后登录
- 2011-3-28
- 帖子
- 625
- 精华
- 0
- 积分
- 168
- MST币
- 2858 个
- BST币
- 263 个
- 阅读权限
- 30
- 在线时间
- 156 小时
- 注册时间
- 2003-9-1
|
接上
# cd /root/.cpan/build/GD-2.35
#
# LD_LIBRARY_PATH="/usr/local/lib"
# export LD_LIBRARY_PATH
# perl Makefile.PL
# make install
然后再用/opt/otrs/bin/otrs.checkmodules.sh检查一下是不是ok了
实在不行用perl Makefile.PL --ignore具体我忘了,系统会给出提示,注意看屏幕输出
perl安装模块有些麻烦,经过安装这么多遍,总结了条经验就是如果在perl -MCPAN -e shell里安装不成功就到/root/.cpan/build/目录下找到模块的目录,再运行
perl Makefile.PL ;make ; make install
再不行就去下载过一个,比如上面的DBD-mysql
已经安装的差不多了!
现在我们还差 用cgi图形界面来导入数据库
***** 这里要设置apache的httpd.conf文件 *******
# vi /usr/local/apache2/conf/httpd.conf
# ...
AddHandler cgi-script .cgi .pl
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php .phtm
AddType application/x-httpd-php-source .phps
DirectoryIndex index.html index.pl index.php
Options Indexes ExecCGI FollowSymLinks
NameVirtualHost *:80
<Directory "/opt/">
Options Indexes FollowSymlinks
AllowOverride None
Allow from all
</Directory>
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
<Directory "/opt/otrs/bin/cgi-bin/">
Options +ExecCGI -Includes
AddHandler cgi-script .cgi .pl
AllowOverride None
Allow from All
</Directory>
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs"
<Directory "/opt/otrs/var/httpd/htdocs">
AllowOverride None
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot /usr/local/apache2/htdocs/
</VirtualHost>
Alias /otrsdownload/ "/opt/otrs/var/log/otrsdownload/"# OTRS下载
<Directory "/opt/otrs/var/log/otrsdownload/">
Options Indexes MultiViews
AllowOverride None
Allow from all
</Directory>
</VirtualHost>
保存退出后重启apache
# /usr/local/apache2/bin/httpd -k restart
接下来打开安装页面
otrs/installer.pl
(提示:在安装之前您还需要把文件权限给打开
chmod 777 /opt/otrs/Kernel/*.*
)
设置好之后按照他给的图形提示,安装好就可以了!
二、OTRS-Kernel文件移动
把otrs上的Kernel文件夹复制到linux下.
因为我们是从WINDOWS上转移过来的,所以原有的路径需要相应的做些更改
配置路径的主要文件在Kernel文件夹下
主要的目的是把原来的C:/OTRS/otrs改为/opt/otrs你的OTRS目录路径就可以了.
需要更改路径的地方有:
********* ****** 修改文件路径 ****** **********
"opt/otrs/Kernel/Config.pm"(61,22): $Self-> = 'C:/OTRS/otrs';
"opt/otrs/Kernel/Config.pm"(76,38): $Self-> = 'C:/OTRS/otrs/var/log/otrs.log';
"opt/otrs/Kernel/Config_backup_email_module.pm"(61,22): $Self-> = 'C:/OTRS/otrs';
"opt/otrs/Kernel/Config_backup_email_module.pm"(76,38): $Self-> = 'C:/OTRS/otrs/var/log/otrs.log';
"opt/otrs/Kernel/Config/Files/ZZZAuto.pm"(9,35):$Self-> = 'C:/OTRS/otrs/var/log/otrs.log';
更改方法如下::
# vi /opt/otrs/Kernel/Config.pm
找到
# ---------------------------------------------------- #
# fs root directory
# ---------------------------------------------------- #
$Self-> = 'C:/OTRS/otrs';
把$Self-> = 'C:/OTRS/otrs';修改为:$Self-> = '/opt/otrs';
找到
# ---------------------------------------------------- #
# data inserted by installer #
# ---------------------------------------------------- #
$Self-> = 'Kernel::System::Log::File';
$Self-> = 'C:/OTRS/otrs/var/log/otrs.log';
把$Self-> = 'C:/OTRS/otrs/var/log/otrs.log';
修改为:$Self-> = '/opt/otrs/var/log/otrs.log';
保存退出.
还需要更改的文件有CRONw文件夹的crontab.txt文件中
*/10 * * * * C:/OTRS/Perl/bin/perl.exe C:/OTRS/otrs/bin/GenericAgent.pl -c db
*/20 * * * * C:/OTRS/Perl/bin/perl.exe C:/OTRS/otrs/bin/GenericAgent.pl
45 */2 * * * C:/OTRS/Perl/bin/perl.exe C:/OTRS/otrs/bin/PendingJobs.pl
10 0 * * * C:/OTRS/Perl/bin/perl.exe C:/OTRS/otrs/bin/otrs.cleanup
*/10 * * * * C:/OTRS/Perl/bin/perl.exe C:/OTRS/otrs/bin/PostMasterPOP3.pl
01 01 * * * C:/OTRS/Perl/bin/perl.exe C:/OTRS/otrs/bin/RebuildTicketIndex.pl
55 */2 * * * C:/OTRS/Perl/bin/perl.exe C:/OTRS/otrs/bin/DeleteSessionIDs.pl --expired
35 * * * * C:/OTRS/Perl/bin/perl.exe C:/OTRS/otrs/bin/UnlockTickets.pl --timeout
C:/OTRS/Perl/bin/perl.exe改为/usr/bin/perl
C:/OTRS/otrs改为 /opt/otrs
如下:
*/10 * * * * root /usr/bin/perl /opt/otrs/bin/GenericAgent.pl -c db
*/20 * * * * root /usr/bin/perl /opt/otrs/bin/GenericAgent.pl
45 */2 * * * root /usr/bin/perl /opt/otrs/bin/PendingJobs.pl
10 0 * * * root /usr/bin/perl /opt/otrs/bin/otrs.cleanup
*/10 * * * * root /usr/bin/perl /opt/otrs/bin/PostMasterPOP3.pl
01 01 * * * root /usr/bin/perl /opt/otrs/bin/RebuildTicketIndex.pl
55 */2 * * * root /usr/bin/perl /opt/otrs/bin/DeleteSessionIDs.pl --expired
35 * * * * root /usr/bin/perl /opt/otrs/bin/UnlockTickets.pl --timeout
如果是php文件的话用:/usr/local/php /opt/otrs/...... 这个格式就可以了 |
lsmqylsmqy
当前离线
- UID
- 269380
- 帖子
- 625
- 精华
- 0
- 积分
- 168
- MST币
- 2858 个
- BST币
- 263 个
- 阅读权限
- 30
- 在线时间
- 156 小时
- 注册时间
- 2003-9-1
- 最后登录
- 2011-3-28
- 帖子
- 625
- 精华
- 0
- 积分
- 168
- MST币
- 2858 个
- BST币
- 263 个
- 阅读权限
- 30
- 在线时间
- 156 小时
- 注册时间
- 2003-9-1
|
| |