@@ -233,6 +233,10 @@ Web server configuration
233
233
AddType application/x-httpd-php .php
234
234
Action application/x-httpd-php "/php/php.exe"
235
235
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
+
236
240
Note, we consider installing PHP like this suicidal.
237
241
238
242
As a further precaution, we recommend you change the "/php/"
@@ -288,9 +292,12 @@ Web server configuration
288
292
Type in the extension you wish to use for your php scripts. ex: .php
289
293
Double click on the new string value and enter the path to
290
294
php.exe in the value data field.
291
- ex: c:\php\php.exe
295
+ ex: c:\php\sapi\ php.exe
292
296
Repeat these steps for each extension you wish to associate
293
297
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.
294
301
295
302
The following steps do not affect the web server installation and only
296
303
apply if you want your php scripts to be executed when they are run
@@ -348,7 +355,11 @@ Web server configuration
348
355
and then enter the App Mappings tab.
349
356
350
357
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.
352
363
353
364
In the Extension box, type the file name extension you want
354
365
associated with PHP scripts. Leave 'Method exclusions'
@@ -399,7 +410,7 @@ Web server configuration
399
410
tray and select 'Properties'
400
411
Step 3: Click on 'Web Server Global Settings'
401
412
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
403
414
and use the Add button.
404
415
Step 5: On the Mime tab, enter:
405
416
virtual = wwwserver/stdcgi | actual = .php
@@ -431,9 +442,13 @@ Web server configuration
431
442
Edit the Server Properties and select the tab "Mapping".
432
443
433
444
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)
435
446
or the ISAPI dll file (ex. c:\php\sapi\php4isapi.dll).
436
447
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
+
437
452
Select "Content Types" add the same extension ".php"
438
453
and enter the content type. If you choose the CGI exe
439
454
file, enter 'wwwserver/shellcgi', if you chose the
@@ -458,7 +473,11 @@ Web server configuration
458
473
into the field File extensions (.xxx).
459
474
460
475
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.
462
481
463
482
Press the 'Save' icon.
464
483
@@ -473,7 +492,11 @@ Web server configuration
473
492
474
493
Make a file assocition from the command line (type the 2 following lines)
475
494
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.
477
500
478
501
In the Netscape Enterprise Administration Server create a dummy shellcgi
479
502
directory and remove it just after (this step creates 5 important lines in
0 commit comments