Apache 2.4,PHP-FPM,当 PHP 文件位于 /opt/moddoc/ 时的 FastCGI 配置 - Apache 不处理 php 文件

Apache 2.4, PHP-FPM, FastCGI configuration when PHP files in /opt/moddoc/ - Apache not processing php files

我有 LAPP 配置 - Linux Red Hat 8,Apache 2.4,PHP7.2,Postgresql 13。FastCGI,已安装 php-fpm。

服务器管理员将 /var/www/html/ 定义为 Web 根目录。
但是我的应用程序的 php 文件的文件夹是在这里创建的:/opt/moddoc/

我必须在 Apache httpd.conf(或 php.ini 中设置什么?)才能从 /var/www/html/myownstartingfile.html 中的 html 页面开始,然后从 /opt/moddoc/myphpapp/main.php 调用 php 文件 ?

现在 info.php 只有在 /var/www/html/info.php 时才 运行 - 不是任何其他文件夹:/cgi-bin/ 或 /opt/moddoc/ 或另外一个。 或者我是否必须将文件夹结构从 /opt/moddoc/ 移动到 /var/www/html/myphpapp/main.php 下?

这是由 SeLinux 引起的。请参阅 Customizing the SELinux policy for the Apache HTTP server in a non-standard configuration

中的详细信息