The Windows hệ thống installation of PHP. running IIS is much simpler than on Unix, since it involves a precompiled binary rather than a source build.
Bạn đang xem: How to download & install php 7
If you plan lớn install PHPhường over Windows, then here is the danh mục of prerequisites −
A working PHP-supported Web hệ thống. Under previous versions of PHP, IIS/PWS was the easiest choice because a module version of PHP.. was available for it; but PHP.. now has added a much wider selection of modules for Windows.
A correctly installed PHP-supported database lượt thích MySQL or Oracle etc. (if you plan to use one)
A utility to unzip files (search http://download.cnet.com for PC tệp tin compression utilities)
Now here are the steps to install Apabít và PHP5 on your Windows machine. If your PHP.. version is different then please take care accordingly.
Extract the binary archive sầu using your unzip utility; C:PHPhường is a common location.
Copy some .dll files from your PHP. directory lớn your systems directory (usually C:WinntSystem32). You need php5ts.dll for every case. You will also probably need khổng lồ copy the tệp tin corresponding to lớn your Web VPS module - C:PHPSapiphp7isapi.dll. It is possible you will also need other files from the dlls subthư mục, but start with the two files mentioned above & add more if you need them.
Copy either the php.ini-development or php.ini-recommended (preferably the latter) to lớn your Windows directory (C:Winnt or C:Winnt40), and rename it php.ini. mở cửa this file in a text editor (for example, Notepad). Edit this file to get the configuration directives. We highly recommover the new users lớn phối error-reporting khổng lồ E_ALL on their development machines at this point. For now, the most important thing is the doc_root directive under the Paths và Directories section. Make sure this matches the IIS Inetpub folder (or wherever you plan to serve out of).
Stop and restart the WWW service. Go to lớn the Start menu → Settings → Control Panel → Services. Scroll down the list to lớn IIS Admin Service. Select it & cliông chồng Stop. After it stops, select the World Wide Web Publishing Service và clichồng Start. Stopping & restarting the service from within the Internet Service Manager will not suffice. Since this is Windows, you may also wish lớn reboot.
mở cửa a text editor. Type: . Save this file in your Web server"s document root as info.php.
Start any Web browser and browse the file. You must always use an HTTPhường request (http://www.testdomain name.com/info.php or http://localhost/info.php or http://127.0.0.1/info.php) rather than a filename (/home/httpd/info.php) for the file to lớn be parsed correctly.
You will see a long table of information about your new PHPhường installation message Congratulations!