Autodesk 15606-011408-9007 Installation Guide - Page 28

Identifying the Correct php.ini File, Editing php.ini, is done for you. However

Page 28 highlights

Identifying the Correct php.ini File PHP checks for php.ini in many different places. You must ensure that the MapGuide version is the one PHP uses. Read the PHP documentation for a complete explanation. The recommended method is to create a system environment variable named PHPRC, and set it to the PHP directory containing php.ini. With the default installation, this is C:\Program Files\MapGuideOpenSource\WebServerExtensions\Php NOTE There may be a Windows registry entry that determines which php.ini will be processed. Check for the key HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath. Delete it if it exists. Editing php.ini When you use the installer program, most of the required PHP configuration is done for you. However, if you run PHP as a CGI process, you must make the following change to php.ini. Change ; cgi.force_redirect = 1 to cgi.force_redirect = 0 The php.ini supplied with MapGuide contains some modifications from the standard php.ini. These modifications increase resource limits to allow the use of larger data sets: output_buffering = 4096 max_execution_time = 60 memory_limit = 64M post_max_size = 64M upload_max_filesize = 64M 24 | Chapter 2 Configuring MapGuide Web Server Extensions on Windows

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38

Identifying the Correct php.ini File
PHP checks for php.ini in many different places. You must ensure that the
MapGuide version is the one PHP uses. Read the PHP documentation for a
complete explanation.
The recommended method is to create a system environment variable named
PHPRC
, and set it to the PHP directory containing php.ini.
With the default installation, this is
C:\Program Files\MapGuideOpenSource\WebServerExtensions\Php
NOTE
There may be a Windows registry entry that determines which php.ini will
be processed. Check for the key
HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath
. Delete it if it exists.
Editing php.ini
When you use the installer program, most of the required PHP configuration
is done for you. However, if you run PHP as a CGI process, you must make
the following change to php.ini. Change
; cgi.force_redirect = 1
to
cgi.force_redirect = 0
The php.ini supplied with MapGuide contains some modifications from the
standard php.ini. These modifications increase resource limits to allow the
use of larger data sets:
output_buffering = 4096
max_execution_time = 60
memory_limit = 64M
post_max_size = 64M
upload_max_filesize = 64M
24
| Chapter 2
Configuring MapGuide Web Server Extensions on Windows