Skip to content

Commit 5c6ec3c

Browse files
author
Sander Roobol
committed
Added notes that php.exe and not php-cli.exe should be used.
1 parent a86833c commit 5c6ec3c

File tree

1 file changed

+29
-6
lines changed

1 file changed

+29
-6
lines changed

win32/install.txt

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ Web server configuration
233233
AddType application/x-httpd-php .php
234234
Action application/x-httpd-php "/php/php.exe"
235235

236+
Please not that you cannot use php-cli.exe with your webserver. You have
237+
to use php.exe which can be found in the sapi directory of your
238+
PHP distribution.
239+
236240
Note, we consider installing PHP like this suicidal.
237241

238242
As a further precaution, we recommend you change the "/php/"
@@ -288,9 +292,12 @@ Web server configuration
288292
Type in the extension you wish to use for your php scripts. ex: .php
289293
Double click on the new string value and enter the path to
290294
php.exe in the value data field.
291-
ex: c:\php\php.exe
295+
ex: c:\php\sapi\php.exe
292296
Repeat these steps for each extension you wish to associate
293297
with PHP scripts.
298+
Please note that you cannot use php-cli.exe with your webserver, you need
299+
to use php.exe which can be found in the sapi directory of your PHP
300+
distribution.
294301

295302
The following steps do not affect the web server installation and only
296303
apply if you want your php scripts to be executed when they are run
@@ -348,7 +355,11 @@ Web server configuration
348355
and then enter the App Mappings tab.
349356

350357
Click Add, and in the Executable box, type:
351-
c:\php\php.exe (assuming that you have unzipped PHP in c:\php\).
358+
c:\php\sapi\php.exe (assuming that you have unzipped PHP in c:\php\).
359+
360+
Please note that you cannot use php-cli.exe with your webserver, you need
361+
to use php.exe which can be found in the sapi directory of your PHP
362+
distribution.
352363

353364
In the Extension box, type the file name extension you want
354365
associated with PHP scripts. Leave 'Method exclusions'
@@ -399,7 +410,7 @@ Web server configuration
399410
tray and select 'Properties'
400411
Step 3: Click on 'Web Server Global Settings'
401412
Step 4: On the 'External' tab, enter:
402-
virtual = .php | actual = c:\path-to-php-dir\php.exe
413+
virtual = .php | actual = c:\php\sapi\php.exe
403414
and use the Add button.
404415
Step 5: On the Mime tab, enter:
405416
virtual = wwwserver/stdcgi | actual = .php
@@ -431,9 +442,13 @@ Web server configuration
431442
Edit the Server Properties and select the tab "Mapping".
432443

433444
From the List select "Associations" and enter the desired
434-
extension (".php") and the path to the CGI exe (ex. c:\php\php.exe)
445+
extension (".php") and the path to the CGI exe (ex. c:\php\sapi\php.exe)
435446
or the ISAPI dll file (ex. c:\php\sapi\php4isapi.dll).
436447

448+
Please note that you cannot use php-cli.exe with your webserver, you need
449+
to use php.exe which can be found in the sapi directory of your PHP
450+
distribution.
451+
437452
Select "Content Types" add the same extension ".php"
438453
and enter the content type. If you choose the CGI exe
439454
file, enter 'wwwserver/shellcgi', if you chose the
@@ -458,7 +473,11 @@ Web server configuration
458473
into the field File extensions (.xxx).
459474

460475
In Filter command or script put the path and name
461-
of your php executable i.e. c:\php\php.exe.
476+
of your php executable i.e. c:\php\sapi\php.exe.
477+
478+
Please note that you cannot use php-cli.exe with your webserver, you need
479+
to use php.exe which can be found in the sapi directory of your PHP
480+
distribution.
462481

463482
Press the 'Save' icon.
464483

@@ -473,7 +492,11 @@ Web server configuration
473492

474493
Make a file assocition from the command line (type the 2 following lines)
475494
assoc .php=PHPScript
476-
ftype PHPScript=c:\php\php.exe %1 %*
495+
ftype PHPScript=c:\php\sapi\php.exe %1 %*
496+
497+
Please note that you cannot use php-cli.exe with your webserver, you need
498+
to use php.exe which can be found in the sapi directory of your PHP
499+
distribution.
477500

478501
In the Netscape Enterprise Administration Server create a dummy shellcgi
479502
directory and remove it just after (this step creates 5 important lines in

0 commit comments

Comments
 (0)