PHP - How To Manually Install PHP on IIS 10.0 for Windows Server 2016

Опубликовано: 04 Октябрь 2024
на канале: CodeCowboyOrg
119,581
923

PHP Demo File Download - http://goo.gl/2gligS



1) Install CGI for IIS
2) Get PHP non thread safe zip package
a. http://windows.php.net/download#php-7.0
b. Unzip PHP put in "C:\PHP7"
c. Give IIS "IUSR_" permissions to folder
3) Edit "php.ini"
a. fastcgi.impersonate = 1
b. cgi.fix_pathinfo=0
c. cgi.force_redirect = 0
d. extension_dir= "ext"
e. error_log=”C:\PHP7\php_errors.log”
f. date.timezone = "UTC"
g. Uncomment extensions required
4) Set PATH variable
5) IIS Settings
a. Add IIS Handler Mappings
b. Add "index.php" to default docs
6) Test command line
a. Possible need to download Visual C++ Redistributable 20xx Links here
http://stackoverflow.com/questions/30...
https://www.microsoft.com/en-us/downl...
7) Test a php web page