Home >Backend Development >PHP Tutorial >PHP installation guide: NT + Apache + PHP3_PHP tutorial

PHP installation guide: NT + Apache + PHP3_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:08:03746browse

This article only discusses how to install Apache+PHP3 under Windows NT 4.0 or Windows 2000.
The Apache I use is apache_1_3_12_win32.exe.
Note that you must install PHP3 first. For the installation of PHP3, please refer to the related articles introduced earlier.
2. Install Apache
1. Double-click the downloaded Apache executable file (such as apache_1_3_12_win32.exe) to install. During installation, you can choose the installation destination. The default is C:Program FilesApache GroupApache.
2. Modify C:program filesApache GroupApacheconfhttpd.conf: Port 80
Set the port number used when Apache Web Server is running. Since my IIS here is also running, IIS uses port 80, so I set it Change it to Port 8080. At this time, I can access the Apache Web Server by entering http://localhost:8080/ on the browser, and I can access IIS by entering http://localhost/, so that both Web Servers can be used. Oh. Note that we cannot use some port numbers that are already used by other applications. For example, the port number of Telnet is 23, the port number of FTP is 21, the port number of DNS is 53, etc.
ServerAdmin you@your.address Set up the administrator's mailbox. When there is a problem with the server, it will send the problem to the administrator's mailbox. I changed it here to pert@21cn.com
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs"
Set the document root directory. When you enter http://localhost:PORT port number/ on the browser, the server will read data from the document root directory. , of course you can also change it to a directory you like, for example: DocumentRoot "D:/phproot".

Note: If you want to change the path specified by DocumentRoot, then the same changes must be made in the two identical places in httpd.conf.
 

Change this to , here it is
< ;Directory "D:/phproot">
DirectoryIndex index.html
Set the default document. In order to support php3, I changed it to DirectoryIndex
index.html index.htm index.php3 index.php index.phtml
3. In order to use PHP, you should also add a paragraph similar to the following to the end of the C:program filesApache GroupApacheconfhttpd.conf file:
ScriptAlias ​​/php3/ "c:/php3/"
AddType application/x-httpd-php3 .php3 .php .phtml
Action application/x-httpd-php3 "/php3/php.exe"
Note that c:/php3/ should be changed to your PHP directory , and use / instead.
4. After Apache is installed, there is a shortcut in the Start menu group. Run Install Apache as a service. In this case, there will be an additional service named Apache in the NT service. You can use it to start or stop the Apache service. .
5. Start the Apache service. The installation is complete. I wish you good luck.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629876.htmlTechArticleThis article only discusses how to install Apache+PHP3 under Windows NT 4.0 or Windows 2000. The Apache I use is apache_1_3_12_win32.exe. Note that you need to install PHP3 first. For information on PHP3 installation, please check...
Statement:
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