...
Create application directories under /var/www/
Code Block language bash linenumbers true cd /var/www mkdir pcr360 cd pcr360/ mkdir configs prod licenses prod/logs data data/inbound data/outbound data/inbound-test data/outbound-test
- Place the product license file pcr360.zl included in the installation package into the licenses directory. (This must be Apache readable)
- Extract the application tarball pcr360.tar.gz included in the installation package to /var/www/pcr360/prod (the prod directory is in the tarball).
Create directories under /var/www/pcr360/prod/data
Code Block language bash cd /var/www/pcr360/prod/data mkdir archive archive/importfiles cache cache/page emails errors inbound reports reports/historical search uploads uploads/importfiles uploads/vh
Check to ensure that the new /var/www/pcr360/prod/data directory is writable and owned by Apache.
Code Block | ||
---|---|---|
| ||
######### # Cent OS chown -R apache:apache * ######### # |
...
Ubuntu find /var/www/pcr360/prod/data -type d -exec chmod 775 {} + find /var/www/pcr360/test/data -type d -exec chmod 775 {} + chown -R www-data:linuxadmins-hosted /var/www/pcr360/prod/data chown -R www-data:linuxadmins-hosted /var/www/pcr360/test/data |
...
chown - |
...
R |
...
www-data:linuxadmins-hosted /var/www/pcr360/prod/logs chown -R www-data:linuxadmins-hosted /var/www/pcr360/ |
...
test/logs # set file owners chown -R www-data:linuxadmins-hosted |
...
/var/www/pcr360 |
...
/data # set file permissions find /var/www/pcr360 -type d -exec chmod 775 {} + find /var/www/pcr360 -type f -exec chmod 664 {} + # Grant the customer user read/write access o the data directory # note you mus FILL IN the customer user setfacl -R -m u:<CUSTOMER_USER>:rwx /var/www/pcr360/data setfacl -R -dm u:<CUSTOMER_USER>:rwx /var/www/pcr360 |
...
/data # Grand the all PCR Admins read/write/execute on the entire pcr360 directory setfacl - |
...
R -m g:linuxadmins-hosted:rwx /var/www/pcr360 |
...
setfacl - |
...
R -dm g:linuxadmins-hosted:rwx /var/www/pcr360 |
Composer
- Install Composer. Instructions can be found here. It is recommended that Composer be installed globally.
Install the Composer provided libraries:
Code Block language bash cd /var/www/pcr360/
test/dataprod composer install cd /var/www/pcr360/test composer install
Configuration
PCR-360 configurations are stored in a ini file in the /var/www/pcr360/configs/ directory created above.
...