ArticleDirectory
- Software Download
- Install Apache 64-bit
- Install PHP 64-bit
Introduction: This is a detailed page for 64-bit Apache + PHP + MySQL configuration. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 330427 'rolling = 'no'>
Software Download
Currently, no official 64-bit version is available for Apache and PHP.
Apache 64-bit:
Http://www.blackdot.be /? INC = Apache/Binaries
PHP 64-bit:
Http://www.ubv.cn/custom/file_download/php-5.2.5-x64-2007-11-12.zip
MySQL 64-bit:
Http://dev.mysql.com/downloads/mysql/
Install Apache 64-bit
1. Extract
Decompress the downloaded httpd-2.2.17-win64.rar package to a directory, such as D: \ apache2.2.
2. Edit the configuration file D: \ apache2.2 \ conf \ httpd. conf to make the following changes. [Note that the Left slash must be used in the path ]:
Serverroot "/httpd-2.2-x64" changed
Serverroot "D:/apache2.2"
Change Listen 80
Listen 8080 # port. If IIS is enabled, port 80 cannot be used.
DocumentRoot "/httpd-2.2-x64/htdocs" changed
DocumentRoot "D:/apache2.2/htdocs" # path for storing website files
Change directoryindex index.html
Directoryindex index.html index.htm index. php # Add the index. php and PHP development pages.
ScriptAlias/cgi-bin/"/httpd-2.2-x64/cgi-bin/" changed
ScriptAlias/cgi-bin/"D:/apache2.2/cgi-bin /"
<Directory "/httpd-2.2-x64/htdocs"> changed
<Directory "D:/apache2.2/htdocs">
<Directory "/httpd-2.2-x64/cgi-bin"> changed
<Directory "D:/apache2.2/cgi-bin">
Remove the # Before loadmodule rewrite_module modules/mod_rewrite.so
Remove the include/_ httpd/test. conf line.
3. Execute the installation command:
Enter D: \ apache2.2 \ bin
Run the following command: httpd.exe-K install (add Apache to the System Service. The default service name is apache2.2)
Run the command: httpd.exe-K start (run the Service)
You can use D: \ apache2.2 \ bin \ apachemonitor.exe to enable, disable, restart, and monitor the service.
4. test whether the installation is successful.
Open your browser and enter http: // localhost: 8080 to display it works! Description successful!
Install PHP 64-bit
1. Copy the php-5.2.5 (x64) folder in the downloaded PHP installation package php-5.2.5-x64-2007-11-12.zip to a path, such as D: \ PHP
2. modify the configuration file D: \ apache2.2 \ conf \ httpd. conf.
Add the following to the line # loadmodule vhost_alias_module modules/mod_vhost_alias.so:
Loadmodule php5_module "D:/PHP/php5apache2_2.dll"
Phpinidir "D:/PHP"
Add the following content to addtype application/X-gzip. GZ. tgz:
Addtype application/X-httpd-PHP. php
Addtype application/X-httpd-PHP. html #. html,. php can be an extension of the executable PHP language
3. Copy the following file to c: \ windows \ system32
D: \ PHP \ php5ts. dll
D: \ PHP \ php5isapi. dll
D: \ PHP \ php5apache2_2.dll
D: \ PHP \ ext \ php_mysql.dll
D: \ PHP \ ext \ php_mysqli.dll
D: \ PHP \ libmysql. dll
4. Copy D: \ PHP. ini-recommended to D: \ PHP. ini and make the following changes:
Modify extension_dir = "./"
Extension_dir = "Ext" # specify the directory of the dynamic Connection Library
Remove the semicolon (comment) before extension = php_mysql.dll
5. test whether the installation is successful.
Modify the D: \ apache2.2 \ htdocs \ index.html file and add: <? PHP echo phpinfo ();?>
Restart the HTTPd service and enter the URL: http: // loalhost: 8080. The PHP information is displayed, indicating that the request is successful!
Install MySQL 64-bit
No more details
Install phpMyAdmin
<! -- Endfragment -->
More articles on "64-bit Apache + PHP + MySQL configuration"
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/330427.html pageno: 11.