Home > Article > Backend Development > PHP5.6 download and installation tutorial under Windows
For web developers, installing PHP is an essential step, and PHP 5.6 version is the version currently used by most websites. This article will introduce how to download and install PHP5.6 in Windows systems.
Step one: Download PHP5.6
Before downloading PHP5.6, you need to determine whether your computer is a 32-bit or 64-bit system. Here we take a 64-bit system as an example.
Open the browser and enter PHP’s official website: http://windows.php.net/download/.
Find the line "PHP 5.6.x VC11 x64 Non Thread Safe" and click the download link to download.
After the download is complete, decompress the compressed package to the directory you want to install, for example, create a php folder in the root directory of the C drive, and move the decompressed folder to the php folder.
Step 2: Configure PHP
Step 3: Configure Apache
If you have not installed Apache, please install Apache first. This article will not go into details.
Add the downloaded and unzipped PHP folder to the system path.
Uncomment this One line, as shown below:
LoadModule rewrite_module modules/mod_rewrite.so
Make changes as follows:
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html
DirectoryIndex index.html index.php
Step 4: Test PHP
phpinfo();
?>
Summary
The above are the detailed steps and precautions for downloading and installing PHP5.6 in Windows systems. If a problem occurs after you install it according to the above steps, you can try to reinstall it, or refer to the online information to troubleshoot. I wish you success in completing your tasks when learning and developing PHP.
The above is the detailed content of PHP5.6 download and installation tutorial under Windows. For more information, please follow other related articles on the PHP Chinese website!