search
HomeBackend DevelopmentPHP TutorialWindows Apache PHP5 installation detailed tutorial_PHP tutorial
Windows Apache PHP5 installation detailed tutorial_PHP tutorialJul 13, 2016 pm 05:08 PM
apachehttpopensslphp5windowsDowndownloadInstallTutorialofwantdetailed

When downloading apache, remember to download OPENSSL httpd-2.2.19-win32-x86-openssl-0.9.8r.msi Remember to download the PHP that is thread-safe, so that it is easier to build an http service. php tutorial-5.2.17-Win32-VC6-x86.msi The following is reproduced ​ The installation method in this article is applicable to the installation of Apache+PHP+MySQL under Windows XP, and is also applicable to the installation and configuration under Windows 2003 system. 1. Installation environment
The operating system is Windows XP Chinese version. The latest versions of Apache, PHP, and MySQL are as of 2007.09.07 and can be downloaded from their official websites:
*Apache 2.2.6: http://apache.mirror.phpchina.com/httpd/binaries/win32/
* PHP 5.2.4 (Windows Binaries PHP 5.2.4 zip package): http://www.php.net/downloads.php
* MySQL 5.0.45 Windows: http://dev.mysqltutorial.com/downloads/ 2. Installation directory structure planning
In order to facilitate maintenance, you can install the server software on the system disk (C drive) and locate your files to other disks. This is very important for future maintenance. 3. Install Apache 2.2.6
under Windows XP Installation under Windows XP
1. Run the installation program of apache 2.2.6 and click Next according to the prompts. Just fill in any domain name in the Network Domain and Server Name fields of Server Information, such as php.com, and then follow the prompts to complete. 2. At the end of the installation, a DOS window will pop up and then disappear. This is because the system apache has started automatically. 4. Install php 5.2.4
under Windows XP 1. Unzip the downloaded php 5 ZIP package directly. I directly unzipped the PHP 5.2.4 zip file to the d:php directory. It is not recommended to use the win32 installer to install php (mainly because it will be troublesome to install extensions in the future). 2. Enter the php installation directory in the resource manager, copy php.ini-dist or php.ini-recommended, and name it php.ini. Then open php.ini. 3. Found: ;extension=php_mysql.dll Remove the ; sign in front and change it to: extension=php_mysql.dll 4. Found: extension_dir = “./” Change it to the absolute path to the ext subdirectory under your php installation directory. For example, mine: extension_dir = “D:/php/ext/” This step is very important. Otherwise, php will not be able to find the php_mysql.dll module and cannot load it. 5. In "Control Panel"->"System"->"Advanced"->"Environment Variables", find path in "System Variables", edit the variable value of path, and add your php directory D:php , be sure to use a semicolon (;) in front to separate it from the previous value.
5. Configure Apache and PHP Open the httpd.conf file in the conf subdirectory of the Apache installation directory.
1. Find: DocumentRoot “xxxxxxx” Change it to the directory of your local website content. For example mine: DocumentRoot “E:/web” After making the changes, scroll down a little to find "# This should be changed to whatever you set DocumentRoot to.", and then change the following place as well. 2. Find LoadModule and add these two lines in the blank space below according to your php installation directory: LoadModule php5_module “D:/PHP/php5apache2_2.dll”
PHPIniDir "D:/PHP" is no longer needed to prevent the apache server from being unable to start. 3. Find: DirectoryIndex index.html Modify to: DirectoryIndex index.php index.html 4. Find: AddType application/x-gzip .gz .tgz Add these two lines: AddType application/x-httpd-php .php
AddType application/x-httpd-php .html 5. Save httpd.conf
6. In your website directory (for example, mine is E:/Web/), manually create an index.php file with the following content: phpinfo();
?> 7. Start the apache service in the dos window (assuming Apache is installed in C:Program FilesApache Software FoundationApache2.2) #If it was started before, stop it first
C:Program FilesApache Software FoundationApache2.2bin> httpd -k stop
Or: net stop apache2.2 #Start apahce service
C:Program FilesApache Software FoundationApache2.2bin> httpd -k start
Or: net start apache2.2 8. Open http://localhost/index.php to see the test output results. 6. Install MySQL 5.0.45 under Windows XP
The installation of MySQL is relatively simple, it provides a win32 installation package. After downloading, follow the prompts to install. You can also select Custom in the installation type and specify the installation directory. Here, it is installed directly on the C drive by default. After the installation is complete, you will be asked if you want to register on the official website, just skip it. You will then be asked whether to Configure the MySQL Server now, select and continue, and then follow the prompts to set the character set and the password of the root administrator.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629842.htmlTechArticleWhen downloading apache, remember to download OPENSSL’s httpd-2.2.19-win32-x86-openssl-0.9.8r. Remember to make the PHP downloaded by msi thread-safe, so that it is easier to build an http service php tutorial-5.2.17-Win32-VC6-x86.ms...
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
c盘的users是什么文件夹?可以删除吗?c盘的users是什么文件夹?可以删除吗?Nov 10, 2022 pm 06:20 PM

