How to install php5.3: First download the php installation package from the PHP official website; then extract the compressed file to the "D:\php5\" folder; then modify the php.ini configuration file; finally Just create a new website configuration for testing.
The operating environment of this article: windows7 system, php5.3 version, DELL G3 computer
We use Baidu to search for the keyword "php download", Find and open the PHP official website in the search results.
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.
In the newly opened page, click the "zip" link in the "Thread Safe" column to download the php5 installation package
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).
Find the php.ini-development file in the D:\php5\ directory, open it with Notepad, and search for the "extension_dir" character. Two results will be found. We You 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"
Look 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. [Recommended learning: PHP video tutorial]
Save the modified php.ini-development file as php.ini, and copy a copy to System directory C:\windows directory (if your system is not on the C drive, please operate according to the actual situation).
In this way, the installation of php5 is complete, and you can create a new website configuration for testing. Let’s learn it, everyone!
The above is the detailed content of How to install php5.3. For more information, please follow other related articles on the PHP Chinese website!