Document toolboxDocument toolbox

(2024.1) Install the PCR-360 Application Files

  1. Get required files from the Installer Repo:

    https://bitbucket.pcr.com/projects/PCR/repos/install360/browse/lib?at=refs%2Fheads%2Fcentos8


  2. Extract and copy the application files to the Apache web directory:

    # extract the archive tar -xzvf ./external/pcr360.tar.gz # create the applicaton directory mkdir -p /var/www/pcr360/prod mkdir -p /var/www/pcr360/configs # move the extracted files to the app mv ./pcr360/* /var/www/pcr360/prod # create data and misc folders mkdir -p /var/www/pcr360/prod/logs /var/www/pcr360/prod/data/cache /var/www/pcr360/prod/data/cache/page mkdir -p /var/www/pcr360/prod/data/tmp/prod /var/www/pcr360/prod/data/cache/prod /var/www/pcr360/prod/data/session/prod mkdir -p /var/www/pcr360/prod/data/archive /var/www/pcr360/prod/data/emails /var/www/pcr360/prod/data/errors /var/www/pcr360/prod/data/reports /var/www/pcr360/prod/data/reports/historical /var/www/pcr360/prod/data/search mkdir -p /var/www/pcr360/prod/data/uploads /var/www/pcr360/prod/data/uploads/importfiles /var/www/pcr360/prod/data/uploads/vh mkdir -p /var/www/pcr360/data/outbound /var/www/pcr360/data/inbound /var/www/pcr360/data/outbound-test /var/www/pcr360/data/inbound-test # copy default vh data to the vh import directory tar -xzvf vhdata.tar.gz -C /var/www/pcr360/prod/data/uploads/vh



  3. Set file permissions

    1. Allow read/write access to the PCR user for the entire folder

    2. Allow read/write access to Apache for the data and logs folders

      # set file permissions chown -R pcr:pcr /var/www/pcr360/prod chown -R apache:pcr /var/www/pcr360/prod/data /var/www/pcr360/prod/logs /var/www/pcr360/data find /var/www/pcr360/prod -type f -exec chmod 644 {} + find /var/www/pcr360/data -type f -exec chmod 664 {} + find /var/www/pcr360/prod/data -type f -exec chmod 664 {} + find /var/www/pcr360/prod/logs -type f -exec chmod 664 {} + find /var/www/pcr360/prod -type d -exec chmod 755 {} + find /var/www/pcr360/data -type d -exec chmod 775 {} + find /var/www/pcr360/prod/data -type d -exec chmod 775 {} + find /var/www/pcr360/prod/logs -type d -exec chmod 775 {} + chown apache:pcr /var/www/pcr360/prod/external/syschk.sh /var/www/pcr360/prod/external/ssl-cert-info.sh chmod 700 /var/www/pcr360/prod/external/syschk.sh /var/www/pcr360/prod/external/ssl-cert-info.sh # set acl permissions setfacl -Rm g:apache:rwx /var/www/pcr360/prod/data setfacl -Rm u:pcr:rwx /var/www/pcr360/prod/data



  4. Set SE Linux Permissions

    1. Give Apache read access to the entire application folder

    2. Give Apache write access to the data and logs folders

      # set selinux permission chcon -t httpd_sys_content_t /var/www/pcr360/prod -R chcon -t httpd_sys_rw_content_t /var/www/pcr360/prod/logs -R chcon -t httpd_sys_rw_content_t /var/www/pcr360/prod/data -R chcon -t httpd_sys_rw_content_t /var/www/pcr360/data -R chcon -t httpd_sys_content_t /var/www/pcr360/test -R chcon -t httpd_sys_rw_content_t /var/www/pcr360/test/logs -R chcon -t httpd_sys_rw_content_t /var/www/pcr360/test/data -R chcon -t httpd_sys_rw_content_t /var/www/pcr360/data -R  # allow apache to excute external programs like java and wkhtmltopdf setsebool -P httpd_execmem on



  5. Create the PCR-360 configuration INI file. NOTE: "<>" indicates a value that needs to be filled in. For example: <DB_SERVER> could be replaced with mysql.pcr.com

    1. MySQL



    2. Oracle



  6. Install Virtual Host Configurations. Example Configuration: