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 httpdservice:# yum install -y httpd php php-json 
- 
                                                        Create a working directory: # mkdir /opt/app-plm 
- 
                                                        Copy source files ( create.phpand so on) into this working directory.
- 
                                                        Update the httpdconfiguration 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 httpdto use thepreforkmodule:# echo "LoadModule mpm_prefork_module modules/mod_mpm_prefork.so" > /etc/httpd/conf.modules.d/00-mpm.conf 
- 
                                                        Create the httpdconfiguration entry for the working directory. That is, put the configuration file into the/etc/httpd/conf.ddirectory.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: