Method of building PHP running environment

web front end nine thousand one hundred and ninety-six 14 years ago (2010-12-19)

1 -- Extract the PHP package to D:/php

2 -- Install Apache to Disk D

network domain:localhost

server name:localhost

administrator's email address:

3 -- Copy the php5apache2_2.dll file under PHP to apache/modules

4 -- Open the apache/conf/httpd.conf file

5 -- Copy LoadModule php5_module "D:/Apache 2.2/modules/php5apache2_2. dll"

6 -- Copy AddType application/x-httpd-php. php

7 -- Create a new project directory, such as: (d:/www)

8 -- Modify two documentRoot values to d:/www

9 ---- DirectoryIndex index.html followed by index.php index.htm

10 -- Rename the php.ini-recommended file under the php folder to the php.ini file

11 -- Modify the extension_dir value of the php.ini file to "D:/php/ext"

12 -- Remove the semicolons before extension=php_url. dll, extension=php_gd2.dll, extension=php_mbstring.dll, extension=php_mysql.dll, extension=php_mysqli. dll, and extension=php_zip.dll.

Modify display_errors=on

Copy libmysql.dll, php5apache2_2.dll, php5ts.dll, php.ini to C: WINDOWS

13 --- Restart Apache

14 --- Self set domain name: C: WINDOWS system32 drivers etc hosts Open Add:

15 --- Install MySQL

16 --- Extract phpmyadmin to the project directory, such as (d:/www), and run Phpmyadmin/is fine.

The above is the configuration method of PHP running environment. Next, we will introduce a tool for PHP integrated running environment&mdash& mdash;APMServ 5.2.6

APMServ 5.2.6, The versions of integrated software have been upgraded, and Nginx Memcached、WinSCP, And some Linux commands.

Software name: APMServ 5.2.6

Software author: Zhang Yan

Authorization method: free software

Issued on: October 21, 2008

Operating environment: WinNT/Win2000/WinXP/Win2003

File size: 20.4MB

Software introduction:

APMServ 5.2.6 is a fast build Apache 2.2.9 PHP 5.2.6、MySQL 5.1.28&4.0.26、Nginx 0.7.19、Memcached 1.2.4、phpMyAdmin、OpenSSL、SQLite、ZendOptimizer, as well as ASP CGI, Perl website The server Green software of the platform. It does not need to be installed. It has flexible mobility. When copying it to other directories, partitions or other computers, just click the start button in APMServ.exe to automatically make relevant settings, install Apache and MySQL as system services and start them. APMServ combines the advantages of Apache's stability and security, and has a graphical management interface as convenient as IIS. It also supports MySQL 5.0&4.0, virtual host, virtual directory, port change, SMTP, upload size limit, automatic global variables, SSL certificate creation, cache performance optimization and other settings, which can be completed with a mouse click.

1. Note: The path of APMServ program cannot contain Chinese characters and spaces.

2. MySQL default user name: root, password is empty

3、MySQL data base File storage directory: MySQL 5.1 data or MySQL 4.0 data

4. Website root directory [HTML, PHP] www htdocs [ASP] www asp [CGI, Perl] www cgi bin

5. Please use to access this machine

6. Non default port, such as

7. If you select Memcached in Extended Functions, its port is 11211

8. APMServ integrates the following software:

Apache 2.2.9 [HTTP Server]

Nginx 0.7.19 [HTTP Server]

NetBox 2.8 Build 4128 [HTTP server+ASP script Interpretation engine]

PHP 5.2.6 [PHP Script Interpretation Engine]

MiniPerl 5.8 [Perl Script Interpreter]

Memcached 1.2.4 [key value memory cache system]

MySQL 5.1.28 [MySQL Database Server]

MySQL 4.0.26 [MySQL Database Server]

PhpMyAdmin [Online MySQL Database Management Tool]

EAccelerator [PHP Script Acceleration Engine]

ZendOptimizer 3.3.3 [PHP Script Acceleration Engine]

OpenSSL 0.9.8h [HTTPS (SSL) secure transport protocol]

Add ons:

- Perl and CGI support (ActivePerl needs to be downloaded):

APMServ 5.2.6 comes with MiniPerl, which can run simple Perl and CGI programs. If you run complex Perl and CGI programs, download ActivePerl and install it in the usr directory under the root directory of the partition where APMServ resides. If the directory where APMServ is located is E: APMServ5.2.6, select the installation path of ActivePerl as E: usr

ActivePerl for Windows

matters needing attention:

Xunlei, Skype, PPLive, BT and other software will occupy port 80 by default after starting, which causes Apache to fail to start. Solution: First close these software, and then start these software after starting APMServ.

Software screenshot:

One main interface:

 Click to browse this picture in a new window

II Virtual host setting interface:

 Click to browse this picture in a new window