...
Code Block | ||
---|---|---|
| ||
yum update |
2) Install Required Packages
PHP
All installations Installations of ProVision require at least PHP 5.6 7.x and newer require PHP 7.0 (and related extensions). CentOS 6 comes with PHP 5.3 by default. You can either add a repository which provides PHP 57.6 0 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 |
---|
PHP5 PHP 7.0 / Apache2 / extensions
Development tools for pecl / additional system packages:
|
Code Block | ||
---|---|---|
| ||
yum install httpd php56wphp70w php56wphp70w-opcache php56wphp70w-mysqlnd php56wphp70w-pdo php56wphp70w-ldap php56wphp70w-pecl-memcache php56wphp70w-bcmath php56wphp70w-devel php56wphp70w-pear php56wphp70w-cli curl openssl memcached mod_ssl |
MySQL
MySQL is included with most CentOS installs, check for it with:
Code Block | ||
---|---|---|
| ||
yum list installed | grep mysql |
The default MySqL version included with most CentOS installs will need to be upgraded to the latest version:
Code Block | ||
---|---|---|
| ||
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm |
If you have an existing installation, you can replace it with:
Code Block | ||
---|---|---|
| ||
yum install mysql.`uname -i` yum-plugin-replace yum replace mysql --replace-with mysql56wmysql57w |
For a fresh install:
Code Block | ||
---|---|---|
| ||
yum install mysql56wmysql57w mysql56wmysql57w-server |
Then, re-start and configure.
Code Block | ||
---|---|---|
| ||
service mysqld start chkconfig mysqld on |
...
Code Block | ||
---|---|---|
| ||
sed -i 's/AllowOverride None/AllowOverride All/g' /etc/httpd/conf/httpd.conf |
...
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:
Expand | |||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||
To list all current IPTable rules:
To add a rule for 443:
To save the new config:
OR (some versions of centOS have different iptables names, so the above won't work)
With the file open for editing, add:
Once complete - restart the iptables service:
|
...
1. Remove the current contents in the ProVision web folder (currently the www root) and after extract the archive contents (where 57.x.x is the version number for the build) :
Code Block | ||
---|---|---|
| ||
tar -xf productionBuild-57.x.x-php5php7.60.tar -C /var/www/html |
2. Change the permissions to be the web user permissions
...