...
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 | ||
---|---|---|
| ||
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm |
Update:
Code Block | ||
---|---|---|
| ||
yum update |
Install:
Expand |
---|
PHP 7.0 1 / Apache2 / extensions
Development tools for pecl / additional system packages:
|
Code Block | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
Please remember - if you change the IP address of the your server, then you will need to update SELinux functions accordingly |
Code Block | ||
---|---|---|
| ||
/usr/sbin/getsebool -a | grep httpd |
Code Block | ||
---|---|---|
| ||
/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 | ||
---|---|---|
| ||
tar -xf productionBuild-7.x.x-php7.01.tar -C /var/www/html |
2. Change the permissions to be the web user permissions
...