The entire process of online exam system migration from Windows to Linux systems

Source: Internet
Author: User

Original operating Environment:

Operating system: Windows Server 2003

Database system: MySQL Server 5.0

Web Server Software: Apache2

Programming Language: PHP

Current operating Environment:

Operating system: CentOS release 6.8 (Final)

Database system: MySQL Server 5.5.52

Web Server Software: apache/2.2.15 (Unix)

Programming Language: PHP

Migration steps:

1. Migration program: First put the test System exam folder under Windows into a compressed package, and then upload to the Linux server under the Apache HTML directory and unzip; command: Unrar x exam.rar

2. Migrating the database: first the test database file into a compressed package, and then upload to the Linux MySQL directory and unzip;

3. Locate the configuration file to modify the database password.

To run the test:

Question 1 : This file is not writable:/var/www/html/exam/cache/label_cache/index_0_0_17_0_0_b9f50.php

Resolve issue 1: [Email protected]]# chmod-r a+w label_cache/

Issue 2: The foreground page appears garbled

Resolve Issue 2:

[email protected]]# vi config.php

$webdb [' Admin_url ']= ' http://117.*.*.*/exam/admin '; #修改地址

$webdb [' Www_url ']= ' http://117.*.*.*/exam ';

 

Issue 3: This file is not writable :/var/www/html/exam/cache/adminlogin_logs.php

Resolution 3:[[email protected]]# chmod-r a+w cache/

question 4: Table ' Qb_config ' is read only

1036 This file is not writable :/var/www/html/exam/data/config.php

Resolution 4:[[email protected]]# chmod-r a+w data/

Issue 5: Database connection error : Updateqb_memberdata setlastvist= ' 1497402735 ', lastip= ' 182.105.0.143 ', oltime=oltime + ' over ' WHERE uid= ' 1 ' Table ' qb_memberdata ' is read only 1036

Resolve Issue 5:

[Email protected] mysql]# chown-r mysql:mysql qibosofts

[[Email protected] mysql]# service Mysqldrestart

Question 6: serious warning,/var/www/html/exam/upload_files This directory is not writable, please use FTP to modify its properties to 0777 writable, display drwxr-xr-x 7 root root 4096 June 08:11 upload _files.

Resolution 6: [[email protected] exam]# chmod-r 0777upload_files/

[email protected] exam]# LL

DRWXRWXRWX 7 root root 4096 6 months 08:11 upload_files

Resolve all issues and access to normal.




This article is from the "sky9890" blog, make sure to keep this source http://sky9896.blog.51cto.com/2330653/1936460

The entire process of online exam system migration from Windows to Linux systems

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.