Installing PHP 7.0 - Linux

Installing PHP 7.0 - Linux

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

Supported Operating Systems:

Ubuntu
Debian
CentOS\RHEL
OpenSuse


Necessary Files: SourceGuardian Loader (ixed.7.0.lin): Click Here

Setting Up PHP - Ubuntu


Because of recent changes, Ubuntu replaced the version 7.0 from PHP by the 7.2 version in the default repository.


1 - Access the terminal (shell) and execute the command below to use the superuser (root):

  • sudo su

2 - Add the repository so that you can realize the download of the PHP packages in the correct version:

  • add-apt-repository ppa:ondrej/php
  • apt-get update

3 - Execute the command below to install the PHP and accept the dependencies installation:

  • apt-get install php7.0 php7.0-dev php7.0-cli

4 - Verify the PHP version by executing the command below:

  • php -v

5 - There is below some extensions required for the good functioning of Scriptcase:

  • apt-get install php7.0-gd php7.0-bcmath php7.0-cgi php7.0-common php7.0-fpm php7.0-json php7.0-ldap php7.0-mbstring php7.0-mcrypt php7.0-xml php7.0-zip


Important: By default some PHP functions are disabled, but they are important for ScriptCase. Access the php.ini file (/etc/php/7.0/apache2/php.ini) and change this item disable_functions according to the example below:


Setting up the disable_functions of PHP

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

Activating The Database’s Extensions:

Extension
Driver enabled in Scriptcase
apt-get install php7.0-pgsql
PostgreSQL PDO, PostgreSQL 6.3 or bellow, PostgreSQL 6.4 or above, PostgreSQL 7 ou above
apt-get install php7.0-mysql
MySQLi, MySQL PDO
apt-get install php7.0-sqlite
SQLite PDO
apt-get install php7.0-interbase
Firebird, Interbase 6, Interbase 6.5, Firebird PDO
apt-get install php7.0-odbc
DB2 ODBC GENERIC, DB2 ODBC GENERIC 6, Generic ODBC, MS Access ODBC, Oracle ODBC, Progress, DB2 PDO ODBC, Progress PDO ODBC, Sybase PDO ODBC
apt-get install php7.0-sybase
DBLIB, Sybase PDO DBLIB


If you want to enable the oci8 extension to connect with Oracle Database, follow the steps described in our documentation.

Setting Up PHP - Debian

Because of recent changes, Ubuntu replaced the version 7.0 from PHP by the 7.2 version in the default repository.

1 - Access the terminal (shell) and run the command below to use the superuser (root):


  1. su

2 - Add the repository so that you can download the PHP 7.0 packages and then upgrade the packages:


3 - Run the command below to install PHP and accept the installation of dependencies:


  • apt-get install php7.0 php7.0-cli

4 - Check the PHP version by running the command below:

  • php -v

5 - Below are some extensions required for the proper functioning of Scriptcase:

  • apt-get install php7.0-gd php7.0-bcmath php7.0-cgi php7.0-common php7.0-fpm php7.0-json php7.0-ldap php7.0-mbstring php7.0-mcrypt php7.0-xml php7.0-zip

6 - Configure the TimeZone according to your region. You should use the value available in the PHP documentation. Click here to view.

Activation of Database Extensions:

Extension
Driver enabled in Scriptcase
apt-get install php7.0-pgsql
PostgreSQL PDO, PostgreSQL 6.3 or below, PostgreSQL 6.4 or above , PostgreSQL 7 ou above
apt-get install php7.0-mysql
MySQLi, MySQL PDO
apt-get install php7.0-sqlite
SQLite PDO
apt-get install php7.0-interbase
Firebird, Interbase 6, Interbase 6.5, Firebird PDO
apt-get install php7.0-odbc
DB2 ODBC GENERIC, DB2 ODBC GENERIC 6, Generic ODBC, MS Access ODBC, Oracle ODBC, Progress, DB2 PDO ODBC, Progress PDO ODBC, Sybase PDO ODBC
apt-get install php7.0-sybase
DBLIB, Sybase PDO DBLIB


If you want to enable the oci8 extension to connect with Oracle Database, follow the steps described in our documentation.

Setting Up PHP - CentOS 7


Note: By changes to the latest version of CentOS, PHP 7.0 will not be installed by default. You will need to follow the steps described below:

1 - Access the terminal (shell) and run the command below to use the root user:

  • sudo su

2 - Add the repositories you need to download php 7.0 packages and then upgrade the packages:


3 - Run the command below to install PHP and accept the installation of dependencies:

  • yum -y install php

4 - Check the PHP version by running the command below:

php -v

5 - Below are some extensions required for the proper functioning of Scriptcase:

