Install PHP
Note: For customers running PCR-360 Versions 2024.2 or later, PHP 8.3 is required
Check the System Requirements page for your version of PCR-360 to ensure the correct version of PHP is installed:
System Requirements
Below is an example using PHP 8.3.
This may not be the verson of PHP needed.
Checking the system requirements is a must.
These examples must be modfied to the correct version for live application.
Install PHP 7.2 (PCR-360 Versions 2018.1 through 2020.2), Or PHP 7.4 (Versions 2020.3 and later)
yum remove php*
# RHEL8
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm http://rpms.remirepo.net/enterprise/remi-release-8.rpm yum-utils
# RHEL9
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm http://rpms.remirepo.net/enterprise/remi-release-9.rpm yum-utils
# RHEL 8 & 9
sudo dnf module reset php
sudo dnf module enable php:remi-8.3 -y
yum install php
Update the PHP INI
BASHvim /etc/php.ini # Update each line as specified # Set max memory to 1 Gb memory_limit = 1024M # Set the max file upload size to 10 Megabytes upload_max_filesize = 10M # This would need to be set to the timezone in which the Server is located date.timezone = America/Detroit
Install require PHP mods
BASHyum install php-process php-xml php-pecl-apcu php-gd php-intl php-mbstring php-pdo php-soap php-pecl-zip php-fpm # If required install the ldap mod yum install php-ldap # If required install the MySQL mod yum install php-mysqlnd # If required install the OCI8 (Oracle) mod yum install php-oci8
Restart Apache
CODEsystemctl restart httpd systemctl restart php-fpm
Install Composer
Downloading Composer
You can download Composer using curl. First, ensure curl is installed:
sudo dnf install curl
Then, download the Composer installer script:
curl -sS https://getcomposer.org/installer | php
Step 3: Installing Composer Globally
To use Composer globally, move the composer.phar file to a global path:
sudo mv composer.phar /usr/local/bin/composer
Make the file executable:
chmod +x /usr/local/bin/composer
Verify the installation:
composer --version