Install APACHE_PHP tutorial

WBOY
Release: 2016-07-21 15:57:40
Original
818 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 enter http://localhost in IE. If you see a page that says it works, it means APACEH is running. Normal
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:
Place the php directory Rename php.ini-dist to php.ini and copy it 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
Add

** on the next line of #LoadModule ssl_module 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
In AddType Add
AddType application/x-httpd-php .php to the next line of application/x-gzip .gz .tgz
Save
Write the simplest PHP page with only one line of code

Save as test.php and put this file in

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/317825.htmlTechArticleFirst stop the IIS installed on the machine (if it is started, because the default installation of APACHE also uses port 80, no There will be conflicts if you stop it) Download apache_2.2.3-win32-x86-no_ssl from the official website of APACHE, double...
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!