Installing PHP 7.0 - Windows

This Article will describe the PHP 7.0 installation with Apache 2.4 to use ScriptCase.

Supported Operating Systems:

  • Windows Server
    • 2008 SP2
    • 2008 R2 SP1
    • 2012
    • 2012 SP2
    • 2016
  • Windows
    • 7 SP1
    • Vista SP2
    • 8
    • 8.1
    • 10

Necessary Files:

You should download PHP 7.0 NTS ( x86 or x64 ), Apache 2.4 ( x86 or x64 ) and mod_fcgi ( x86 or x64 ).

  • After downloading, extract the PHP and Apache files in your C: drive of your Operating System
  • Rename the PHP folder to php and the Apache folder to Apache24
  • Extract the modfcgi file, and copy the file to the folder C:\Apache24\modules

Apache and PHP Directory

Setting up Apache

Edit the file httpd.conf located in C:\Apache24\conf\

  • Add the content below after the last line of the #LoadModule

LoadModule fcgid_module modules/ FcgidInitialEnv PHPRC "c:/php" AddHandler fcgid-script .php FcgidWrapper "c:/php/php-cgi.exe" .php

Setting up httpd php fcgi

  • Still in the httpd.conf look for #ServerName and alter is to #ServerName localhost:80
  • Change the content of the directive<IfModule dir_module> acoording to example below:

<IfModule dir_module> DirectoryIndex index.html index.php index.phtml </IfModule>

  • Add the text: Options ExecCGI on the directive Directory “c/:Apache24/htdocs”

Settung up httpd fcgi

  • Look for IfModule mime_module and add the content below: `<Directory “c:/php”> AllowOverride None Options None Require all granted


Setting up httpd PHP directory

Apache Installation

  • Access the command prompt with the Administrator privileges and run the command below:
    • c:\apache24\bin\httpd.exe -k install Installing Apache 2.4

Important: In cas of an error, and informed that the file msvcr110.dll is missing, you can download the file clicking here. Extract and place the file in the directory : C:\Windows\System and C:\Windows\System32. Run the command again in the command prompt.

Setting up PHP

  • Access the PHP folder in C:\ and rename the file php.ini-development to php.ini
  • Edit the file php.ini , look for extension_dir and apply this value “C:\php\ext” PHP extension
  • Activate the extensions listed below (just remove the (;) from the start of each line) extension=php_bz2.dll extension=php_curl.dll extension=php_gd2.dll extension=php_imap.dll extension=php_interbase.dll extension=php_ldap.dll extension=php_mbstring.dll extension=php_exif.dll extension=php_mysql.dll extension=php_mysqli.dll extension=php_oci8.dll extension=php_pdo_firebird.dll extension=php_pdo_mssql.dll extension=php_pdo_mysql.dll extension=php_pdo_oci.dll extension=php_pdo_odbc.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pgsql.dll extension=php_pspell.dll extension=php_shmop.dll extension=php_sqlite.dll extension=php_sqlite3.dll extension=php_xmlrpc.dll extension=php_xsl.dll extension=php_zip.dll

Important: By default some of the PHP functions are disable, but they are important for ScriptCase. Access the php.ini file and alter the line of the item disable_functions according to the example below: * disable_functions= ““

Setup the TimeZone according to your region. You need to use the value available at the PHP documentation Click Here to view TimeZone do PHP

  • Save the modifications.
  • Restart the Apache service using the command ( in the cmd with Administrator privileges ):
    • c:\apache24\bin\httpd.exe -k restart

Enabling SourceGuardian Loader

  • Extract the file below
  • Copy the file to the folder c:\php\ext
  • Edit the file php.ini, at the end of the file place the content below:
  • [SourceGuardian] zend_extension=C:\php\ext\

  • Restart the Apache service using the command (in the cmd with Administrator privileges):
    • c:\apache24\bin\httpd.exe -k restart