I am having some difficulty getting Virtualmin to work with Apache24. Most of the download and install seemed to go okay. However, I am having difficulty with mod_suexec. I'm not sure how to adjust the scripts to help me work around this problem.
I have compiled my Apache24 from ports, using the
As I have worked through the installation process for these programs, in Virtualmin, I now receive the warning:
"The Suexec command on your system is configured to only run scripts under /usr/local/www/data, but the Virtualmin virtual server home directory is /usr/home. CGI and PHP scripts run as domain owners will not be executed.
" .. your system is not ready for use by Virtualmin."
Because I have received this message, it seems to me that the correct action would be to adjust the mod_suexec to work with Virtualmin. I think I would like to know how to compile Apache24 to use mod_suexec with the argument for
I reviewed the Makefile for Apache24 that I found in /usr/ports/www/apache24 . I noticed that there were three makefiles for Apache24. I am not sure where to place what edit to try to adjust how Apache uses suexec. If there are other options or changes that I must make to Apache instead, then those clues have escaped me. So far, I have not gone far into modifying Apache24's httpd.conf beyond adding a few modules that seemed to be needed for Virtualmin.
Any advice you might have on making the necessary adjustments might be helpful. Thanks.
I have compiled my Apache24 from ports, using the
make config
option for SUEXEC in the curses dialog. It does pull in, and it installs the .so file in the expected location. However, I am trying to use Virtualmin/Webmin. That program requires mod_suexec, and it needs it in a particular place.As I have worked through the installation process for these programs, in Virtualmin, I now receive the warning:
"The Suexec command on your system is configured to only run scripts under /usr/local/www/data, but the Virtualmin virtual server home directory is /usr/home. CGI and PHP scripts run as domain owners will not be executed.
" .. your system is not ready for use by Virtualmin."
Because I have received this message, it seems to me that the correct action would be to adjust the mod_suexec to work with Virtualmin. I think I would like to know how to compile Apache24 to use mod_suexec with the argument for
--with-suexec-userdir=[I]DIR[/I]
. I think the correct value for DIR will be the /usr/home specified in the warning. I came to that conclusion after reviewing this page: https://httpd.apache.org/docs/2.4/suexec.htmlI reviewed the Makefile for Apache24 that I found in /usr/ports/www/apache24 . I noticed that there were three makefiles for Apache24. I am not sure where to place what edit to try to adjust how Apache uses suexec. If there are other options or changes that I must make to Apache instead, then those clues have escaped me. So far, I have not gone far into modifying Apache24's httpd.conf beyond adding a few modules that seemed to be needed for Virtualmin.
Any advice you might have on making the necessary adjustments might be helpful. Thanks.