Home > Article > Backend Development > How to install php tutorial
Recommended: 1. PHP installation and configuration tutorial (latest) 2. PHP training online
#1. We use Baidu to search for the keyword "php download", find and open the PHP official website in the search results.
2. On the "downloads" page of the website, find the php5.6 version (the installation method is the same as 5.3), and click the "Windows downloads" link.
3. On the newly opened page, click the "zip" link in the "Thread Safe" column to download the php5 installation package
4. Double-click to open the downloaded installation package, and extract the compressed file to the D:\php5\ folder (the directory can be modified as needed, but it is best not to contain Chinese characters, spaces, or special symbols).
5. Find the php.ini-development file in the D:\php5\ directory, open it with Notepad, and search for the "extension_dir" character. You will find two results. , we need to find extension_dir under "On windows:", remove the preceding semicolon, and modify it according to the actual path of the PHP directory, here it is modified to: extension_dir = "D:/php5/ext"
6. Search for "extension=php_", delete the semicolon before the corresponding function package as needed, and enable the corresponding function package. You can also wait until the later opening needs it before turning it on. If you are confused, delete all previous distinctions.
7. Save the modified php.ini-development file as php.ini, and copy a copy to the system directory C:\windows directory (if your The system is not on the C drive, please operate according to the actual situation).
Recommended tutorial: PHP video tutorial
The above is the detailed content of How to install php tutorial. For more information, please follow other related articles on the PHP Chinese website!