There were various things about SuExec of Rocky Linux 8.5 or CentOS8, and I tried to make it.
I made a script to edit SuExec’s DocRoute from /var/www in binary and rewrite it to /home.
It’s still in the trial stage, so I’m not sure if the operation will work …
This is kinda scary looking. Did you find this on the web somewhere (maybe with docs explaining what it’s doing)? It looks like it’s patching the binary, which feels fragile.
‘/var/www’ appears only once in the dump of suexec, but I don’t know what will happen in the future, so I also searched for the ‘apache’ ASCII character that appears in front.
I replace ‘apache./var/www’ to ‘apache./home…’.
‘.’ is ASCII code ‘00’.
Finally ,I reached to run CGI with FcgiWrap !!
I wanted to restore the CentOS7’s VurtualServer to the RockyLinux8.5.
After I restored the one to the RockyLinux8.5, I disabled Apache & SSL Apache & AWStats at ‘Edit Vurtual Server’ menu. And then I re-enabled them. So the FcgiWrap Setting was made in apache’s vurtual server setting !! But to run the CGI completely, it is needed that the ’ +ExecCGI’ in Options of '<Directory /home/wwwaoj/public_html> at ‘Configure SSL Website’ and ‘Configure Website’ menu’s ‘Edit Directives’.