Configure php5 + apache + mysql5 in Windows. 1. install apache. This method is also suitable for most people. you may need to enter serverdomain, adminemail, and other similar things in the next process. you can skip this step, but pay attention to port 1. apache installation. This method is also suitable for most people. you may need to enter server domain, admin email, and other similar things in the next process. you can skip this step, but pay attention to the port selection, by default, only port 80 and port 8080 are available. after the installation is successful, you can modify the listen port as needed. This avoids duplication with the default port 80 of iis. you can select port 8080. If the installation is successful after next, we will not talk about it. Some pots may fail to find the apache service in apache server monitor after installation. the apache-related services cannot be found in msc. I just encountered this problem and the solution was simple: run cmd as an administrator and switch to the $apache2.2#binhttpd.exe-k install directory, an error is prompted, but the service still appears. you can click start to run it. Normally, the installation is successful and testing httped is started. conf... now, the installation of apache is complete. of course, you can test it and open httpd. conf: modify the documentroot configuration section of about 164 rows. I modified it like this: documentroot "c:/". Note that if you haven't done it or are afraid that you cannot find the default httpd. conf can back up one or comment out the configuration section you want to modify. Then find That is, the Directory of the website you want to access, restart apache, and enter http: // localhost: 8080/testing.html in the browser.
2. install the mysql tutorial. It seems that there is nothing to pay attention to when installing mysql, that is, whether remote access is allowed. if you only perform a test, do not select it. if it is a server, consider security issues with caution.
3. install the php Tutorial environment. as mentioned above, after downloading the php environment and decompressing it, create a folder named apahe group under the root directory of the c drive, and create a folder named PHP5 and php-5.3.5-win32-vc9-x86.zip under the apache groupdirectory, so 5 is the version number of the current running environment. Copy all the files in the downloaded package to the php5 folder, find the file named php. ini-production, and rename it php. ini. Open php. ini, find short_open_tag, and change the default value "short_open_tag = off" to "short_open_tag = on", that is, let php support short tag writing, such as when set to off, use An error is reported. Only. Then in php. extension_dir = ". /"change this line to extension_dir =" c:/apache group/php5/ext ", in this way, the php runtime environment can find the location of the extension plug-in according to this directory. Be sure to delete the plug-in before the line. Find the windows extensions configuration module, and search
Extension = php_mbstring.dll
Extension = php_gd2.dll
Extension = php_mysql.dll
Then, run the semicolon ";" to open the support for mysql and other processes in the php environment, so that the php program can perform operations such as database connection tutorial. Finally, find disable_functions = and change it to disable_functions =
Passthru, exec, system, popen, chroot, escapeshellcmd, escapeshellarg, shell_exec, proc_open, proc_get_status. After completion, the php runtime environment address is: c: apache groupphp5, which will be used in subsequent apache configuration.
4. configure apache to support php. Open $ apache2.2 $ confhttpd. conf, find the # loadmodule ssl_module modules/mod_ssl.so line, and add the following lines after it:
# Specify the location of the php. ini file
Phpinidir "c: apache groupphp5"
# Specify the parsing module of the php program
Loadmodule php5_module "c: apache groupphp5php5apache2_2.dll"
# Specify the extension of the file to be parsed
Addtype application/x-httpd-php. php
# Specifying the php source code extension
Addtype application/x-httpd-php-source. phps tutorial
Save and exit. now the running environment of apache + mysql + php5 is set up. you can create a new file phpinfo. php in the Test Directory, which is written: And then access through http: // localhost: 8080/phpinfo. php. If yes
Install http://www.bkjia.com/PHPjc/444802.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/444802.htmlTechArticle1. apache. This method is also suitable for most people. during the next process, you may need to enter server domain, admin email, and other similar things. this can be skipped, but pay attention to the port...