The whole process of online examination system migration from Windows system to Linux system
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, make the exam folder of the examination system under Windows into a compressed package, then upload it to the html directory under Apache of the Linux server and decompress it; command: unrar x exam.rar
two。 Migrate the database: first pack the exam database file into a compressed package, then upload it to the Linux mysql directory and extract it
3. Find the configuration file to modify the database password.
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
Solve problem 1: [root @ sky9896cache] # chmod-R aquiw label_cache/
Question 2: garbled code appears on the front page
Resolve problem 2:
[root@sky9896data] # vi config.php
$webdb ['admin_url'] =' http://117.*.*.*/exam/admin'; # modify address
$webdb ['www_url'] =' http://117.*.*.*/exam';
Question 3: this file is not writable: / var/www/html/exam/cache/adminlogin_logs.php
Solve problem 3: [root @ sky9896exam] # chmod-R aquiw cache/
Question 4:Table 'qb_config' is read only
1036 this file is not writable: / var/www/html/exam/data/config.php
Solve problem 4: [root @ sky9896exam] # chmod-R aquiw data/
Question 5: database connection error: UPDATEqb_memberdata SETlastvist='1497402735',lastip='182.105.0.143',oltime=oltime+'34' WHERE uid='1' Table 'qb_memberdata' is read only 1036
Solve problem 5:
[root@sky9896 mysql] # chown-R mysql:mysql exam
[root@sky9896 mysql] # service mysqld restart
Problem 6: serious warning, / var/www/html/exam/upload_files this directory is not writable. Please use FTP to change its property to 0777 writable to display drwxr-xr-x 7 root root 4096 June 14 08:11 upload_files.
Solve problem 6: [root@sky9896 exam] # chmod-R 0777 upload_files/
[root@sky9896 exam] # ll
Drwxrwxrwx 7 root root 4096 June 14 08:11 upload_files
Solve all problems, access is normal.