# Install IIS on Windows Server

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

![](https://help.scriptcase.net/galleryDocuments/edbsn8fde508d349d6817591f169afb8e4a67b6f18757364b786c30d1816f199be39f228d9f5e24e58ff37e34ec1e6a3c4962?inline=true)

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

![](https://help.scriptcase.net/galleryDocuments/edbsnd92b93059f022239b543d368eb36b7a3596dc1423830e883e0bbe89c6e1c0d6d0e23ceb9962e236f36b7a16e7087482e?inline=true)

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

![](https://help.scriptcase.net/galleryDocuments/edbsnd92b93059f022239b543d368eb36b7a344472bd2747b471604ba6fdf96e6ef503f58b23d50ee981756664b56e84f15e7?inline=true)

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

![](https://help.scriptcase.net/galleryDocuments/edbsn1e0fc8faefac130b5cecd17df999e6106c1e3c1210a9a105442ec48e9a5827b4b76197e0081048bbfccb810f550b75e4?inline=true)

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

![](https://help.scriptcase.net/galleryDocuments/edbsn8fde508d349d6817591f169afb8e4a6742aa1484cfaaa30a18c7172ec8211b330affb5ce124ebb8e9f170806f524a390?inline=true)

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

![](https://help.scriptcase.net/galleryDocuments/edbsn2ebe5a905b69cdd3e5f5ca8181f33919e271df1261eb6537fc3b689cba3f78cc4fb9611be4efc7646c241a2bd1a870b0?inline=true)

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

![](https://help.scriptcase.net/galleryDocuments/edbsn14ca17e48914a6d38af9c060f3e9487093459470d70b5217005ed65a87f855e42cc77ba70bfec5d5b1332fbcdf6f0aba?inline=true)

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

![](https://help.scriptcase.net/galleryDocuments/edbsn2a79d2178e4295d5413cfb5d99863a4bb4464cc85ef532788f44eb6f1f7cf3d3c0e9320905b622bbc52fe2135ae39173?inline=true)

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

![](https://help.scriptcase.net/galleryDocuments/edbsn4d3d6c7936ff7e4603a9565eb82d37a4f7ae8454b57528e342d60285edd3ec3968eefc501646ed3777eaa550e083577c?inline=true)

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

![](https://help.scriptcase.net/galleryDocuments/edbsna2ae68ba3ddc85684ebc646eac44ea68da823d01372b6cb560ce6e1907cacf43260bc5062705b33e35a47d795d63a861?inline=true)

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

![](https://help.scriptcase.net/galleryDocuments/edbsn4d3d6c7936ff7e4603a9565eb82d37a48d4a3b0f35970d941df22deaf8aa4ec924c64edd8b567dd9f5d709593dcff1a3?inline=true)

To verify that IIS installed successfully, type the following into a web browser:

![](https://img.zohostatic.com/zde/static/images/file.png)

<http://localhost>

You should see the default IIS Welcome page, check the example below:

![](https://help.scriptcase.net/galleryDocuments/edbsn4d3d6c7936ff7e4603a9565eb82d37a4df817114f3c83a2e4f9ac26ccb35aa52007805bea91f43a126694e0ebd1bd294?inline=true)

# 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](https://windows.php.net/download/) and download the **PHP 8.1 non-thread-safe zip package** .

![](https://help.scriptcase.net/galleryDocuments/edbsn4d3d6c7936ff7e4603a9565eb82d37a40d3cae38713345944ec83a6807ad0fada353dff4c64e7a14d911e7552a4affac?inline=true)

**2) Download** the [WinCache extension from the List of Windows Extensions](https://sourceforge.net/projects/wincache/) for PHP.

![](https://help.scriptcase.net/galleryDocuments/edbsna4ce33bc8529ddbabe62c4dc0df215f51f53f8de253caff2689900854e7a3cd32d17b393f61097d52c7ab64609cdb3d4?inline=true)

**3)** Extract all files in the PHP .zip package to a folder of your choice, for example:

![](https://img.zohostatic.com/zde/static/images/info.png)

In this documentation we are using php installation in Windows root **C:\php\**

**![](https://help.scriptcase.net/galleryDocuments/edbsnd92b93059f022239b543d368eb36b7a349c195ddd45f2c9b270ca1c95aee024cf15a86345e5ca310766388efe73b37f1?inline=true)**

**4)** Extract the WinCache .zip package to the PHP extensions folder (**C:\php\****ext**), click **OK:**

![](https://img.zohostatic.com/zde/static/images/file.png)

The WinCache .zip package contains one file (**Php\_wincache.dll**).

![](https://help.scriptcase.net/galleryDocuments/edbsnd92b93059f022239b543d368eb36b7a338766749b61d74a10d0ee000489741c75adf62d2286b3ab179b5a52bc8f69c23?inline=true)

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

![](https://help.scriptcase.net/galleryDocuments/edbsn2a79d2178e4295d5413cfb5d99863a4b4958ce7202179998c30103ee394788112d6745f839fc9af2e61025581c044ae2?inline=true)

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

![](https://help.scriptcase.net/galleryDocuments/edbsn8fde508d349d6817591f169afb8e4a67e248db6234ce9081f149d12d0adce39740c4a08579a7f3c56759c9ab7c6d3e43?inline=true)

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

![](https://help.scriptcase.net/galleryDocuments/edbsnd92b93059f022239b543d368eb36b7a3947f35dc323e243c62c6f9c3726e4fef4e2bb20e52dd215c2af7ada806665710?inline=true)

**8)** Open **IIS Manager.**

![](https://help.scriptcase.net/galleryDocuments/edbsnf6f32be22437a57c0f94c1e4daa91e342fa6f8d25fa9ebb1440ae43adaf80059ac60e5298efd63cce0bf2c71d7c74bc6?inline=true)

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

![](https://help.scriptcase.net/galleryDocuments/edbsna4ce33bc8529ddbabe62c4dc0df215f5a8327d536bba5db3eadea2e350e006941ebf0fdb3eb9350d3ab3649137e6881a?inline=true)

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

![](https://help.scriptcase.net/galleryDocuments/edbsnd92b93059f022239b543d368eb36b7a3dabd1d26357691695403891c27b0fb8b32caa1465795b4efd0c978900ea11c5c?inline=true)

**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**.**

![](https://help.scriptcase.net/galleryDocuments/edbsnae5dfe0ee6f7f996d3e53287ee202fd7fdaa687bf99eef4d28347b5776d3d0a9beb8f8b421d499a47edd9cc6e9837153?inline=true)

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

![](https://help.scriptcase.net/galleryDocuments/edbsn1e0fc8faefac130b5cecd17df999e6101fd23daa61d1755a4c391186d2569698efe04a97e7155e6b224d7166faa83319?inline=true)

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

![](https://help.scriptcase.net/galleryDocuments/edbsnae5dfe0ee6f7f996d3e53287ee202fd7c1c05a44505c35b2582df3dc7df9c69345dfa965ef89c64750b743670ef119bf?inline=true)

## 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**).

![](https://img.zohostatic.com/zde/static/images/caution.png)

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`

| Extensions | Driver enabled in Scriptcase |
| --- | --- |
| `extension=mysqli` | MySQLi |
| `extension=odbc` | DB2 ODBC GENERIC, DB2 ODBC GENERIC 6, Generic ODBC, MS Access ODBC, MS SQL Server ODBC, Oracle ODBC, Progress |
| `extension=pdo_mysql` | MySQL PDO |
| `extension=pdo_odbc` | DB2 PDO ODBC, Progress PDO ODBC, Sybase PDO ODBC |
| `extension=pdo_pgsql` | PostgreSQL PDO |
| `extension=pdo_sqlite` | SQLite PDO |
| `extension=pgsql` | PostgreSQL 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.**

![](https://img.zohostatic.com/zde/static/images/info.png)

If you haven’t downloaded it yet [click here](https://www.sourceguardian.com/loaders.html) 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](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/install/windows/loader_file.png)

**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](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/install/windows/loader_ext.png)

**4 -** Restart the IIS 

![](https://help.scriptcase.net/galleryDocuments/edbsn24a4bcb29d921e66f7d6b9e82f6655bf1e8c95607d36d716379b3dae1e6cf59ce5b8fc51bb3d3298bf3d617fb0e2c456?inline=true)

**Manual Scriptcase Installation**

1) To install scriptcase, follow the documentation through this link: [Scriptcase Typical Installation](https://www.scriptcase.net/docs/en_us/v9/manual/02-scriptcase-installation/08-manual_sc/index.html)