Setting up the Provisioning Service
To set up the provisioning service for products fulfilled internally through URL requests, complete the following steps:
-
In a previously created virtual environment (RHEL8 container or VM), install the
httpd
service:# yum install -y httpd php php-json
-
Create a working directory:
# mkdir /opt/app-plm
-
Copy source files (
create.php
and so on) into this working directory. -
Update the
httpd
configuration file by pointing the document root to the working directory:# sed -E -i -e 's%DocumentRoot .*$%DocumentRoot \"/opt/app-plm\"%' /etc/httpd/conf/httpd.conf
-
Set
httpd
to use theprefork
module:# echo "LoadModule mpm_prefork_module modules/mod_mpm_prefork.so" > /etc/httpd/conf.modules.d/00-mpm.conf
-
Create the
httpd
configuration entry for the working directory. That is, put the configuration file into the/etc/httpd/conf.d
directory.The directory configuration example is:
Copy<Directory "/opt/app-plm">
Options Indexes MultiViews
AllowOverride All
Require all granted
</Directory> -
Start
httpd
:# systemctl start httpd
Related topics: