Installing Windows NT station (with PWS)
Get the binary win32.
Reference site: http://www.php.net/
Download URL: http://www.php.net/downloads.php
1. Unpack the archive to a directory that will be the installation directory (eg c: \ php4).
2. Copy the file php4ts.dll (msvcrt.dll and if not already) in a directory located in the path (a good idea to put it in the system folder "c: \ winnt \ system32" For example, if "c: \ winnt" is your installation directory)
3. Edit in the notepad file PWS-php4.reg to put the real path to the php interpreter (php.exe php4isapi.dll or whether you've chosen to run as an interpreter cgi external web server or as a module isapi web server).
Attention! In the path to enter all the anti-slashes should be doubled; example:
C:\\PHP4\\php4isapi.dll
4. Double-click on the PWS-php4.reg amended to save the information in the registry. As a result, the web server will know what to call interpreter when he will see the extension ". Php" (default extension in version 4 of PHP).
5. Place your PHP scripts in the directory you've chosen on your machine and test your new installation.
For access to databases, the installation of ODBC must be properly made elsewhere. We encountered a problem on a machine, due to improper installation of ODBC, precisely. The trap was that the PWS server froze no explanation is given. If you use ODBC to access databases and your web server freezes at each call to an ODBC, see how we have tracked and resolved the problem below.
When you use ODBC to access databases, if the web server at each plant uses a type of database in a php script, then try to run the script from a command window.
Example:
C:\php4>php drive:\path\access\to\script.php
It was then that may be the failure that kills.
If we had not tried to interpret the php script directly from the command line we would not have seen this dialog box and never understood why the web server was set to call the script.
Note: This might be true if one was called by php.exe PWS instead of using the dll. A check ...
If we cancel the dialog above, it gets a second message.
Repairing a damaged ODBC mixtures of versions is not necessarily easy by natural ways. The successive attempts to uninstall, reinstall may not led to anything, I used a technique which has been diverted wonder but might not be advisable in all cases:
I searched odbc *.* on all disks in the machine
I spotted in the window of response directory whose files had set the dates for the most recent creation
I selected and copied to c:\winnt\system32
It is not very orthodox, but in my case, the result was excellent.
Bookmarks