Cacti (home)ForumsDocumentation

Configure PHP

  1. Verify the PHP installer properly added C:\PHP\ to your Windows PATH environment variable.
    • The Windows path variable can be accessed via the Control Panel at: System | Advanced | Environment Variables
    • In the System Variables groupbox, find Path and click Edit. Make sure C:\PHP\ is in there somewhere.
  2. Verify the PHP installer properly added a new system variable called PHPRC. Its value should be C:\PHP\.
  3. Add a new system variable called MIBDIRS. Its value should be C:\PHP\Extras\mibs
    1. Refer to step 1 on the location of the System Variables
    2. Under the System variables groupbox, click on New.
    3. In the Variable name field, type MIBDIRS.
    4. In the Variable value field, type C:\PHP\Extras\mibs
    5. Click OK and close the dialog boxes.
  4. Find and then uncomment/modify the following lines in C:\PHP\php.ini.
    fastcgi.impersonate = 1
    register_argc_argv = On
    safe_mode = Off
    cgi.fix_pathinfo = 1
    cgi.force_redirect = 0
    upload_tmp_dir = "C:\PHP\Uploadtemp"
    session.save_path="C:\PHP\Session"
  5. The following resource limits should be changed from their defaults. Depending on the scripts, amount of data being returned and number of devices you use, they might need to be further increased at a later period in time.
    max_execution_time = 60 ; Maximum execution time of each script, in seconds
    max_input_time = 120 ; Maximum amount of time each script may spend parsing request data
    memory_limit = 128M ; Maximum amount of memory a script may consume (8MB)
  6. 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.
  7. 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.
  8. Give the user who will be running the scheduled task, Modify rights to: c:\php\extras\mibs\.index





Personal Tools