home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 May / PCWorld_2002-05_cd.bin / Komunik / php / php-4.1.2-installer.exe / INSTALL.TXT < prev    next >
Encoding:
Text File  |  2002-03-11  |  25.3 KB  |  628 lines

  1. PHP/Windows Installation Notes
  2. ==============================
  3.  
  4. Installation on Windows 9x/Me/NT/2000/XP systems
  5. =============================================
  6.  
  7. There are two main ways to install PHP for Windows: either
  8. manually or by using the InstallShield installer.
  9.  
  10.  
  11. Windows InstallShield
  12. =====================
  13.  
  14. The Windows PHP installer is available from the downloads page at
  15. www.php.net. This installs the CGI version of PHP and, for IIS, PWS,
  16. and Xitami, configures the web server as well.
  17. Note that this version does *NOT* install any extensions or server
  18. api versions of PHP.
  19.  
  20. Install your selected HTTP server on your system and make sure
  21. that it works.
  22.  
  23. Run the executable installer and follow the instructions provided by
  24. the installation wizard. Two types of installation are supported -
  25. standard, which provides sensible defaults for all the settings it
  26. can, and advanced, which asks questions as it goes along.
  27.  
  28. The installation wizard gathers enough information to set up the
  29. php.ini file and configure the web server to use PHP.
  30. For IIS and also PWS on NT Workstation, a list of all the
  31. nodes on the server with script map settings is displayed, and you
  32. can choose those nodes to which you wish to add the PHP script
  33. mappings.
  34.  
  35. Once the installation has completed the installer will inform you
  36. if you need to restart your system, restart the server, or just
  37. start using PHP.
  38.  
  39. Windows Manual installation from zip binary distribution
  40. ========================================================
  41.  
  42. This install guide will help you manually install and configure
  43. PHP on your Windows 9x/Me/NT/2000/XP webservers. This guide was compiled by
  44. Bob Silva. The original version can be found at
  45. http://www.umesd.k12.or.us/php/win32install.html
  46.  
  47. This guide provides manual installation support for:
  48. Personal Web Server 3 and 4 or newer
  49. Internet Information Server 3 and 4 or newer
  50. Apache 1.3.x
  51. OmniHTTPd 2.0b1 and up
  52. Oreilly Website Pro
  53. Xitami
  54. Netscape Enterprise Server, iPlanet
  55.  
  56. PHP 4 for Windows comes in two flavours - a CGI executable (php.exe),
  57. and several SAPI modules (for exapmle php4isapi.dll). The latter form
  58. is new to PHP 4, and provides significantly improved performance and
  59. some new functionality. However, please note that the SAPI modules
  60. are *NOT* yet considered to be production quality.
  61. In particular, with the ISAPI module, you are likely to encounter serious
  62. reliability problems especially on platforms older than W2K - you may
  63. witness a lot of server 500 errors and suffer from other server modules
  64. such as ASP also failing. You have been warned!
  65.  
  66. The reason for this is that the PHP SAPI modules are using the
  67. thread-safe version of the PHP code, which is new to PHP 4, and has
  68. not yet been tested and pounded enough to be considered completely
  69. stable, and there are actually a few known bugs. On the other hand,
  70. some people have reported very good results with the SAPI modules,
  71. and there a few reports of problems with the Apache module version.
  72. In short - your mileage may vary; If you need
  73. absolute stability, trade the performance of the SAPI modules
  74. with the stability of the CGI executable.
  75.  
  76. If you choose one of the SAPI modules and use Windows 95, be sure
  77. to download the DCOM update from
  78. http://download.microsoft.com/msdownload/dcom/95/x86/en/dcom95.exe"
  79. For the ISAPI module, an ISAPI 4.0 compliant Web server
  80. is required (tested on IIS 4.0, PWS 4.0 and IIS 5.0). IIS 3.0 is
  81. *NOT* supported; You should download and install the Windows NT 4.0
  82. Option Pack with IIS 4.0 if you want native PHP support.
  83.  
  84. The following steps should be performed on all installations
  85. before the server specific instructions.
  86.  
  87. Extract the distribution file to a directory of your choice.
  88. C:\PHP\ is a good start.
  89.  
  90. You need to ensure that the dlls which php uses can be found. The precise
  91. dlls involved depend on which web server you use and whether you want to
  92. run php as a cgi or as a server module. php4ts.dll is always used. If you are
  93. using a server module (e.g. isapi or apache) then you will need the relevent
  94. dll from the sapi folder. If you are using any php extension dlls then you
  95. will need those as well. To make sure that the dlls can be found, you can
  96. either copy them to the system directory (e.g. winnt/system32 or
  97. windows/system) or you can make sure that they live in the same directory
  98. as the main php executable or dll your web server will use (e.g. php.exe,
  99. php4apache.dll).
  100.  
  101. Copy the file, php.ini-dist to your %WINDOWS% directory on
  102. Windows 95/98 or to your %SYSTEMROOT% directory under Windows NT,
  103. Windows 2000 or Windows XP and rename it to php.ini. Your %WINDOWS% or
  104. %SYSTEMROOT% directory is typically:
  105. c:\windows for Windows 95/98
  106. c:\winnt or c:\winnt40 for NT/2000/XP servers
  107.  
  108. Edit your php.ini file:
  109.  
  110. You will need to change the 'extension_dir' setting to
  111. point to your php-install-dir, or where you have placed
  112. your 'php_*.dll' files. ex: c:\php
  113.  
  114. If you are using OmniHTTPd, do not follow the next step.
  115. Set the 'doc_root' to point to your webservers
  116. document_root. ex: c:\apache\htdocs or c:\webroot
  117.  
  118. Choose which extensions you would like to load when PHP
  119. starts, noting that several extensions are already built
  120. into the Windows release, see the section about
  121. Windows extensions for details of the built-in extensions.
  122. You can uncomment the: 'extension=php_*.dll' lines
  123. in php.ini to load these extensions.
  124.  
  125. Note that on a new installation it is advisable to first get
  126. PHP working and tested without any extensions before enabling
  127. them in php.ini.
  128.  
  129. On PWS and IIS, you can set the browscap.ini
  130. to point to: 'c:\windows\system\inetsrv\browscap.ini' on
  131. Windows 9x/Me and 'c:\winnt\system32\inetsrv\browscap.ini'
  132. on NT/2000/XP Server.
  133.  
  134. More information on the capabilities of browscap can be found here:
  135.  
  136. http://www.php.net/manual/en/function.get-browser.php
  137.  
  138. Note that the mibs directory supplied with the Windows distribution
  139. contains support files for SNMP. This directory should be moved to
  140. DRIVE:\usr\mibs (DRIVE being the drive where PHP is installed.)
  141.  
  142.  
  143. Installation of Windows extensions
  144. ==================================
  145.  
  146. After installing PHP and a webserver on Windows, you will
  147. probably want to install some extensions for added functionality.
  148. The following table describes some of the extensions available. As
  149. described in the manual installation steps, you can choose which
  150. extensions you would like to load when PHP starts by uncommenting the:
  151. extension=php_*.dll' lines in php.ini.
  152.  
  153.  
  154. ATTENTION! ATTENTION! ATTENTION!
  155. Some extra DLLs are required for some PHP extensions. Please copy the
  156. bundled dlls from the 'dlls/' directory in distribution package to your
  157. windows/system (Win9.x) or winnt/system32 (WinNT, Win2000, XP) directory.
  158. If you already have these DLLs installed on your system,
  159. overwrite them only if something is not working correctly.
  160. Before overwriting them, it is a good idea to backup them or move them to
  161. another folder - just in case something goes wrong.
  162.  
  163. Download the latest version of the Microsoft Data Access Components (MDAC)
  164. for your platform, especially Microsoft Windows 9x/NT4 users.
  165. MDAC is available at http://www.microsoft.com/data/ .
  166.  
  167. Also note that some extensions need 3rd party libraries,
  168. e.g. php_oci8.dll needs the Oracle 8 client libraries to be installed
  169. on your system. These are not bundled with PHP distribution.
  170. ATTENTION! ATTENTION! ATTENTION!
  171.  
  172.  
  173. The DLLs for PHP extensions are prefixed with 'php_'. This
  174. prevents confusion between PHP extensions and their supporting
  175. libraries.
  176.  
  177. Note:
  178. In PHP 4.0.5 MySQL, ODBC, FTP, Calendar, BCMath, COM, PCRE,
  179. Session, WDDX and XML support is built-in. You don't need to
  180. load any additional extensions in order to use these functions.
  181.  
  182. Examples of PHP Extensions
  183.  
  184. php_dbase.dll dBase functions
  185. php_filepro.dll Read-only access to Filepro databases
  186. php_gd.dll GD library functions for GIF manipulation
  187. php_hyperwave.dll HyperWave functions
  188. php_imap.dll IMAP functions
  189. php_ldap.dll LDAP functions
  190. php_mssql.dll MSSQL client (requires MSSQL DB-Libraries)
  191. php_snmp.dll SNMP get and walk functions (NT only!)
  192. php_zlib.dll ZLib compression functions
  193.  
  194. For more information see the section about Windows extensions at
  195. http://www.php.net/manual/en/install-windows.php#install.windows.extensions
  196.  
  197.  
  198. Web server configuration
  199. ========================
  200.  
  201. Due to a security issue with PHP on various win32 webservers, we have 
  202. enabled functionality to disable calls to the php binary directly. This 
  203. has meant we have 2 new php ini lines:
  204.  
  205.     cgi.force_redirect 0|1
  206.     cgi.redirect_status_env ENV_VAR_NAME
  207.  
  208. if cgi.force_redirect is turned on, and you are not running under Apache or Netscape 
  209. (iPlanet) web servers, you MAY need to set an environment variable name that PHP
  210. will look for to know it is OK to continue execution.  Setting this variable MAY
  211. cause security issues, KNOW WHAT YOU ARE DOING FIRST.
  212.  
  213. if you are unsure, set cgi.force_redirect to 1, and see if your scripts execute.
  214.  
  215. Installing PHP on Windows with Apache 1.3.x
  216.  
  217. There are two ways to set up PHP to work with Apache 1.3.x
  218. on Windows. One is to use the CGI binary (php.exe),
  219. the other is to use the Apache module dll. In either case
  220. you need to stop the Apache server, and edit your
  221. srm.conf or httpd.conf to configure Apache to work with PHP.
  222.  
  223. Although there can be a few variations of configuring PHP
  224. under Apache, these are simple enough to be used by the
  225. newcomer. Please consult the Apache Docs for further
  226. configuration directives.
  227.  
  228. Now that version 4.1 introduces a safer sapi module, we recommend
  229. that you configure PHP as a module in Apache.
  230.  
  231. To do this, you should move php4ts.dll to the windows/system (for Windows 9x/Me)
  232. or winnt/system32 (for Windows NT/2000/XP) directory, overwriting any
  233. older file. Then you should add the following three lines to your Apache
  234. conf file: (swap c:/php/ for your PHP install path)
  235.  
  236. LoadModule php4_module c:/php/sapi/php4apache.dll
  237. AddModule mod_php4.c
  238. AddType application/x-httpd-php .php
  239.  
  240. If you wish to install PHP as a CGI binary, (the sapi is much better)
  241. you need to enable the apache security fix in your php.ini by 
  242. setting cgi.force_redirect = 1. Then, insert these lines to your conf file:
  243.  
  244. ScriptAlias /php/ "c:/php/"
  245. AddType application/x-httpd-php .php
  246. Action application/x-httpd-php "/php/php.exe"
  247.  
  248. As a further precaution, we recommend you change the "/php/"
  249. ScriptAlias to something more random, to prevent any attempts to 
  250. call your binary (like the Code Red scripts) for returning a response
  251. other than 404.
  252.  
  253. Remember when you have finished to restart the server, for example,
  254. NET STOP APACHE
  255. followed by
  256. NET START APACHE
  257.  
  258. To use the source code highlighting feature, add the following
  259. line to your apache httpd.conf file:
  260.  
  261. AddType application/x-httpd-php-source .phps
  262.  
  263. Note, this will only work when you install php as a sapi module.
  264. If you wish to use this feature with the cgi binary, create a new
  265. file, and use the show_source("path/to/original_file.php"); function.
  266.  
  267. On Win-Apache all backslashes in a path statement such
  268. as: "c:\directory\file.ext", must be converted to
  269. forward slashes.
  270.  
  271. ----------------------------------------------------------
  272.  
  273. Installing PHP on Windows with IIS/PWS
  274.  
  275. This section contains notes and hints specific to IIS (Microsoft
  276. Internet Information Server). Installing PHP for PWS/IIS 3 and
  277. PWS/IIS 4 or newer versions.
  278.  
  279. Windows and PWS/IIS 3 - including PWS on Win 9x/ME
  280.  
  281. The recommended method for configuring these servers is to use
  282. the REG file incuded with the distribution (pws-php4cgi.reg).
  283. You may want to edit this file and make sure the extensions and PHP
  284. install directories match your configuration - once you have done
  285. this, just double click on the file and it will update your registry.
  286. Alternatively, you can follow the steps below to do it manually.
  287.  
  288. WARNING:
  289. These steps involve working directly with the Windows
  290. registry. One error here can leave your system in an unstable
  291. state. We highly recommend that you back up your registry
  292. first. The PHP Development team will not be held responsible if
  293. you damage your registry.
  294.  
  295. Run Regedit.
  296. Navigate to:
  297. HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/W3Svc/Parameters/ScriptMap
  298. On the edit menu select: New->String Value.
  299. Type in the extension you wish to use for your php scripts. ex: .php
  300. Double click on the new string value and enter the path to
  301. php.exe in the value data field.
  302. ex: c:\php\php.exe
  303. Repeat these steps for each extension you wish to associate
  304. with PHP scripts.
  305.  
  306. The following steps do not affect the web server installation and only
  307. apply if you want your php scripts to be executed when they are run
  308. from the command line (ex. run c:\myscripts\test.php) or by double
  309. clicking on them in a directory viewer window. You may wish to skip
  310. this step as you might prefer the php files to load into a text
  311. editor when you double click on them.
  312.  
  313. Now navigate to: HKEY_CLASSES_ROOT
  314. On the edit menu select: New->Key
  315. Name the key to the extension you setup in the previous
  316. section. ex: .php
  317. Highlight the new key and in the right side pane, double click
  318. the "default value" and enter phpfile.
  319. Repeat the last step for each extension you set up in the
  320. previous section.
  321. Now create another New->Key under
  322. HKEY_CLASSES_ROOT and name it phpfile
  323. Highlight the new key 'phpfile' and in the
  324. right side pane, double click the "default value" and enter
  325. PHP Script.
  326. Right click on the 'phpfile' key and select
  327. New->Key, name it Shell.
  328. Right click on the 'Shell' key and select
  329. New->Key, name it open.
  330. Right click on the 'open' key and select
  331. New->Key, name it command.
  332. Highlight the new key 'command' and in the
  333. right side pane, double click the "default value" and enter
  334. the path to php.exe ex: c:\php\php.exe -q %1
  335. (don't forget the '%1').
  336. Exit Regedit.
  337. If using PWS on Windows, reboot to reload the registry.
  338. PWS and IIS 3 users now have a fully operational system. IIS 3
  339. users can use a nifty tool available at
  340. http://www.genusa.com/iis/iiscfg.html
  341. from Steven Genusa to configure their script maps.
  342.  
  343. Windows NT/2000/XP and IIS 4 or newer and PWS 4 on NT Workstation or W2K non server editions
  344.  
  345. To install PHP on an NT/2000/XP Server running IIS 4 or newer,
  346. follow these instructions. You have two options to set up
  347. PHP, using the CGI binary (php.exe) or with the ISAPI module.
  348.  
  349. In either case, you need to start the Microsoft Management
  350. Console (may appear as 'Internet Services Manager', either
  351. in your Windows NT 4.0 Option Pack branch or the Control
  352. Panel=>Administrative Tools under Windows 2000). Then
  353. right click on your Web server node (this will most probably
  354. appear as 'Default Web Server'), and select 'Properties'.
  355.  
  356. If you want to use the CGI binary, do the following:
  357. Under 'Home Directory', 'Virtual Directory', or
  358. 'Directory', click on the 'Configuration' button,
  359. and then enter the App Mappings tab.
  360.  
  361. Click Add, and in the Executable box, type:
  362. c:\php\php.exe (assuming that you have unzipped PHP in c:\php\).
  363.  
  364. In the Extension box, type the file name extension you want
  365. associated with PHP scripts. Leave 'Method exclusions'
  366. blank, and check the Script engine checkbox. You may also
  367. like to check the 'check that file exists' box - for a small
  368. performance penalty, IIS (or PWS) will check that the script
  369. file exists and sort out authentication before firing up php.
  370. This means that you will get sensible 404 style error messages
  371. instead of cgi errors complaing that php did not output any data.
  372.  
  373. You must repeat from 'Click Add...' for each extension you
  374. want associated with PHP scripts.
  375. (.php is recommended. although .phtml and .php3 may be
  376. required for legacy applications.)
  377.  
  378. Set up the appropriate security. (This is done in Internet
  379. Service Manager), and if your NT Server uses NTFS file system,
  380. add execute rights for I_USR_ to the directory that contains
  381. php.exe
  382.  
  383. To use the ISAPI module, do the following:
  384.  
  385. If you don't want to perform HTTP Authentication using PHP,
  386. you can (and should) skip this step. Under ISAPI Filters,
  387. add a new ISAPI filter. Use PHP as the filter name, and
  388. supply a path to the php4isapi.dll.
  389.  
  390. Under 'Home Directory', click on the 'Configuration' button.
  391. Add a new entry to the Application Mappings. Use the path
  392. to the php4isapi.dll as the Executable, supply .php as the
  393. extension, leave Method exclusions blank, and check the
  394. Script engine checkbox.
  395.  
  396. Stop IIS completely (net stop iisadmin)
  397. Start IIS again (net start w3svc)
  398.  
  399. ----------------------------------------------------------
  400.  
  401. Installing PHP on Windows with OmniHTTPd Server
  402.  
  403. This section contains notes and hints specific to
  404. OmniHTTPd 2.0b1 and up for Windows
  405.  
  406. This has got to be the easiest config there is:
  407.  
  408. Step 1: Install OmniHTTPd server.
  409. Step 2: Right click on the blue OmniHTTPd icon in the system
  410. tray and select 'Properties'
  411. Step 3: Click on 'Web Server Global Settings'
  412. Step 4: On the 'External' tab, enter:
  413. virtual = .php | actual = c:\path-to-php-dir\php.exe
  414. and use the Add button.
  415. Step 5: On the Mime tab, enter:
  416. virtual = wwwserver/stdcgi | actual = .php
  417. and use the Add button.
  418. Step 6: Click 'OK'
  419.  
  420. Repeat steps 2 - 6 for each extension you want to associate with PHP.
  421. NOTE:
  422. Some OmniHTTPd packages come with built in PHP support.
  423. You can choose at setup time to do a custom setup, and
  424. uncheck the PHP component. We recommend you to use the latest
  425. PHP binaries. Some OmniHTTPd servers come with PHP 4 beta
  426. distributions, so you should choose not to set up
  427. the built in support, but install your own. If the server
  428. is already on your machine, use the Replace button in Step
  429. 4 and 5 to set the new, correct information.
  430.  
  431. ----------------------------------------------------------
  432.  
  433. Installing PHP on Windows with Oreilly Website Pro
  434.  
  435. This section contains notes and hints specific to Oreilly
  436. Website Pro 2.5 and up for Windows
  437.  
  438. This list describes how to set up the PHP CGI binary
  439. or the ISAPI module to work with Oreilly Website Pro
  440. on Windows.
  441.  
  442. Edit the Server Properties and select the tab "Mapping".
  443.  
  444. From the List select "Associations" and enter the desired
  445. extension (".php") and the path to the CGI exe (ex. c:\php\php.exe)
  446. or the ISAPI dll file (ex. c:\php\sapi\php4isapi.dll).
  447.  
  448. Select "Content Types" add the same extension ".php"
  449. and enter the content type. If you choose the CGI exe
  450. file, enter 'wwwserver/shellcgi', if you chose the
  451. ISAPI module, enter 'wwwserver/isapi' (both without quotes).
  452.  
  453. ----------------------------------------------------------
  454.  
  455. Installing PHP on Windows with Xitami
  456.  
  457. This section contains notes and hints specific to Xitami.
  458.  
  459. This list describes how to set up the PHP CGI binary
  460. to work with Xitami on Windows.
  461.  
  462. Make sure the webserver is running, and point
  463. your browser to xitamis admin console
  464. (usually http://127.0.0.1/admin), and click on
  465. Configuration.
  466.  
  467. Navigate to the Filters, and put the
  468. extension which php should parse (i.e. .php)
  469. into the field File extensions (.xxx).
  470.  
  471. In Filter command or script put the path and name
  472. of your php executable i.e. c:\php\php.exe.
  473.  
  474. Press the 'Save' icon.
  475.  
  476. ----------------------------------------------------------
  477.  
  478. Installing PHP on Windows with Netscape servers.
  479.  
  480.  
  481. To Install PHP as CGI (for Netscape Enterprise Server, iPlanet, perhaps Fastrack)
  482.  
  483. Copy php4ts.dll to your systemroot (the directory where you installed windows)
  484.  
  485. Make a file assocition from the command line (type the 2 following lines)
  486. assoc .php=PHPScript
  487. ftype PHPScript=c:\php\php.exe %1 %*
  488.  
  489. In the Netscape Enterprise Administration Server create a dummy shellcgi
  490. directory and remove it just after (this step creates 5 important lines in
  491. obj.conf and allow the web server to handle shellcgi scripts)
  492.  
  493. In the Netscape Enterprise Administration Server create a new mime type
  494. (Category:type,Content-Type:magnus-internal/shellcgi,File Suffix:php)
  495.  
  496. Do it for each web server instance you want php to run
  497.  
  498. More details http://benoit.noss.free.fr/php/install-php.html
  499.  
  500.  
  501. To Install PHP as NSAPI (for Netscape Enterprise Server, iPlanet, perhaps Fastrack)
  502.  
  503. Copy php4ts.dll to your systemroot (the directory where you installed windows)
  504.  
  505. Make a file assocition from the command line (type the 2 following lines)
  506. assoc .php=PHPScript
  507. ftype PHPScript=c:\php\php.exe %1 %*
  508.  
  509. In the Netscape Enterprise Administration Server create a new mime type
  510. (Category:type,Content-Type:magnus-internal/x-httpd-php,File Suffix:php)
  511.  
  512. Stop your web service and edit obj.conf
  513. At the end of the Init section, place these 2 lines (necessarily after mime type init!)
  514. Init fn="load-modules" funcs="php4_init,php4_close,php4_execute,php4_auth_trans" shlib="c:/php/sapi/php4nsapi.dll"
  515. Init fn="php4_init" errorString="Failed to initialise PHP!"
  516.  
  517. In The < Object name="default" > section, place this line necessarily after all 'ObjectType' and before all 'AddLog' lines!
  518. Service fn="php4_execute" type="magnus-internal/x-httpd-php"
  519.  
  520. At the end of the file, create a new object called x-httpd-php, by inserting this lines
  521. <Object name="x-httpd-php">
  522. ObjectType fn="force-type" type="magnus-internal/x-httpd-php"
  523. Service fn=php4_execute
  524. </Object>
  525.  
  526. Restart your web service and apply changes
  527.  
  528. Do it for each web server instance you want php to run
  529.  
  530. More details http://benoit.noss.free.fr/php/install-php4.html
  531.  
  532. ----------------------------------------------------------
  533.  
  534. Problems?
  535. =========
  536.  
  537. Read the FAQ
  538.  
  539. Some problems are more common than others. The most common ones
  540. are listed in the PHP FAQ, found at www.php.net/FAQ.php
  541.  
  542. Common problems with Windows
  543.  
  544. The following problems often occur with IIS/PWS, but some points may
  545. also apply to other servers.
  546.  
  547. For test purposes it is best to use just a simple test script. One
  548. containing just the following line will suffice:
  549. <?php phpinfo();?>
  550.  
  551. You have installed PHP, but when try to access a php script file via your
  552. browser, you get a blank screen:
  553.  
  554. Do a 'view source' in the web browser and you will probably find that you
  555. can see the source code of your php script. This means that the web server
  556. did not send the script to php for interpretation. Something is wrong with
  557. the server configuration - double check the server configuration against
  558. the php installation instructions.
  559.  
  560. You have installed PHP, but when try to access a php script file via your
  561. browser, you get a server 500 error:
  562.  
  563. Something went wrong when the server tried to run PHP. To get to see a
  564. sensible error message, from the command line, change to the directory
  565. containing php.exe and run <literal>php.exe -i</literal>
  566. If php has any problems running, then a suitable error message will be displayed
  567. which will give you a clue as to what needs to be done next.
  568. If you get a screen full of html codes (the output of the phpinfo() function) then
  569. php is working ok, and your problem may be related to your server configuration
  570. which you should double check.
  571.  
  572. You have installed PHP, but when try to access a php script file via your
  573. browser, you get the error:
  574. cgi error:
  575. The specified CGI application misbehaved by not returning a complete set of
  576. HTTP headers. The headers it did return are:
  577.  
  578. This error message means that php failed to output anything at all.
  579. From the command line hange to the directory containing php.exe. Run
  580. php.exe -i
  581. If php has any problems running, then a suitable
  582. error message will be displayed which will give you a clue as to what needs to
  583. be done next. If you get a screen full of html codes (the output of the
  584. phpinfo() function) then php is working ok.
  585.  
  586. Once php is working at the command line, try accessing the php script via the browser again.
  587. If it still fails then it could be one of the following:
  588.  
  589. file permissions on your php script, php.exe, php4ts.dll, php.ini or any php
  590. extensions you are trying to load are such that the anonymous internet user
  591. ISUR_<machinename> cannot access them.
  592.  
  593. The script file does not exist (or possibly isn't where you think it is
  594. relative to your web root directory). Note that for IIS you can trap this error by ticking
  595. the 'check file exists' box when setting up the script mappings in the Internet Services
  596. Manager. If a script file does not exist then the server will return a 404 error instead.
  597. There is also the additional benefit that IIS will do any authentication required for you
  598. based on the NTLanMan permissions on your script file.
  599.  
  600. Other problems
  601. If you are still stuck, someone on the PHP installation mailing list may be
  602. able to help you. You should check out the archive first, in case
  603. someone already answered someone else who had the same problem as
  604. you. The archives are available from the support page on www.php.net
  605. To subscribe to the PHP installation mailing list, send an empty mail to:
  606.  
  607. php-install-subscribe@lists.php.net
  608.  
  609. The mailing list address is php-install@lists.php.net
  610.  
  611. If you want to get help on the mailing list, please try to be
  612. precise and give the necessary details about your environment
  613. (which operating system, what PHP version, what web server, if
  614. ou are running PHP as CGI or a server module, etc.), and
  615. referably enough code to make others able to reproduce and test
  616. our problem.
  617.  
  618. Bug reports
  619. ===========
  620.  
  621. If you think you have found a bug in PHP, please report it. The
  622. PHP developers probably don't know about it, and unless you
  623. report it, chances are it won't be fixed. You can report bugs
  624. using the bug-tracking system at http://bugs.php.net/
  625.  
  626. Read the Bugs-Dos-And-Donts at
  627. http://bugs.php.net/bugs-dos-and-donts.php
  628. _BEFORE_ submitting any bug reports!