Current location - Recipe Complete Network - Catering training - Find a simple linux online examination system for free.
Find a simple linux online examination system for free.
Establish an online survey and online examination system Linux on the Linux host.

I. Introduction

Now it has entered the era of WEB 2.0, and various network applications have mushroomed, especially enterprises and institutions, which have developed from the initial C/S architecture to the current B/S architecture. This paper introduces the installation and use manuals of "network survey system" and "online examination system" by setting PHP application program based on APACH service on LINUX host, which are based on the author's personal experience. The source program belongs to the author. Anyone who uses this program shall abide by the relevant use agreement.

Second, the preparation work before installation

A) LINUX system: This paper uses a LINUX system based on Fedora 8. If you use other versions of linux, please install the corresponding system components. Of course, the above two PHP applications can also be installed in Windows system. For installation information, please refer to the corresponding manual. Only linux-based systems are introduced here. It is suggested that after installing the operating system, some unnecessary services, such as Bluetooth and smart cards, should be removed.

B) Webmin installation. For your convenience, please download Webmin from relevant websites, preferably RPM files, and install it.

C) HTTP support: Use Apache 2.2.6, and set the character set of the file by default, otherwise it will generate garbled code.

D) MYSQL support: MYSQL version 5.0.45, which establishes new users and gives them the right to establish and modify databases.

E) PHP version: PHP version 5.2.5.

F) install php-mbstring. This plug-in is not installed by PHP itself and needs to be installed separately. There is a ready-made RPM on the Linux CD.

G) The components used in this paper are all components in Fedora CD, and they are all compiled rpm files, which saves a lot of trouble to install. The disadvantage of this installation method is that it cannot be installed according to its own definition and is not flexible enough, so the installation directory will be different from the recompiled installation program.

H) The virtual directory used is /var/www/html, and other virtual directories can be established as required for security reasons.

I) For convenience, this paper does not establish other users and corresponding permissions, and all users use root to operate, which is very undesirable in practical work. Because LINUX is famous for its security, it is not recommended that you set it up like me.

J) For convenience, use two tools as follows:

1. WinSCP is SCP (secure copy) file transfer software that supports SSH (secure shell). As long as the file host supports SSH protocol, you can download and upload files safely. His operation interface is based on the double-window arrangement of NC (Commander Norton), which is not too difficult to use. In WinSCP, there is no problem with general file operations, such as copying, moving and renaming files or folders.

Two. SecureCRT is a terminal simulator, which supports SSH(SSH 1 and SSH2), Telnet and rlogin protocols. It is also an ideal tool for connecting remote systems, including Windows, UNIX and virtual machines. Encrypted files can be transferred using the VCP command line program included.

K) test PHP and MYSQL to ensure their normal work. Please put the following files into the corresponding folder in the virtual directory. The test documents are as follows

Phpinfo.php

& lt? phpinfo(); ? & gt

Mysql.php

& lt? Server-side programming language (abbreviation of professional hypertext preprocessor)

$link=mysql_connect('localhost ',' myadmin ',' 999999 ');

If (! $link) echoes "Failed!" ;

Else echoed "success!" ;

MySQL _ close();

& gt

When the relevant information of PHP appears in the program and the database test is successful, we can proceed with the next installation.

Thirdly, the installation and use of the network survey system (limesurvey)

A) brief introduction of lime investigation

LimeSurvey (formerly PHP Survey) is an open source online questionnaire survey program. Written in PHP language, you can use MySQL, PostgreSQL or MSSQL databases. It integrates investigation program development, questionnaire release and data collection. With it, users don't have to know the programming details of these functions. The system includes branches, custom page layout and design (using web template system), and provides basic statistical analysis functions. The survey can be accessed anonymously or only by users who access the one-time token of the questionnaire, so that we can obtain anonymous data or data with participants separated from the results.

B) Ensure that the server meets the following requirements

I need about 40 megabytes of disk space to save the script.

Two. MySQL 4. 1.0 or above or Postgres 8. 1 above.

Three. PHP 5.x version 5.x or above, and enable the following modules/link libraries:

1.mbstring (multibyte string function) extension library

2.mysql4 or mysql5 PHP link library