c盘的users是用户文件夹,主要存放用户的各项配置文件。users文件夹是windows系统的重要文件夹,不能随意删除;它保存了很多用户信息,一旦删除会造成数据丢失,严重的话会导致系统无法启动。

启动任务管理器的三个快捷键是什么启动任务管理器的三个快捷键是什么Sep 21, 2022 pm 02:47 PM

启动任务管理器的三个快捷键是:1、“Ctrl+Shift+Esc”,可直接打开任务管理器;2、“Ctrl+Alt+Delete”,会进入“安全选项”的锁定界面,选择“任务管理器”,即可以打开任务管理器;3、“Win+R”,会打开“运行”窗口,输入“taskmgr”命令,点击“确定”即可调出任务管理器。

微软的pin码是什么微软的pin码是什么Oct 14, 2022 pm 03:16 PM

PIN码是Windows系统为了方便用户本地登录而独立于window账户密码的快捷登录密码,是Windows系统新添加的一套本地密码策略;在用户登陆了Microsoft账户后就可以设置PIN来代替账户密码,不仅提高安全性,而且也可以让很多和账户相关的操作变得更加方便。PIN码只能通过本机登录,无法远程使用,所以不用担心PIN码被盗。

window下报错“php不是内部或外部命令”怎么解决window下报错“php不是内部或外部命令”怎么解决Mar 23, 2023 pm 02:11 PM

对于刚刚开始使用PHP的用户来说,如果在Windows操作系统中遇到了“php不是内部或外部命令”的问题,可能会感到困惑。这个错误通常是由于系统无法识别PHP的路径导致的。在本文中,我将为您提供一些可能会导致这个问题的原因和解决方法,以帮助您快速解决这个问题。

windows操作系统的特点包括什么windows操作系统的特点包括什么Sep 28, 2020 pm 12:02 PM

windows操作系统的特点包括:1、图形界面;直观高效的面向对象的图形用户界面,易学易用。2、多任务;允许用户同时运行多个应用程序,或在一个程序中同时做几件事情。3、即插即用。4、出色的多媒体功能。5、对内存的自动化管理。

win10自带的onenote是啥版本win10自带的onenote是啥版本Sep 09, 2022 am 10:56 AM

win10自带的onenote是UWP版本;onenote是一套用于自由形式的信息获取以及多用户协作工具,而UWP版本是“Universal Windows Platform”的简称,表示windows通用应用平台,不是为特定的终端设计的,而是针对使用windows系统的各种平台。

win10为什么没有“扫雷”游戏了win10为什么没有“扫雷”游戏了Aug 17, 2022 pm 03:37 PM

因为win10系统是不自带扫雷游戏的,需要用户自行手动安装。安装步骤:1、点击打开“开始菜单”;2、在打开的菜单中,找到“Microsoft Store”应用商店,并点击进入;3、在应用商店主页的搜索框中,搜索“minesweeper”;4、在搜索结果中,点击选择需要下载的“扫雷”游戏;5、点击“获取”按钮,等待获取完毕后自动完成安装游戏即可。

在windows中鼠标指针呈四箭头时一般表示什么在windows中鼠标指针呈四箭头时一般表示什么Dec 17, 2020 am 11:39 AM

在windows中鼠标指针呈四箭头时一般表示选中对象可以上、下、左、右移动。在Windows中鼠标指针首次用不同的指针来表示不同的状态,如系统忙、移动中、拖放中;在Windows中使用的鼠标指针文件还被称为“光标文件”或“动态光标文件”。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment