...
All installations of ProVision require at least PHP 5.5 (and related extensions). CentOS 6 comes with PHP 5.3 by default. You can either add a repository which provides PHP 5.5 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 / Apache2 / extensions
Development tools for pecl / additional system packages:
|
Code Block | ||
---|---|---|
| ||
yum install httpd php55w php55w-opcache php55w-mysqlnd php55w-pdo php55w-ldap php55w-pecl-memcache php55w-bcmath php55w-devel php55w-pear php55w-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 it is not installedyou have an existing installation, you can replace it with:
Code Block | ||
---|---|---|
| ||
yum install mysql.`uname -i` yum-plugin-replace
yum replace mysql --replace-with mysql55w |
For a fresh install:
Code Block | ||
---|---|---|
| ||
yum install |
...
mysql55w mysql55w-server |
Then, re-start and configure.
Code Block | ||
---|---|---|
| ||
service mysqld start chkconfig mysqld on |
Code Block | ||
---|---|---|
| ||
/usr/bin/mysqladmin -u root password 'new-password' |
For an existing install / upgrade, you will need to upgrade the existing tables after the restart.
Code Block | ||
---|---|---|
| ||
mysql_upgrade -u root -p |
This will issue a password prompt for the user. If you don't have a root user password, remove the "-p".
DNS and Additional Utilities
...
Generate private key, CSR, and temporary key if one hasn't been provided.
Code Block | ||
---|---|---|
| ||
openssl genrsa -out ca.key 1024 openssl req -new -key ca.key -out ca.csr openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt |
...
Code Block | ||
---|---|---|
| ||
vi /etc/httpd/conf.d/ssl.conf |
Code Block | ||
---|---|---|
| ||
SSLCertificateFile /etc/pki/tls/certs/ca.crt SSLCertificateKeyFile /etc/pki/tls/private/ca.key |
Code Block | ||
---|---|---|
| ||
/etc/init.d/httpd restart |
Apache
...
Code Block | ||
---|---|---|
| ||
sed -i 's/AllowOverride None/AllowOverride All/g' /etc/httpd/conf/httpd.conf |
...
Set the MySQL Configuration:
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.
4) Optional configurations:
Configure SELinux
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 | ||
---|---|---|
| ||
yum install libssh2-devel pecl install -f ssh2 echo extension=ssh2.so > /etc/php.d/ssh2.ini |
Source Guardian
Note |
---|
Source Guardian is only required for ProVision versions 5.1.2 and earlier. If installing ProVision 5.1.3 or later, skip this step. |
Expand | ||
---|---|---|
| ||
Install the Source Guardian php extension. |
Download the loader and put it in the appropriate place. Place the file in your php extension directory as specified in your php.ini Note: The PHP cli binary path must be set in the ProVision software Admin section if is different from default. By default it is /usr/bin/php. Add extension=ixed.x.x.y.y to your php.ini
Reload the web server
|
4) Install 6connect ProVision Software:
...