Setting environment manually PHP 8.1 - Windows IIS

Setting environment manually PHP 8.1 - Windows IIS

Install IIS on Windows Server


1) On the Start page, click the Server Manager tile.


2) In Server Manager, select Dashboard, and click Add roles and features.


3) In the Add Roles and Features Wizard, on the Before You Begin page, click Next.


4) On the Select Installation Type page, select Role-based or Feature-based Installation and click Next


5) On the Select Destination Server page, select Select a server from the server pool, select your server, and click Next.


6) On the Select Server Roles page, select Web Server (IIS), and then click Next.


7) Check "Include Management tools(if applicable)" and click "Add Features".



















8) On the Select Features page, note the preselected features that are installed by default, and then click Next. 


9) On the Web Server Role (IIS) click Next


10) On the Select Role Services page, note the preselected role services that are installed by default, and then select CGI checkbox, click next.

11) On the Confirm Installation Selections page, confirm your selections, check the option to restart the destination server automatically and then click Install.


To verify that IIS installed successfully, type the following into a web browser:
You should see the default IIS Welcome page, check the example below:


Download and Install PHP Manually

  1. Install PHP and WinCache.
  2. Add the PHP installation folder to the Path environment variable.
  3. Set up a handler mapping for PHP.
  4. Add default document entries for PHP.
  5. Test your PHP installation.

Download PHP and the WinCache extension.

1) Open your browser to Windows for PHP Download Page and download the PHP 8.1 non-thread-safe zip package .





3) Extract all files in the PHP .zip package to a folder of your choice, for example:
In this documentation we are using php installation in Windows root C:\php\




4) Extract the WinCache .zip package to the PHP extensions folder (C:\php\ext), click OK:
The WinCache .zip package contains one file (Php_wincache.dll).



5) Open Control Panel, click System and Security, click System, and then click Advanced system settings.



6) In the  Environment Variables option Under System variables, select Path option, and then click Edit.


7) Add the path to your PHP installation folder to the end of the Variable value, for example C:\php and Click OK.


8) Open IIS Manager.




9) Select the hostname of your computer in the Connections panel, and then double-click Handler Mappings.


10) In the Action panel, click Add Module Mapping.


Follow values below:

  1. In Request path, type: *.php.
  2. From the Module menu, select FastCgiModule.
  3. In the Executable box, type the full path to Php-cgi.exe, for example  C:\php\Php-cgi.exe.
  4. In Name, type a name for the module mapping, for example FastCGI, Click OK.




11) Select the hostname of your computer in the Connections panel, and double-click Default Document.


12) In the Action panel, click Add. Type Index.php and Default.php in the Name box, and then click OK.



Configuring PHP environment


1) Rename php.ini-development to php.ini in path c:\php

And change the following values in the php.ini file:

  • max_execution_time = 3600
  • max_input_time = 3600
  • max_input_vars = 10000
  • memory_limit = 1024M
  • post_max_size = 1024M
  • upload_max_filesize = 1024M
  • max_file_uploads = 200
  • short_open_tag = On

2) Enable the extensions listed below, by uncommenting them (Remove the semicolon ; at beginning of line).

You must enable the pdo_sqlite extension for scriptcase to work.

Default Extensions
  • extension=bz2
  • extension=curl
  • extension=gd2
  • extension=gettext
  • extension=imap
  • extension=ldap
  • extension=fileinfo
  • extension=mbstring
  • extension=openssl
  • extension=exif
  • extension=xsl
  • extension=soap
ExtensionsDriver enabled in Scriptcase
extension=mysqliMySQLi
extension=odbcDB2 ODBC GENERIC, DB2 ODBC GENERIC 6, Generic ODBC, MS Access ODBC, MS SQL Server ODBC, Oracle ODBC, Progress
extension=pdo_mysqlMySQL PDO
extension=pdo_odbcDB2 PDO ODBC, Progress PDO ODBC, Sybase PDO ODBC
extension=pdo_pgsqlPostgreSQL PDO
extension=pdo_sqliteSQLite PDO
extension=pgsqlPostgreSQL 6.3 or below, PostgreSQL 6.4 or above, PostgreSQL 7 ou Acima

Enabling the SourceGuardian Loader

Before you start the Scriptcase installation, you need to enable the loader responsible for encrypting Scriptcase in PHP. Follow the steps below to perform this action successfully.

1 - Extract the SourceGuardian Loader file downloaded.

If you haven’t downloaded it yet click here and download the file according to the architecture used.
2 - Copy the ixed.8.1.win file and paste it into the PHP extensions directory C:\php\ext.
Pasting SourceGuardian Loader File
3 - Edit the php.ini file and below the last line enter the path to the extension within the zend_extension parameter:

Example:  [SourceGuardian] zend_extension=C:\php\ext\ixed.8.1.win
Adicionando extensão do Loader no php.ini

4 - Restart the IIS 



Manual Scriptcase Installation
1) To install scriptcase, follow the documentation through this link: Scriptcase Typical Installation

    • Related Articles

    • Setting environment manually PHP 7.0 - Windows IIS

      First we will download the Microsoft Web Platform Installer, click here.  2. Then run and install the file you downloaded wpilauncher.exe  3. After installing the Microsoft Web Platform it would automatically open a window like the following: 4. As ...
    • Setting environment manually PHP 5.6 - Windows

      Installing a Manual PHP 5.6 Environment - Windows This article will explain how to install and set-up a PHP 5.6 environment with Apache 2.4 so that it'll run Scriptcase. Follow the steps below with caution. Download the  Apache 2.4  ,  mod_fcgid ...
    • Setting environment manually PHP 5.4 - Linux

      Manually Configuring Php on Debian-based distros First edit the sources.list file: sudo nano /etc/apt/sources.list Add the following line to the end of the file: deb-src http://packages.dotdeb.org all wheezy Update your system: sudo apt-get update ...
    • Setting environment manually PHP 5.6 - Linux

      Installing a Manual PHP 5.6 Environment - Linux This article will explain how to install and set-up a PHP 5.6 environment with Apache 2.4 so that it'll run Scriptcase. Follow the steps below with caution. Note: This article was based on the Debian ...
    • Setting Scriptcase on windows 2003 with IIS 6.0

      Pre - Requisites: IIS already installed Download the PHP binary from www.php.net, in this example we are going to use php - .1.1-Win32.zip Installing the PHP: Create a folder for PHP (ex: C:/PHP) and unzip the file php-5.1.1-Win32.zip to this folder. ...