I want to build an open-source php Q & A platform on a temporary basis. Since I usually write documents, plot, and develop, I still stick to win7, so I have encountered a lot of troubles. After this, it is so painful to install a dual system. (The installation and configuration files used have been packaged and uploaded to the platform.) 1. To use apachephpmysql integration in windows
I want to build an open-source php Q & A platform on a temporary basis. Since I usually write documents, plot, and develop, I still stick to win7, so I have encountered a lot of troubles. After this, it is so painful to install a dual system. (The installation and configuration files used have been packaged and uploaded to the platform.) 1. To use apachephpmysql integration in windows
I want to build an open-source php Q & A platform on a temporary basis. Since I usually write documents, plot, and develop, I still stick to win7, so I have encountered a lot of troubles. After this, it is so painful to install a dual system.
(The installation files and configuration files used have been packaged and uploaded to the platform)
1) To use apache + php + mysql in windowsIntegrationEnvironment is doomed to my tragedy;
3) If you use apache and php in windows, consider the following: "If you are using PHP with Apache 1 or Apache2 fromApache.org(Not recommended) you need to use the older VC6 versions of PHPcompiled with the legacy Visual Studio 6 compiler. DoNOTUse VC9 + versions of PHP with the apache.org binaries. "the same sentence:" With Apache you have to use the Thread Safe (TS) versions of PHP. "the general idea is:To select php under the VC6 library of thread security (TS). However;
4) Finally, download the corresponding resources from the php and apache image sites and install them;
---------------- I used Notepad when opening and modifying the configuration file. After all, some editors always change the encoding format in disorder ------------
5) after the installation, configure apache, open the http. conf configuration file in the conf folder, and configure it in
# LoadModule vhost_alias_module modules/mod_vhost_alias.so:
#LoadModule vhost_alias_module modules/mod_vhost_alias.soLoadModule php5_module "D:/php5/php5apache2_2.dll"PHPIniDir "D:/php5"AddType application/x-httpd-php .php .html .htm
Pay attention to the slash direction in the absolute path and the double quotation marks, which tell apache about the php path and other data.
6) after installing php, The php5apache2_2.dll file may not exist in the installation directory. You can only search for the php5apache2_2.dll file online, find the corresponding dll file, and directly ctrlC + ctrlV;
7) in php configuration, open the installation directory and find the php. ini-development and php. ini-production files. I chose the develp file and saved it as php. ini;
8) use Notepad to modify the php. ini configuration file: extension_dir = "D:/php5/ext"
9) Remove the semicolon of the following items at the same time:
Extension = php_curl.dll
Extension = php_gd2.dll
Extension = php_mbstring.dll
Extension = php_mysql.dll
Extension = php_mysqli.dll
Extension = php_pdo_mysql.dll
Extension = php_xmlrpc.dll
10) after the configuration file is complete, open cmd as an administrator, go to the apache bin path, httpd-k install, and add apache to the system service (which has already been added during the installation process );
11) net start apache2.2 in cmd, start it, copy the php code to the htdoc directory of apache, select localhost in the address bar, and finally it appears !!!!
Note 1: If the VC version does not match php or apache, an error may be returned: specific error 1. In fact, you can see the following in the Windows event: Cannot load D: /php5/php5apache2_2.dll into server: \ xd5 \ xd2 \ xb2 \ xbb \ xb5 \ xbd \ xd6 \ xb8 \ xb6 \ xa8 \ xb5 \ xc4 \ xc4 \ xa3 \ xbf \ xe9 \ xa1 \ xa3.
NOTE 2: If the following error occurs: httpd: cocould not reliably determine the server's fully qualified domain name, remove the apache configuration file httpd. "#" before "# ServerName f: 80" in conf.
LZ uses 64-bit win7, and the installed apache and php are both 32-bit. The more I want to get better, the more I need to package and upload the required materials to my resources for future use, it's really hard to find something old.
Is it necessary to switch to php? Various product \ design \ development assistants ~~
Address: http://download.csdn.net/detail/koterror/8170619