cvs: phpdoc /en/faq installation.xml /en/install/windows building.xml iis.xml index.xml manual.xml
| From: | Nuno Lopes | Date: | Thu, 05 Aug 2004 12:15:18 +0000 |
| Subject: | cvs: phpdoc /en/faq installation.xml /en/install/windows building.xml iis.xml index.xml manual.xml | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969362701@lists.php.net to get a copy of this message | ||
nlopess Thu Aug 5 08:15:18 2004 EDT
Modified files:
/phpdoc/en/install/windows building.xml iis.xml index.xml
manual.xml
/phpdoc/en/faq installation.xml
Log:
second part of the re-write of the windows install intructions
http://cvs.php.net/diff.php/phpdoc/en/install/windows/building.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc/en/install/windows/building.xml diff -u phpdoc/en/install/windows/building.xml:1.1 phpdoc/en/install/windows/building.xml:1.2 --- phpdoc/en/install/windows/building.xml:1.1 Thu Jun 3 18:45:11 2004 +++ phpdoc/en/install/windows/building.xml Thu Aug 5 08:15:17 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <sect1 id="install.windows.build"> <title>Building from source</title> <para> @@ -64,7 +64,7 @@ </listitem> </itemizedlist> <simpara> - Finally, you are going to need the source to PHP 4 itself. You can get + Finally, you are going to need the source to PHP itself. You can get the latest development version using <ulink url="&url.php.anoncvs;"> anonymous CVS</ulink>, a <ulink url="&url.php.snapshots;"> snapshot</ulink> or the most recent released <ulink url="&url.php.downloads;"> http://cvs.php.net/diff.php/phpdoc/en/install/windows/iis.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc/en/install/windows/iis.xml diff -u phpdoc/en/install/windows/iis.xml:1.2 phpdoc/en/install/windows/iis.xml:1.3 --- phpdoc/en/install/windows/iis.xml:1.2 Fri Jun 4 15:52:04 2004 +++ phpdoc/en/install/windows/iis.xml Thu Aug 5 08:15:17 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <sect1 id="install.windows.iis"> <title>Microsoft IIS / PWS</title> <para> @@ -25,7 +25,8 @@ <simpara> The recommended method for configuring these servers is to use the REG file included with the distribution - (<filename>pws-php4cgi.reg</filename> in the SAPI folder). + (<filename>pws-php4cgi.reg</filename> in the SAPI folder for PHP 4, or + <filename>pws-php5cgi.reg</filename> in the main folder for PHP 5). You may want to edit this file and make sure the extensions and PHP install directories match your configuration. Or you can follow the steps below to do it @@ -70,7 +71,8 @@ <simpara> Double click on the new string value and enter the path to <literal>php.exe</literal> in the value data field. ex: - <literal>c:\php\php.exe</literal>. + <literal>c:\php\php.exe</literal> for PHP 4, or + <literal>C:\php\php-cgi.exe</literal> for PHP 5. </simpara> </listitem> <listitem> @@ -196,11 +198,14 @@ <itemizedlist> <listitem> <simpara> - Edit the enclosed <filename>pws-php4cgi.reg</filename> - file (look into the SAPI folder) to reflect the location of - your <filename>php.exe</filename>. Backslashes should be - escaped, for example: - <literal>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="c:\\php\\php.exe"</literal> + Edit the enclosed <filename>pws-php4cgi.reg</filename> / + <filename>pws-php5cgi.reg</filename> file (look into the SAPI folder + for PHP 4, or in the main folder for PHP 5) to reflect the location of + your <filename>php.exe</filename> / <filename>php-cgi.exe</filename>. + Backslashes should be escaped, for example: + <literal>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script + Map] ".php"="c:\\php\\php.exe"</literal> (change to + <literal>C:\\php\\php-cgi.exe</literal> if you are using PHP 5) Now merge this registery file into your system; you may do this by double-clicking it. </simpara> @@ -220,11 +225,14 @@ <itemizedlist> <listitem> <simpara> - Edit the enclosed <filename>pws-php4isapi.reg</filename> - file (look into the SAPI folder) to reflect the location of - your <filename>php4isapi.dll</filename>. Backslashes should - be escaped, for example: - <literal>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="c:\\php\\sapi\\php4isapi.dll"</literal> + Edit the enclosed <filename>pws-php4isapi.reg</filename> / + <filename>pws-php5isapi.reg</filename> file (look into the SAPI folder + for PHP 4, or in the main folder for PHP 5) to reflect the location of + your <filename>php4isapi.dll</filename> / + <filename>php5isapi.dll</filename>. Backslashes should be escaped, for example: + <literal>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script + Map] ".php"="c:\\php\\sapi\\php4isapi.dll"</literal> (or + <literal>C:\\php\\php5isapi.dll</literal> for PHP 5) Now merge this registery file into your system; you may do this by double-clicking it. </simpara> @@ -247,7 +255,8 @@ <simpara> To install PHP on an NT/2000/XP Server running IIS 4 or newer, follow these instructions. You have two options to set up - PHP, using the CGI binary (php.exe) or with the ISAPI module. + PHP, using the CGI binary (<filename>php.exe</filename> in PHP 4, or + <filename>php-cgi.exe</filename> in PHP 5) or with the ISAPI module. </simpara> <simpara> @@ -272,7 +281,8 @@ <listitem> <simpara> Click Add, and in the Executable box, type: - <literal>c:\php\php.exe</literal> (assuming + <literal>c:\php\php.exe</literal> for PHP 4 or + <literal>C:\php\php-cgi.exe</literal> for PHP 5 (assuming that you have unziped PHP in <filename>c:\php\</filename>). </simpara> </listitem> @@ -300,7 +310,7 @@ Set up the appropriate security. (This is done in Internet Service Manager), and if your NT Server uses NTFS file system, add execute rights for I_USR_ to the directory that contains - <literal>php.exe</literal>. + <filename>php.exe</filename> / <filename>php-cgi.exe</filename>. </simpara> </listitem> </itemizedlist> @@ -314,16 +324,18 @@ If you don't want to perform HTTP Authentication using PHP, you can (and should) skip this step. Under ISAPI Filters, add a new ISAPI filter. Use PHP as the filter name, and - supply a path to the <filename>php4isapi.dll</filename>. + supply a path to the <filename>php4isapi.dll</filename> / + <filename>php5isapi.dll</filename>. </simpara> </listitem> <listitem> <simpara> Under 'Home Directory', click on the 'Configuration' button. Add a new entry to the Application Mappings. Use the path - to the <filename>php4isapi.dll</filename> as the Executable, supply - <literal>.php</literal> as the extension, leave 'Method - exclusions' blank, and check the 'Script engine' checkbox. + to the <filename>php4isapi.dll</filename> / + <filename>php5isapi.dll</filename> as the Executable, supply + <literal>.php</literal> as the extension, leave 'Method exclusions' + blank, and check the 'Script engine' checkbox. </simpara> </listitem> <listitem> http://cvs.php.net/diff.php/phpdoc/en/install/windows/index.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc/en/install/windows/index.xml diff -u phpdoc/en/install/windows/index.xml:1.9 phpdoc/en/install/windows/index.xml:1.10 --- phpdoc/en/install/windows/index.xml:1.9 Mon Aug 2 17:33:03 2004 +++ phpdoc/en/install/windows/index.xml Thu Aug 5 08:15:17 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <chapter id="install.windows"> <title>Installation on Windows systems</title> <para> @@ -23,6 +23,13 @@ want to <link linkend="install.windows.extensions">load various extensions</link> for added functionality. </para> + <warning> + <para> + There are several all-in-one installers over the Internet, but noone of + those are endorsed by PHP.net, as we believe that the manual installation + is the best choice to have your system secure and optimised. + </para> + </warning> &install.windows.installer; &install.windows.manual; http://cvs.php.net/diff.php/phpdoc/en/install/windows/manual.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc/en/install/windows/manual.xml diff -u phpdoc/en/install/windows/manual.xml:1.9 phpdoc/en/install/windows/manual.xml:1.10 --- phpdoc/en/install/windows/manual.xml:1.9 Mon Aug 2 17:33:03 2004 +++ phpdoc/en/install/windows/manual.xml Thu Aug 5 08:15:17 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <sect1 id="install.windows.manual"> <title>Manual Installation Steps</title> @@ -197,7 +197,9 @@ <note> <para> In PHP 4, you should move all files located in the <filename - class="directory">dll</filename> folder to the main folder. + class="directory">dll</filename> and <filename + class="directory">sapi</filename> folders to the main folder (e.g. + <filename class="directory">C:\php</filename>). </para> </note> <para> @@ -250,8 +252,8 @@ by your PHP installation. The search order for this DLL is as follows: <itemizedlist> <listitem><para> - The same directory from where <filename>php.exe</filename> is called. - In case you use a SAPI module, the webserver's directory (e.g. + The same directory from where <filename>php.exe</filename> is called, + or in case you use a SAPI module, the webserver's directory (e.g. <filename>C:\Program Files\Apache Group\Apache2\bin</filename>). </para></listitem> <listitem><para> @@ -294,7 +296,7 @@ <literal>HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath</literal> </para></listitem> <listitem><para> - <varname>PHPRC</varname> enviroment variable + <varname>PHPRC</varname> environment variable </para></listitem> <listitem><para> Directory of PHP (for CLI) or the webserver's dir (for SAPI modules) @@ -308,21 +310,9 @@ <para> If you are running Apache 2, the simpler option is to use the PHPIniDir directive (read the <link linkend="install.windows.apache2">installation - on Apache 2</link> page), otherwise your best option is to edit the - registry (but be carefull!). On Apache 1, you may want to use the SetEnv - directive to set the <varname>PHPRC</varname> variable (read more at - the <link linkend="install.windows.apache1">installation on Apache 1</link> - page. - </para> - <para> - To edit the registry (at your own risk) go to the start menu and choose - Run. There type 'regedit' (without quotes) and press OK. Navigate through - the registry to HKEY_LOCAL_MACHINE\SOFTWARE, click with the right button - of the mouse in SOFTWARE, and choose New->Key. Enter PHP as name. On - the right pane, click with the right button of the mouse and choose - New->String Value. Enter <literal>IniFilePath</literal> as value and - double-click on it. Then enter the directory where the &php.ini; file is - located, press OK and exit from the Registry Editor. + on Apache 2</link> page), otherwise your best option is to set the + <varname>PHPRC</varname> environment variable. This process is explained + in a <link linkend="faq.installation.phprc">FAQ entry</link>. </para> <note> <simpara> http://cvs.php.net/diff.php/phpdoc/en/faq/installation.xml?r1=1.32&r2=1.33&ty=u Index: phpdoc/en/faq/installation.xml diff -u phpdoc/en/faq/installation.xml:1.32 phpdoc/en/faq/installation.xml:1.33 --- phpdoc/en/faq/installation.xml:1.32 Tue Aug 3 16:59:42 2004 +++ phpdoc/en/faq/installation.xml Thu Aug 5 08:15:18 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.32 $ --> +<!-- $Revision: 1.33 $ --> <chapter id="faq.installation"> <title>Installation</title> <titleabbrev>Installation</titleabbrev> @@ -615,6 +615,70 @@ <listitem><para> Locate the line with PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;..... and add: <literal>;C:\php</literal> to the end of the line + </para></listitem> + <listitem><para> + Save the file and restart your computer + </para></listitem> + </itemizedlist> + </para> + </answer> + </qandaentry> + + <qandaentry id="faq.installation.phprc"> + <question> + <para> + How do I make the &php.ini; file avaliable to PHP on windows? + </para> + </question> + <answer> + <para> + There are several ways of doing this. If you are using Apache, read + their installation specific instructions (<link + linkend="install.windows.apache1">Apache 1</link>, <link + linkend="install.windows.apache2">Apache 2</link>), otherwise you must + set the <varname>PHPRC</varname> environment variable: + </para> + <para> + On Windows NT, 2000, XP and 2003: + <itemizedlist> + <listitem><para> + Got to Control Panel and open the System icon (Start -> Settings + -> Control Panel -> System, or just Start -> Control Panel + -> System for Windows XP/2003) + </para></listitem> + <listitem><para> + Go to the Advanced tab + </para></listitem> + <listitem><para> + Click on the 'Environment Variables' button + </para></listitem> + <listitem><para> + Look into the 'User variables for xx' pane + </para></listitem> + <listitem><para> + Click on 'New' and enter 'PHPRC' as the variable name and the + directory where &php.ini; is located as the variable value (e.g. + <literal>C:\php</literal>) + </para></listitem> + <listitem><para> + Press OK and restart your computer + </para></listitem> + </itemizedlist> + </para> + <para> + On Windows 98/Me you need to edit the <filename>autoexec.bat</filename> + file: + <itemizedlist> + <listitem><para> + Open the Notepad (Start->Run and enter notepad) + </para></listitem> + <listitem><para> + Open the <filename>C:\autoexec.bat</filename> file + </para></listitem> + <listitem><para> + Add a new line to the end of the file: <literal>set PHPRC + C:\php</literal> (replace <literal>C:\php</literal> with the + directory where &php.ini; is located) </para></listitem> <listitem><para> Save the file and restart your computer
http://cvs.php.net/diff.php/phpdoc/en/install/windows/building.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc/en/install/windows/building.xml diff -u phpdoc/en/install/windows/building.xml:1.1 phpdoc/en/install/windows/building.xml:1.2 --- phpdoc/en/install/windows/building.xml:1.1 Thu Jun 3 18:45:11 2004 +++ phpdoc/en/install/windows/building.xml Thu Aug 5 08:15:17 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <sect1 id="install.windows.build"> <title>Building from source</title> <para> @@ -64,7 +64,7 @@ </listitem> </itemizedlist> <simpara> - Finally, you are going to need the source to PHP 4 itself. You can get + Finally, you are going to need the source to PHP itself. You can get the latest development version using <ulink url="&url.php.anoncvs;"> anonymous CVS</ulink>, a <ulink url="&url.php.snapshots;"> snapshot</ulink> or the most recent released <ulink url="&url.php.downloads;"> http://cvs.php.net/diff.php/phpdoc/en/install/windows/iis.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc/en/install/windows/iis.xml diff -u phpdoc/en/install/windows/iis.xml:1.2 phpdoc/en/install/windows/iis.xml:1.3 --- phpdoc/en/install/windows/iis.xml:1.2 Fri Jun 4 15:52:04 2004 +++ phpdoc/en/install/windows/iis.xml Thu Aug 5 08:15:17 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <sect1 id="install.windows.iis"> <title>Microsoft IIS / PWS</title> <para> @@ -25,7 +25,8 @@ <simpara> The recommended method for configuring these servers is to use the REG file included with the distribution - (<filename>pws-php4cgi.reg</filename> in the SAPI folder). + (<filename>pws-php4cgi.reg</filename> in the SAPI folder for PHP 4, or + <filename>pws-php5cgi.reg</filename> in the main folder for PHP 5). You may want to edit this file and make sure the extensions and PHP install directories match your configuration. Or you can follow the steps below to do it @@ -70,7 +71,8 @@ <simpara> Double click on the new string value and enter the path to <literal>php.exe</literal> in the value data field. ex: - <literal>c:\php\php.exe</literal>. + <literal>c:\php\php.exe</literal> for PHP 4, or + <literal>C:\php\php-cgi.exe</literal> for PHP 5. </simpara> </listitem> <listitem> @@ -196,11 +198,14 @@ <itemizedlist> <listitem> <simpara> - Edit the enclosed <filename>pws-php4cgi.reg</filename> - file (look into the SAPI folder) to reflect the location of - your <filename>php.exe</filename>. Backslashes should be - escaped, for example: - <literal>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="c:\\php\\php.exe"</literal> + Edit the enclosed <filename>pws-php4cgi.reg</filename> / + <filename>pws-php5cgi.reg</filename> file (look into the SAPI folder + for PHP 4, or in the main folder for PHP 5) to reflect the location of + your <filename>php.exe</filename> / <filename>php-cgi.exe</filename>. + Backslashes should be escaped, for example: + <literal>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script + Map] ".php"="c:\\php\\php.exe"</literal> (change to + <literal>C:\\php\\php-cgi.exe</literal> if you are using PHP 5) Now merge this registery file into your system; you may do this by double-clicking it. </simpara> @@ -220,11 +225,14 @@ <itemizedlist> <listitem> <simpara> - Edit the enclosed <filename>pws-php4isapi.reg</filename> - file (look into the SAPI folder) to reflect the location of - your <filename>php4isapi.dll</filename>. Backslashes should - be escaped, for example: - <literal>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] ".php"="c:\\php\\sapi\\php4isapi.dll"</literal> + Edit the enclosed <filename>pws-php4isapi.reg</filename> / + <filename>pws-php5isapi.reg</filename> file (look into the SAPI folder + for PHP 4, or in the main folder for PHP 5) to reflect the location of + your <filename>php4isapi.dll</filename> / + <filename>php5isapi.dll</filename>. Backslashes should be escaped, for example: + <literal>[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script + Map] ".php"="c:\\php\\sapi\\php4isapi.dll"</literal> (or + <literal>C:\\php\\php5isapi.dll</literal> for PHP 5) Now merge this registery file into your system; you may do this by double-clicking it. </simpara> @@ -247,7 +255,8 @@ <simpara> To install PHP on an NT/2000/XP Server running IIS 4 or newer, follow these instructions. You have two options to set up - PHP, using the CGI binary (php.exe) or with the ISAPI module. + PHP, using the CGI binary (<filename>php.exe</filename> in PHP 4, or + <filename>php-cgi.exe</filename> in PHP 5) or with the ISAPI module. </simpara> <simpara> @@ -272,7 +281,8 @@ <listitem> <simpara> Click Add, and in the Executable box, type: - <literal>c:\php\php.exe</literal> (assuming + <literal>c:\php\php.exe</literal> for PHP 4 or + <literal>C:\php\php-cgi.exe</literal> for PHP 5 (assuming that you have unziped PHP in <filename>c:\php\</filename>). </simpara> </listitem> @@ -300,7 +310,7 @@ Set up the appropriate security. (This is done in Internet Service Manager), and if your NT Server uses NTFS file system, add execute rights for I_USR_ to the directory that contains - <literal>php.exe</literal>. + <filename>php.exe</filename> / <filename>php-cgi.exe</filename>. </simpara> </listitem> </itemizedlist> @@ -314,16 +324,18 @@ If you don't want to perform HTTP Authentication using PHP, you can (and should) skip this step. Under ISAPI Filters, add a new ISAPI filter. Use PHP as the filter name, and - supply a path to the <filename>php4isapi.dll</filename>. + supply a path to the <filename>php4isapi.dll</filename> / + <filename>php5isapi.dll</filename>. </simpara> </listitem> <listitem> <simpara> Under 'Home Directory', click on the 'Configuration' button. Add a new entry to the Application Mappings. Use the path - to the <filename>php4isapi.dll</filename> as the Executable, supply - <literal>.php</literal> as the extension, leave 'Method - exclusions' blank, and check the 'Script engine' checkbox. + to the <filename>php4isapi.dll</filename> / + <filename>php5isapi.dll</filename> as the Executable, supply + <literal>.php</literal> as the extension, leave 'Method exclusions' + blank, and check the 'Script engine' checkbox. </simpara> </listitem> <listitem> http://cvs.php.net/diff.php/phpdoc/en/install/windows/index.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc/en/install/windows/index.xml diff -u phpdoc/en/install/windows/index.xml:1.9 phpdoc/en/install/windows/index.xml:1.10 --- phpdoc/en/install/windows/index.xml:1.9 Mon Aug 2 17:33:03 2004 +++ phpdoc/en/install/windows/index.xml Thu Aug 5 08:15:17 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <chapter id="install.windows"> <title>Installation on Windows systems</title> <para> @@ -23,6 +23,13 @@ want to <link linkend="install.windows.extensions">load various extensions</link> for added functionality. </para> + <warning> + <para> + There are several all-in-one installers over the Internet, but noone of + those are endorsed by PHP.net, as we believe that the manual installation + is the best choice to have your system secure and optimised. + </para> + </warning> &install.windows.installer; &install.windows.manual; http://cvs.php.net/diff.php/phpdoc/en/install/windows/manual.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc/en/install/windows/manual.xml diff -u phpdoc/en/install/windows/manual.xml:1.9 phpdoc/en/install/windows/manual.xml:1.10 --- phpdoc/en/install/windows/manual.xml:1.9 Mon Aug 2 17:33:03 2004 +++ phpdoc/en/install/windows/manual.xml Thu Aug 5 08:15:17 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> +<!-- $Revision: 1.10 $ --> <sect1 id="install.windows.manual"> <title>Manual Installation Steps</title> @@ -197,7 +197,9 @@ <note> <para> In PHP 4, you should move all files located in the <filename - class="directory">dll</filename> folder to the main folder. + class="directory">dll</filename> and <filename + class="directory">sapi</filename> folders to the main folder (e.g. + <filename class="directory">C:\php</filename>). </para> </note> <para> @@ -250,8 +252,8 @@ by your PHP installation. The search order for this DLL is as follows: <itemizedlist> <listitem><para> - The same directory from where <filename>php.exe</filename> is called. - In case you use a SAPI module, the webserver's directory (e.g. + The same directory from where <filename>php.exe</filename> is called, + or in case you use a SAPI module, the webserver's directory (e.g. <filename>C:\Program Files\Apache Group\Apache2\bin</filename>). </para></listitem> <listitem><para> @@ -294,7 +296,7 @@ <literal>HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath</literal> </para></listitem> <listitem><para> - <varname>PHPRC</varname> enviroment variable + <varname>PHPRC</varname> environment variable </para></listitem> <listitem><para> Directory of PHP (for CLI) or the webserver's dir (for SAPI modules) @@ -308,21 +310,9 @@ <para> If you are running Apache 2, the simpler option is to use the PHPIniDir directive (read the <link linkend="install.windows.apache2">installation - on Apache 2</link> page), otherwise your best option is to edit the - registry (but be carefull!). On Apache 1, you may want to use the SetEnv - directive to set the <varname>PHPRC</varname> variable (read more at - the <link linkend="install.windows.apache1">installation on Apache 1</link> - page. - </para> - <para> - To edit the registry (at your own risk) go to the start menu and choose - Run. There type 'regedit' (without quotes) and press OK. Navigate through - the registry to HKEY_LOCAL_MACHINE\SOFTWARE, click with the right button - of the mouse in SOFTWARE, and choose New->Key. Enter PHP as name. On - the right pane, click with the right button of the mouse and choose - New->String Value. Enter <literal>IniFilePath</literal> as value and - double-click on it. Then enter the directory where the &php.ini; file is - located, press OK and exit from the Registry Editor. + on Apache 2</link> page), otherwise your best option is to set the + <varname>PHPRC</varname> environment variable. This process is explained + in a <link linkend="faq.installation.phprc">FAQ entry</link>. </para> <note> <simpara> http://cvs.php.net/diff.php/phpdoc/en/faq/installation.xml?r1=1.32&r2=1.33&ty=u Index: phpdoc/en/faq/installation.xml diff -u phpdoc/en/faq/installation.xml:1.32 phpdoc/en/faq/installation.xml:1.33 --- phpdoc/en/faq/installation.xml:1.32 Tue Aug 3 16:59:42 2004 +++ phpdoc/en/faq/installation.xml Thu Aug 5 08:15:18 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.32 $ --> +<!-- $Revision: 1.33 $ --> <chapter id="faq.installation"> <title>Installation</title> <titleabbrev>Installation</titleabbrev> @@ -615,6 +615,70 @@ <listitem><para> Locate the line with PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;..... and add: <literal>;C:\php</literal> to the end of the line + </para></listitem> + <listitem><para> + Save the file and restart your computer + </para></listitem> + </itemizedlist> + </para> + </answer> + </qandaentry> + + <qandaentry id="faq.installation.phprc"> + <question> + <para> + How do I make the &php.ini; file avaliable to PHP on windows? + </para> + </question> + <answer> + <para> + There are several ways of doing this. If you are using Apache, read + their installation specific instructions (<link + linkend="install.windows.apache1">Apache 1</link>, <link + linkend="install.windows.apache2">Apache 2</link>), otherwise you must + set the <varname>PHPRC</varname> environment variable: + </para> + <para> + On Windows NT, 2000, XP and 2003: + <itemizedlist> + <listitem><para> + Got to Control Panel and open the System icon (Start -> Settings + -> Control Panel -> System, or just Start -> Control Panel + -> System for Windows XP/2003) + </para></listitem> + <listitem><para> + Go to the Advanced tab + </para></listitem> + <listitem><para> + Click on the 'Environment Variables' button + </para></listitem> + <listitem><para> + Look into the 'User variables for xx' pane + </para></listitem> + <listitem><para> + Click on 'New' and enter 'PHPRC' as the variable name and the + directory where &php.ini; is located as the variable value (e.g. + <literal>C:\php</literal>) + </para></listitem> + <listitem><para> + Press OK and restart your computer + </para></listitem> + </itemizedlist> + </para> + <para> + On Windows 98/Me you need to edit the <filename>autoexec.bat</filename> + file: + <itemizedlist> + <listitem><para> + Open the Notepad (Start->Run and enter notepad) + </para></listitem> + <listitem><para> + Open the <filename>C:\autoexec.bat</filename> file + </para></listitem> + <listitem><para> + Add a new line to the end of the file: <literal>set PHPRC + C:\php</literal> (replace <literal>C:\php</literal> with the + directory where &php.ini; is located) </para></listitem> <listitem><para> Save the file and restart your computer