内容简介:在线考试系统从Windows系统迁移到Linux系统的整个过程
原运行环境:
操作系统:Windows Server 2003
数据库系统:MySQL Server 5.0
Web服务器软件:Apache2
编程语言:PHP
现运行环境:
操作系统:CentOS release 6.8 (Final)
数据库系统:MySQL Server 5.5.52
Web服务器软件:Apache/2.2.15(Unix)
编程语言:PHP
迁移步骤:
1.迁移程序:首先把Windows下的考试系统exam文件夹打成压缩包,然后上传到 Linux 服务器的Apache下的html目录下并进行解压缩;命令:unrar x exam.rar
2.迁移数据库:先把考试数据库文件打成压缩包,然后上传到Linux mysql目录下并解压缩;
3.找到配置文件修改数据库口令。
运行测试:
问题1 :此文件不可写:/var/www/html/exam/cache/label_cache/index_0_0_17_0_0_b9f50.php
解决问题1 : [root@sky9896cache]# chmod -R a+w label_cache/
问题2
:前台页面出现乱码
解决问题2 :
[root@sky9896data]# vi config.php
$webdb['admin_url']=' http://117.*.*.*/exam/admin'; #修改地址
$webdb['www_url']='http://117.*.*.*/exam';
问题3 : 此文件不可写 :/var/www/html/exam/cache/adminlogin_logs.php
解决问题3 : [root@sky9896exam]# chmod -R a+w cache/
问题4 : Table 'qb_config' is read only
1036 此文件不可写 :/var/www/html/exam/data/config.php
解决问题4 : [root@sky9896exam]# chmod -R a+w data/
问题5 :数据库连接出错 :UPDATEqb_memberdata SETlastvist='1497402735',lastip='182.105.0.143',oltime=oltime+'34' WHERE uid='1' Table 'qb_memberdata' is read only 1036
解决问题5 :
[root@sky9896 mysql]# chown -R mysql:mysql qibosofts
[root@sky9896 mysql]# service mysqldrestart
问题6: 严重警告,/var/www/html/exam/upload_files此目录不可写,请用FTP修改其属性为0777可写,显示 drwxr-xr-x 7 root root 4096 6月 14 08:11 upload_files。
解决问题6 :[root@sky9896 exam]# chmod -R 0777upload_files/
[root@sky9896 exam]# ll
drwxrwxrwx 7 root root 4096 6 月 14 08:11 upload_files
解决所有问题,访问正常。
以上所述就是小编给大家介绍的《在线考试系统从Windows系统迁移到Linux系统的整个过程》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:- 学之思在线考试系统 v3.0.8 版发布
- 建设高等教育网络在线考试系统有什么意义?
- uexam v3.1.0 发布,学之思在线考试系统
- uexam v3.2.0 发布,学之思在线考试系统
- uexam v3.3.0 发布,学之思在线考试系统
- xzs-mysql 3.1.0 发布,学之思在线考试系统 Mysql 版
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
High Performance Python
Micha Gorelick、Ian Ozsvald / O'Reilly Media / 2014-9-10 / USD 39.99
If you're an experienced Python programmer, High Performance Python will guide you through the various routes of code optimization. You'll learn how to use smarter algorithms and leverage peripheral t......一起来看看 《High Performance Python》 这本书的介绍吧!