Installing PHP 7.0 - Linux

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

Supported Operating Systems:

  • Linux
    • Debian
    • CentOS\RHEL
    • OpenSuse

Necessary Files:

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:
    • apt-get install php-7.0 php7.0-dev php7.0-cli php7.0-pear

Accept the installation of the dependencies.

  • Verify the version of the PHP by executing the command below:
    • php -v

Important: By default some of the PHP functions are disable, but they are important for ScriptCase. Access the php.ini file (/etc/php5/apache2/php.ini) and alter the line of the item disable_functions according to the exemple below:

Setting up the disable_functions of PHP

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

Activating the extension of the Database:

  • Microsoft SQL Server:
    • apt-get install php7.0-mssql
  • PostgreSQL:
    • apt-get install php7.0-pgsql
  • MySQL:
    • apt-get install php7.0-mysql
  • SQLite:
    • apt-get install php7.0-sqlite
  • FireBird:
    • apt-get install php7.0-interbase
  • Odbc:
    • apt-get install php7.0-odbc

Activating the GD library

This library is necessary to render the images.

  • Use the command below:
    • apt-get install php7.0-gd

Accept the installation of the dependencies.

Enabling SourceGuardian Loader

  • Create a folder to place the file ixed.7.0.lin
    • sudo mkdir /usr/lib/php7/sourceguardian
  • Copy the file ixed.7.0.lin that was downloaded according to your architecture to the folder /usr/lib/php7/sourceguardian
    • cp ixed.7.0.lin /usr/lib/php7/sourceguardian
  • Configure the permission to Total Control for this folder:
    • chmod 777 -R /usr/lib/php7/sourceguardian
  • Edit the file php.ini and add the to the end of the file the content below:
    • [SourceGuardian] zend_extension=/usr/lib/php7/sourceguardian/ixed.7.0.lin
  • Restart the Apache service using the command below:
    • sudo /etc/init.d/apache2 restart