Cacti (home)ForumsDocumentation

Differences

This shows you the differences between two versions of the page.

manual:100:1_installation.2_install_windows.1_configure_php [2016/08/30 01:38]
BSOD2600
manual:100:1_installation.2_install_windows.1_configure_php [2016/09/03 13:02] (current)
BSOD2600
Line 1: Line 1:
 ==== Install PHP ==== ==== Install PHP ====
   - Download the latest version of PHP 7.0 from http://windows.php.net.    - Download the latest version of PHP 7.0 from http://windows.php.net. 
-    * IIS: Get the VC14 x86 or x64 **Non Thread Safe (NTS)** release. 
-    * Apache: Get the VC14 x86 or x64 **Thread Safe (TS)** release. 
   - Extract the ZIP file to C:\PHP\   - Extract the ZIP file to C:\PHP\
   - Add C:\PHP\ to your Windows **PATH** environment variable.   - Add C:\PHP\ to your Windows **PATH** environment variable.
Line 13: Line 11:
 doc_root = C:\inetpub\wwwroot\ doc_root = C:\inetpub\wwwroot\
 expose_php = Off expose_php = Off
-safe_mode = Off 
 extension_dir = C:\PHP\ext extension_dir = C:\PHP\ext
-fastcgi.impersonate 1 +extension=php_gd2.dll 
-fastcgi.logging 0 +extension=php_gmp.dll 
-register_argc_argv On +extension=php_ldap.dll 
-cgi.fix_pathinfo 1 +extension=php_mbstring.dll 
-cgi.force_redirect 0+extension=php_mysqli.dll 
 +extension=php_openssl.dll 
 +extension=php_pdo_mysql.dll 
 +extension=php_snmp.dll 
 +extension=php_sockets.dll 
 +zend_extension=php_opcache.dll 
 upload_tmp_dir = C:\PHP\Uploadtemp upload_tmp_dir = C:\PHP\Uploadtemp
 session.save_path = C:\PHP\Session session.save_path = C:\PHP\Session
 error_log = C:\php\php_errors.txt error_log = C:\php\php_errors.txt
-Date date.timezone = "America/Los_Angeles"  //(set your correct zone from http://php.net/manual/en/timezones.php)//+date.timezone = "America/Los_Angeles"  //(set your correct zone from http://php.net/date.timezone)// 
 +opcache.enable=On 
 +opcache.cli_enable=On
 </code> </code>
-  - Uncomment the following extensions in C:\PHP\php.ini<code> +  - If using IIS, find, uncomment or add the following lines in C:\PHP\php.ini<code> 
-php_gd2.dll +fastcgi.impersonate = 1 
-php_gmp.dll +cgi.fix_pathinfo = 1 
-php_ldap.dll +cgi.force_redirect = 0
-php_mbstring.dll +
-php_mysqli.dll +
-php_pdo_mysql.dll +
-php_snmp.dll +
-php_sockets.dll+
 </code> </code>
- 
-  - Verify PHP is functional by running the following at the command prompt: <code>php -m</code>  
-<note important>Make sure the MySQL, SNMP and Sockets PHP modules are in the list.</note> 
-<note>If messages with, //Cannot find module// appearing, then there is something wrong with the MIBDIRS variable or missing mib files in the PHP\Extras\mib folder.</note> 
-       
  
   - If you have had previous versions of PHP installed, you had likely moved the PHP system files to in the Windows directory structure. If so, you will have to remove those files. Please review your PHP installation documentation for instructions on removing those files.   - If you have had previous versions of PHP installed, you had likely moved the PHP system files to in the Windows directory structure. If so, you will have to remove those files. Please review your PHP installation documentation for instructions on removing those files.
 +  - Verify PHP is functional by running the following at the command prompt: <code>php -m</code> 
 +<note>If messages with, //Cannot find module// are appearing, then there is something wrong with the MIBDIRS variable or missing mib file(s) in the PHP\Extras\mib folder.</note>
 +     
 +==== Configure Permissions ==== 
   - Change NTFS permissions on C:\PHP\Uploadtemp and C:\PHP\Session to grant **Modify** rights to the **IUSR_** and **IIS_WPG** users for only files in the directory.   - Change NTFS permissions on C:\PHP\Uploadtemp and C:\PHP\Session to grant **Modify** rights to the **IUSR_** and **IIS_WPG** users for only files in the directory.
   - Give the user who will be running the scheduled task, **Modify** rights to: c:\php\extras\mibs\.index   - Give the user who will be running the scheduled task, **Modify** rights to: c:\php\extras\mibs\.index





Personal Tools