Install Apache Install APACHE

WBOY
Release: 2016-07-29 08:36:10
Original
1163 people have browsed it

First, stop the IIS installed on the machine (if it is started, because the default installation of APACHE is also port 80, there will be conflicts if it is not stopped)
Download apache_2.2.3-win32-x86-no_ssl from the official website of APACHE, double-click to install , it is best not to install in a path with spaces. You can install it under c:apache2. Start APACHE and type in http://localhost in IE. If you see a page that says "it works", it means that APACEH is running normally. 2. Install PHP5
Download php-5.2.0-Win32.zip from the PHP official website, unzip it and change the directory name to php, copy it to C:
Rename php.ini-dist in the php directory to php.ini Copy to c:windows (or:winnt depending on the operating system), copy php5ts.dll and libmysql to c:windowssystem32
3. Let APACHE run the PHP program
Modify the c:apaceh2confhttpd.conf file
In #LoadModule ssl_module Add
** to the next line of modules/mod_ssl.so (note that if your APACHE is version 2.2, add the following sentence)
LoadModule php5_module c:/php/php5apache2_2.dll
(note that if your APACHE is version 2.0 Add the following sentence)
LoadModule php5_module c:/php/php5apache2.dll
Add
AddType application/x-httpd-php .php on the next line of AddType application/x-gzip .gz .tgz
Save
Write Take the simplest PHP page, which only has one line of code. Save it as test.php and put this file in

The above has introduced the installation of Apache, including the installation of Apache. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template