note 40780 added to install.apache2
| From: | no at mail dot me | Date: | Sun, 14 Mar 2004 19:01:46 +0000 |
| Subject: | note 40780 added to install.apache2 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66828@lists.php.net to get a copy of this message | ||
The CGI binary - c:\php\php.exe -, the CLI binary - c:\php\cli\php.exe -, and the SAPI modules -
c:\php\sapi\*.dll - rely on the main dll c:\php\php4ts.dll. You have to make sure, that this dll can
be found by your PHP installation. The search order for this dll is as follows:
The same directory from where php.exe is called. In case you use a SAPI module the same directory
from where your webserver loads the dll (e.g. php4apache.dll).
Any directory in your Windows PATH environment variable.
The best bet is to make php4ts.dll available, regardless which interface (CGI or SAPI module) you
plan to use. To do so, you have to copy this dll to a directory on your Windows path. The best place
is your Windows system directory:
C:\Windows\System for Windows 9x/ME
C:\WINNT\System32 for Windows NT/2000 or C:\WINNT40\System32 for NT/2000 server
C:\Windows\System32 for Windows XP
If you plan to use a SAPI module from c:\php\sapi and do not like to copy dlls to your Windows
system directory, you have the alternative choice to simply copy php4ts.dll to the sapi folder of
your extracted zip package, c:\php\sapi.
The next step is to set up a valid configuration file for PHP, php.ini. There are two ini files
distributed in the zip file, php.ini-dist and php.ini-recommended. We advise you to use
php.ini-recommended, because we optimized the default settings in this file for performance, and
security. Read this well documented file carefully and in addition study the ini settings and set
every element manually yourself. If you would like to achieve the best security, then this is the
way for you, although PHP works fine with these default ini files. Copy your chosen ini-file to a
directory where PHP is able to find and rename it to php.ini. By default PHP searches php.ini in
your Windows directory:
On Windows 9x/ME/XP copy your chosen ini file to your %WINDIR%, which is typically C:\Windows.
On Windows NT/2000 copy your chosen ini file to your %WINDIR% or %SYSTEMROOT%, which is typically
C:\WINNT or C:\WINNT40 for NT/2000 servers.
If you're using NTFS on Windows NT, 2000 or XP, make sure that the user running the webserver
has read permissions to your php.ini (e.g. make it readable by Everyone).
----
Manual Page -- http://www.php.net/manual/en/install.apache2.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40780
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40780&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40780&report=yes
Search -- http://master.php.net/manage/user-notes.php