yum install php70-php-gd.x86_64 php70-php-bcmath.x86_64 php70-php-common.x86_64 php70-php-ldap.x86_64 php70-php-mbstring.x86_64 php70-php-mcrypt.x86_64 php70-php-xml.x86_64 php70-php-pdo.x86_64 php70-php-pear.x86_64

6 - Configure the TimeZone according to your region. You should use the value available in the PHP documentation. Click here to view.

Activation of Database Extensions:

Extension
Driver enabled in Scriptcase
yum install php70-php-pgsql.x86_64
PostgreSQL PDO, PostgreSQL 6.3 or below, PostgreSQL 6.4 or above, PostgreSQL 7 or above
yum install php70-php-mysql.x86_64
MySQLi, MySQL PDO
yum install php-sqlite3
SQLite PDO
yum install php70-php-interbase.x86_64
Firebird, Interbase 6, Interbase 6.5, Firebird PDO
yum install php70-php-odbc.x86_64
DB2 ODBC GENERIC, DB2 ODBC GENERIC 6, Generic ODBC, MS Access ODBC, Oracle ODBC, Progress, DB2 PDO ODBC, Progress PDO ODBC, Sybase PDO ODBC
yum install php70-php-pdo-dblib.x86_64
DBLIB, Sybase PDO DBLIB
If you want to enable the oci8 extension to connect with Oracle Database, follow the steps described in our documentation.

Enabling SourceGuardian Loader

1 - Realize the download of the extension ixed.7.0.lin for the 64 bits architecture from the SourceGuardian’s website through this link.

2 - Copy the file ixed.7.0.lin that was downloaded in according with your distribution and architecture and paste in the PHP’s extensions directory.

  • cp ixed.7.0.lin /usr/lib/php/20151012

3 - Edit the PHP configuration file(php.ini) and add the directive to enable the SourceGuardian extension in your PHP.
 For example: extension=ixed.7.0.lin.

  • nano /etc/php/7.0/apache2/php.ini

SourceGuardian extension

4 - In the end, restart your apache service to apply the changes made:

  • service apache2 restart.

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: 
  • By default, the selected language is English.

Installation's initial page

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

Typical Installation

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

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

  • Login Screen.

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

  • Verify the system’s directory permissions.

Verify 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

  • Displaying the ScriptCase’s tables creation.

Displaying the ScriptCase's tables creation

  • Setting up the user to access ScriptCase.

Setting up the user to access ScriptCase

  • Finishing the custom installation

Finishing the custom installation

  • Login Screen.

Login Screen




    • Related Articles

    • Manual Update - Linux

      Before performing any procedure we recommend performing a backup of your projects. To back up Scriptcase: Go to Options > Settings, in the side menu go to Services > Backup. A file (.ZIP) will be generated with all your projects, save this file to a ...
    • 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 ...
    • Installing PHP 7.0 - Windows

      This article explains PHP 7.0 and Apache 2.4 installation to ScriptCase use. 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: PHP 7.0: Click Here Apache 2.4: Click ...
    • Installing PHP 7.0 - Mac

      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 Setting up PHP Access the terminal (shell) and execute the command ...
    • Oracle Connection - Scriptcase 9 - Linux 64 Bits

      This procedure will only work if you have a Scriptcase manual installation in your server. Installing PHP 7.0 Installing the Scriptcase Manually To connect with Oracle in a Linux System, we must follow these steps below: Step 1 -  Installing these ...
    • Popular Articles

    • Examples for diagrams

      This tutorial shows how you can import and use the new examples for diagrams released with Scriptpcase V9.2.16.  The applications were created using the components: Jsmind, JKanban e Orgchart.  - Sample 1: Mind Map diagram Click here to  execute the ...
    • Oracle Connection - Scriptcase 9 - Linux 64 Bits

      This procedure will only work if you have a Scriptcase manual installation in your server. Installing PHP 7.0 Installing the Scriptcase Manually To connect with Oracle in a Linux System, we must follow these steps below: Step 1 -  Installing these ...
    • Correcting access error for the Scriptcase database

      Sometimes we encounter an error accessing the Scriptcase database itself, as shown in the image below:   This problem happens when we change the folder name of the scriptcase to another name, such as "sc". Then, the error happens because the complete ...
    • Necessary libraries to install the Scriptcase in Windows 7

      To install Windows 7 SP1, you need to verify that the system has the following items installed: * Visual C ++ Redistributable Packages for Visual Studio (2008) x86 and x64. * Visual C ++ Redistributable Packages for Visual Studio (2010) x86 and x64. ...
    • Manual Update - Windows

      Before performing any procedure we recommend performing a backup of your projects. To back up Scriptcase: Go to Settings > Administration, in the side menu go to Services > Backup. A file (.ZIP) will be generated with all your projects, save this ...