Hi Hanns, John,
Sorry I havn't been able to get this information to you sooner,
I've attached details which will allow you to automatically configure NetServe
Web Server using a tool which now ships with NetServe, as well as details for
the manual process for the documentation team.
If I can provide any other information please email me,
Regards,
James
Net-X Solutions Ltd
www.netxsolutions.co.uk
On 10/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi PHP Team,
>
> I noticed that when installing PHP the Windows installer gives the option to
> automatically configure various Web Servers.
>
> Would it be possible for you to add NetServe Web Server to the list of Web
> Servers that can be automatically configured?
>
> It works from a simple configuration text file, and would be a trivial thing
> to add, but would really benifit the NetServe users that choose a PHP
> solution.
>
If you can provide John with instructions on how to configure the
webserver we can probably arrange it.
The PHP documentation team would also appreciate if you could tell us
how to configure the webserver manually so we can include those
instructions in our documentations.
-Hannes
How To Add PHP Support
NetServe Web Server supports many different scripting languages through the use
of the Common Gateway Interface (CGI), such as ASP, Perl and PHP.
There are three simple steps to successfully add PHP support to NetServe, they
are:
Download the PHP Interpreter from
http://www.php.net/downloads.php
Once downloaded run the installation package and follow its on screen prompts.
You will now need to add some NetServe settings.
Setting the File Extensions
Right click on the NetServe icon in the system tray (bottom right of screen)
and select "Server Options" from the menu.
Now click on the CGI Interpreters button, using the CGI Interpreters window,
enter "php" as the file extension, this will allow PHP to interpret files with
extensions of php.
Setting CGI Interpreter Path
Now enter the complete CGI Interpreter path, this will be the path where you
installed PHP, which by default would have been "C:\PHP\php.exe" clicking add
will add this Interpreter into the CGI Interpreters List, clicking OK will
confirm the changes.
If you plan on using the PHP Interpreter straight away, ensure that the "Use
CGI Interpreters" check box is ticked before clicking OK on this window.
In order to configure NetServe Web Server from v1.0.58 onwards the following
command lines can be used:
Note: Depending how you call the config.exe the ^ escape character should be
used whereever the | character is required.
C:\Program Files\NetServe Web Server\config.exe /add CGIInterpreters
php^|C:\Program Files\PHP\php.exe
C:\Program Files\NetServe Web Server\config.exe /add CustomCGIVariables
REDIRECT_STATUS^|200