BugFree configuration: enables Apache and PHP to work. Recently, due to work needs, we need to configure a defect management tool. based on the free requirements, we have prioritized bugFree. The overall feeling is that although free is attractive, there is a lack of documentation, especially recently, due to work needs, we need to configure a defect management tool. based on the free requirements, we have prioritized bugFree. The overall feeling is that although free is attractive, there is a lack of documentation, especially when the forum is not in place, it is always a fatal injury to open-source software. beginners want to use it. However, the lack of complicated configuration processes and documents will make it difficult for beginners. Let's not talk about it. The following is my configuration process. I hope I can give you some reference.
1. software preparation and configuration
1.1 Apache
The apache_2.2.14-win32-x86-openssl-0.9.8k.msi is used here, and the installation directory is: C: \ Apache2.2, where the domain and server during installation can be configured with a local ip or localhost. After the installation is complete, enter http: // localhost/in the browser. if "It Works" appears, It indicates that Apache is successfully installed.
1.2 PHP:
Php-5.2.12-win32-vc6-x86.zip is used here. when downloading php-5.2.12-win32-vc6-x86.zip, you should note that php has many versions, specifically for IIS, and Apache. to install it on Apache, you need to download VC6 X86. if you want to install it on IIS, download VC9 x86. However, you must download php-5.2.12-win32-vc6-x86.zip. otherwise, php5ts. dll cannot be found. This file is for Apache in Windows.
The installation directory is C: \ PHP. after installing PHP, you need to modify the environment variable: My computer -- properties -- advanced -- environment variable. double-click "Path" to add C: \ PHP; C: \ PHP \ ext
Find "PHP. ini-dist "or" php. ini-recommended. ini ", copy to" C: \ WINDOWS.
Search; change extension_dir to extension_dir = "c: \ php \ ext"; the directory here is the installed PHP directory, and ext contains some PHP extension files, some of them need to be loaded at runtime, such as mysql. Remove the semicolon.
Copy php5ts. dll from the php directory to the "C: \ WINDOWS \ system32" directory.
Copy "php_gd2.dll" and "php_mysql.dll" under the php \ ext directory to the "C: \ WINDOWS \ system32" directory.
1.3
We need to configure PHP to work under Apache.
The procedure is as follows:
Modify httpd. conf of apache: find the "httpd. conf" file under \ Apache2.2 \ conf (you 'd better back up it in advance ). Find DocumentRoot and change it to the root directory of your website, such as "DocumentRoot" E:/Apache2/htdocs "";
Query # LoadModule foo_module modules/mod_foo.so, and add the following content after the text section:
LoadFile "C:/PHP/php5ts. dll"
LoadFile "C:/PHP/libmysql. dll"
PHPIniDir "C:/PHP /"
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
Find AddType application/x-compress. Z AddType application/x-gzip. gz. tgz and append AddType application/x-httpd-php. php.
Next, change the website directory: DocumentRoot "C:/Apache2.2/htdocs"
Change Default Page: find DirectoryIndex index.html. var and add index. php
Write an index. php file under the configured web root (/Apache2/htdocs by default) and add
Copy to ClipboardReference: [www.bkjia.com] Echo "hello! ";
?>
Enter http: // 127.0.0.1: 8080/index. php in the browser
Output hello !, It indicates that PHP can work normally on Apache.
Author: Shane
Source: http://bluescorpio.cnblogs.com
...