This article describes the PHP 7.0 and Apache 2.4 installation to ScriptCase use.

**Supported Operating Systems:**

- Mac
  - El Captain
  - Sierra

**Necessary Files:**

- SourceGuardian Loader: [Click Here](https://www.sourceguardian.com/loaders.html)

## Setting up PHP

- Access the terminal (shell) and execute the command below to use the superuser (root):
  - `sudo su`
- Execute the command below to install PHP:
  - `curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0`
- Directory Installation
  - `/usr/local/php7.0`

## Setting up Apache

- Edit the file httpd.conf:
  - `nano /etc/apache2/httpd.conf`
- Add the content below to the bottom of the module:
  - `LoadModule php7_module /usr/local/php7.0/libphp7.so`

![Setting up PHP module](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/install/mac/modulos_php.png)

- Edit the file paths:
  - `sudo nano /etc/paths`
- Add the content below to the top of the file:
  - `/usr/local/php7.0/bin`

![Setting up PHP path](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/install/mac/path_php.png)

- In **/Library/WebServer/Documents/** create a file called **info.php** with the content below:
  - `php phpinfo(); ?`
- Access it through the browser:
  - <http://localhost/info.php>

## Enabling SourceGuardian Loader

- Copy the file ixed.7.0.dar that was downloaded according to your architecture to the folder **/usr/local/zend/lib/php\_extensions**
  - `cp ixed.7.0.dar /usr/local/zend/lib/php_extensions`
- Configure the file’s permission:
  - `chmod 777 -R /usr/local/zend/lib/php_extensions/ixed.7.0.dar`
- Edit the **php.ini** file in **/usr/local/zend/etc/** and add the content below to the file’s bottom:
  - `[SourceGuardian]` zend\_extension=/usr/local/zend/lib/php\_extensions/ixed.7.0.dar
- Restart the Apache service using the command below:
  - `sudo /usr/sbin/apachectl stop`
  - `sudo /usr/sbin/apachectl start`

## Scriptcase Manual Installation

- Download ScriptCase with the extension zip at www.scriptcase.net and extract it on the root of your web server.
- After extracting, rename the folder to scriptcase.
- Access Scriptcase from your browser using the URL below:
  - **<http://127.0.0.1/scriptcase>**
- By default, the selected language is English.

![Installation's initial page](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/install/manual_sc/tela_inicial.png)*By default the selected language is English.*

- Verifying the necessary extensions for ScriptCase to work and the modules for the database connections.

![Verifying the necessary extensions for ScriptCase to work and the modules for the database connections.](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/install/manual_sc/tela_extensoes_php.png)*Verifying the necessary extensions for ScriptCase to work and the modules for the database connections.*

## Typical Installation

- On this option, ScriptCase will be installed with the default settings.

![On this option, ScriptCase will be installed with the default settings.](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/install/manual_sc/tela_tipo_instalacao.png)*On this option, ScriptCase will be installed with the default settings.*

- Login Screen.

![Login Screen](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/install/manual_sc/tela_home.png)*Login Screen.*

## Custom Installation

- On this option, the user will choose the settings for the installation.

![On this option, the user will choose the settings for the installation](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/install/manual_sc/tela_tipo_instalacao_avancada.png)*On this option, the user will choose the settings for the installation.*

- Verify the system’s directory permissions.

![Verify the system's directory permissions](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/install/manual_sc/tela_avancada_diretorios.png)*VVerify the system’s directory permissions.*

- We can choose the database that ScriptCase will use to store the data in.

![We can choose the database that ScriptCase will use to store the data in](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/install/manual_sc/tela_avancada_banco.png)*We can choose the database that ScriptCase will use to store the data in.*

- Displaying the ScriptCase’s tables creation.

![Displaying the ScriptCase's tables creation](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/install/manual_sc/tela_avancada_tabelas.png)*Displaying the ScriptCase’s tables creation.*

- Setting up the user to access ScriptCase.

![Setting up the user to access ScriptCase](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/install/manual_sc/tela_avancada_usuario.png)*Setting up the user to access ScriptCase.*

- Finishing the custom installation

![Finishing the custom installation](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/install/manual_sc/tela_avancada_final.png)*Finishing the custom installation*

- Login Screen.

![Login Screen](https://www.scriptcase.net/docs/en_us/v9/assets/images/docs/install/manual_sc/tela_home.png)*Login Screen.*