osTICKET的安装与配置

时间:2024-02-22 08:45:59

osTicket是一个ticket系统,短小精悍,使用方便。

 

2015.4.3 1.9.7 版安装

---------------------------------

1)下载安装包。

2)将upload目录上传至/var/www/html,并将upload改名为osticket。(将整个目录chmod -R a+rwx osticket)

3)  在CENTOS 6.5系统上安装lamp: yum install httpd (mysql, mysqld这才是服务器),安装php

    装完后测试http及php, 然后需要对mysql进行配置:设置用户名及密码,并建一个osticket使用的数据库。参考步骤如下:

     mysqladmin -uroot password "yourpassword"

     mysql -uroot -pyourpassword

    > create database ostdb;

   

4)在客户端IE上执行:http://172.22.17.125/osticket/setup

   会显示缺少很多包,这时通过yum一个个安装。注意:安装完一个包后,需要重新启动httpd才可以。直到所有项全部满足

   42  yum install php-mysqli
   45  yum install php-xml
   47  yum install php-mbstring

5)接下来的基本按照提示操作就可以。有一点注意:在设置管理员帐户时,不能用admin这个名字, 我采用了root

6)安装完成

  http://172.22.17.125/osticket 进入WEB开单界面

  http://172.22.17.125/osticket/scp 进入用户管理界面

<<OVER>>

 

1.7版安装 2014年某月某日

=====================

安装:从网站下载其1.7版本(网上有1.6的中文版)

建立一个库及用户。(也可以采用root)

Now that you are logged in, we create a database:

mysql> create database amarokdb;
Query OK, 1 row affected (0.00 sec)

We allow user amarokuser to connect to the server from localhost using the password amarokpasswd:

mysql> grant usage on *.* to amarokuser@localhost identified by ‘amarokpasswd’;
Query OK, 0 rows affected (0.00 sec)

And finally we grant all privileges on the amarok database to this user:

mysql> grant all privileges on amarokdb.* to amarokuser@localhost ;
Query OK, 0 rows affected (0.00 sec)

And that’s it. You can now check that you can connect to the MySQL server using this command:

$ mysql -u amarokuser -p’amarokpasswd’ amarokdb
Your MySQL connection id is 12
Server version: 5.0.38-Ubuntu_0ubuntu1-log Ubuntu 7.04 distribution
 
 
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.
 
 
mysql>

按照说明将upload文件夹的内容传到服务器上去,一步步提示就可以正确安装了。注意:为了实现邮件的收发,PHP需要安装PHP-IMAP

 

工单系统会自动的发送邮件给用户,这就需要工单主机具有发送邮件的功能。通常情况下,一台RHEL 5安装完成sendmail后,经过配置能够上网了,也就可以发送邮件了,PHP默认也是采用的本机的邮件发送方式。安装完成后,可以通过mail  hu@163.com来测试是否可以发出去。osTicket建议如果可能,采用SMTP服务器的方式来发送邮件,实际中这种方式没有测试,估计应该要改一下PHP的配置。

工单系统需要一个工单系统邮箱,来接收用户主动发起的工单、工程师处理结果与用户的邮件沟通,都会自动分捡到相应的工单内。这就需要工单系统定期的去获取helpdesk邮箱内的邮件。该方式除了在界面上进行配置后,还需要配置crontab

crontab -e

*1/ * * * ....   /paht/to/php /path/to/aip/cron.php   其中,官方文档中要加nobody来执行,实际中加了后不能正常执行,所以就简单的去掉了。

按照配置,好象配置多个邮箱做为helpdesk邮箱。

 

测试结果:还是挺好用的。