Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Installations of ProVision 7.x and newer require  PHP 7.0 1 (and related extensions). CentOS 6 comes with PHP 5.3 by default. You can either add a repository which provides PHP 7.0 1 or install PHP manually.

The Webtatic and Remi repos both have versions of PHP which are newer than those in the official repos. For this example, we'll be using Webtatic

Add the repository:

Code Block
languagebash
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm

Update:

 

Code Block
languagepowershell
yum update

 

Install:

Expand

PHP 7.0 1 / Apache2 / extensions

  • httpd 
  • php70w php71w 
  • php7071w-opcache 
  • php7071w-mysqlnd 
  • php7071w-pdo 
  • php7071w-ldap 
  • php7071w-pecl-memcache 
  • php7071w-bcmath 
  • php7071w-devel 
  • php7071w-pear 
  • php7071w-cli

Development tools for pecl / additional system packages:

  • curl 
  • openssl 
  • memcached 
  • mod_ssl

 


Code Block
languagebash
yum install httpd php70wphp71w php70wphp71w-opcache php70wphp71w-mysqlnd php70wphp71w-pdo php70wphp71w-ldap php70wphp71w-pecl-memcache php70wphp71w-bcmath php70wphp71w-devel php70wphp71w-pear php70wphp71w-cli curl openssl memcached mod_ssl

MySQL

...

 

Code Block
languagebash
mysql -p -e "SET GLOBAL sql_mode='NO_ENGINE_SUBSTITUTION';SET SESSION sql_mode='NO_ENGINE_SUBSTITUTION';"

then enter the MySQL root password when prompted.


Note
titleMySQL Packet Size Configuration
 We recommend setting the max_allowed_packet setting in the MySQL configuration file to 128MB (or similar) to account for the typical dataset size handled in ProVision.

 


4) Optional configurations:

Configure SELinux

Warning
titleREAD THIS BEFORE YOU USE SELINUX

SELinux is a very powerful method of securing the CentOS environment, but it is not "turn key" and requires expertise to configure it correctly. If you do not know how to configure SELinux, please do not use it. A badly configured SELinux install will not work well and result in frustration. If you have any questions or concerns about this - please contact 6connect Support at support@6connect.com.


Note
titleRE-IP WARNING

Please remember - if you change the IP address of the your server, then you will need to update SELinux functions accordingly


Most CentOS install have SELinux enabled by default.  One of its protections is to not allow   httpd daemon to make network connections, we need to disable this for license checks.

   To view the SELinux configuration for http:

 

Code Block
languagebash
/usr/sbin/getsebool -a | grep httpd

 

   To turn protection off for the httpd daemon for creating network connections:

 

Code Block
languagebash
   /usr/sbin/setsebool -P httpd_can_network_connect 1

 

Configure IPTables

IPTables is enabled by default on CentOS.  Add a new rule to allow 443 from anywhere.  Make sure that this rule is in the chain BEFORE any blanket reject rule:

 

...

Code Block
languagebash
 tar -xf productionBuild-7.x.x-php7.01.tar -C /var/www/html

2. Change the permissions to be the web user permissions

...