centos 安装部署tcexam在线考试系统

来源:互联网 发布:mac电脑图片预览 编辑:程序博客网 时间:2024/05/17 18:03


准备工作

主要还是参考官方文档,http://www.tcexam.org/installation.php 但是有一些细节需要注意

安装php httpd mysql 等

其中zbar centos自带的包里没有,要配置个epel的源才有参考epel源地址和安装

另外:centos中,latex叫texlive;imagemagick,IM必须大写;GhostScript在解决ImageMagick依赖时就安装了;zbarimg叫zbar,在Fedora的epel软件库中。

    yum install gd curl ImageMagick   texlive  zbar mysql-server php httpd php-mysql libdbi-dbd-mysql php-gd php-curl

设置数据库密码

[MySQL]mysql - u rootUPDATE mysql.user SET Password=PASSWORD('mypassword') WHERE User='root';FLUSH PRIVILEGES;quit;

下载源码包

http://www.tcexam.org download,下载即可,下载后放在/var/www/html/下,文件夹名字改为了tcexam
修改权限
chmod -R 777 /var/www/html/tcexam
注意要关闭selinux,一开始我执行安装,总是到一半就断了,后来才发现是selinux搞的鬼!!

安装

开启mysql httpd,
service mysqld startservice httpd start
进入页面 http://127.0.0.1/tcexam/install/install.php
输入数据库密码,之后点击install即可。可以看日志,安装成功后,即可使用。



参考:

http://www.xiyang-liu.com/2012/10/build-a-online-examination-system-with-tcexam/
http://www.tcexam.org/

原创粉丝点击