I am trying to run Virtualmin on a Debian 4.0 Etch server, but am getting this error:
The Suexec command on your system is configured to only run scripts under /var/www, but the Virtualmin base directory is /home. CGI and PHP scripts run as domain owners will not be executed.
How do I configure Suexec, so that scripts can be run under /home ?
Don’t run that on a working system, that’s just for future reference
In the meantime – yes, you could recompile suexec, though if you just installed the Apache packages from the Virtualmin repository, that’d handle your issue too.
It sounds like you may be using the GPL version, so the packages for that can be found at:
Well, the suexec binary comes with the httpd package, so you’ll at the very least need that. It changes very little, so there shouldn’t be a problem in installing that in place of your current httpd package.
The catch in just downloading those is that when updates come out, you won’t get them… ideally, you’d want to setup the VM repository by setting it up in /etc/yum.repos.d.
It strikes me that perhaps we need a document containing steps for fixing this particular predicament
-Eric
On Debian disable suexec in Apache.
From the main virtualmin configuration page, click on the "Edit Server Template" button. Click on the "Default Settings" template link in the table on the next page. In the "edit template section" at the top of that page, choose "Apache website". Click the radio button to no, where it says "Automatically add appropriate SuExec directive?".
BTW, I'm using Virtualmin Pro.
This issue appeared just after upgrading to Virtualmin 3.62 and I’m somewhat dissappointed that there is no support from the Virtualmin-Team on this topic! Re-Compiling apache is not acceptable!
I'm somewhat dissappointed that there is no support from the Virtualmin-Team on this topic!
I’m sorry you feel like there hasn’t been support on this topic. But, for what it’s worth, Eric and I have both answered this same question in a half dozen threads–in all cases in the best way we could, based on the knowledge we were given. The possible solutions are:
Disable suexec usage in Virtualmin
Use a suexec binary that will work with your configuration in Virtualmin
That’s what we’ve said every time we’ve been asked this question (or its minor variants). This new check and its result is legitimate–you really can’t use suexec, if it isn’t built appropriately for where your home directories are. It’s just that we were never testing for it before now…but we found that it was a very common source of questions and support issues. It’s not a false positive, and we thought you’d want to know about the problem. Perhaps the error message is not clear enough?
What could we be doing differently here that would give you a feeling of getting support from us?
I ran into a similiar problem just by updating virtualmin from 3.60 to 3.62. Actually I’m always in fear, that the upgrade breaks something.
Now rechecking the configuration ends with a complaint that suexec is not available on my system…
I didn’t change anything in between. What happened?
So I seem not to run Virtualmin Apache (I have no clue what else)? How can I replace the existing with it?
Well, as Joe’s post mentions above, nothing “changed” – except that Virtualmin tests the configuration of your system better now
Somehow or another, you don’t have Virtualmin’s Apache packages, so the suexec binary on your system isn’t pointing to the right place.
You can solve that by:
Disabling suexec in Virtualmin
Use an suexec binary that points to /home rather than /var/www – an easy way to do that is to use the Virtualmin Apache packages from software.virtualmin.com
Seeing as your system is otherwise working, that implies you aren’t using suexec, so the quickest solution might just be to disable that. You can do so in System Settings -> Server Templates -> Default -> Apache Website, then make sure “Automatically add appropriate SuExec directive” is set to “No”.
-Eric
My system say that I have webmins version of apache installed. I was in stalled by webmin. Is there a diffrence between webins version and virtualmins?
I ran into a similiar problem just by updating virtualmin from 3.60 to 3.62. Actually I'm always in fear, that the upgrade breaks something.
Now rechecking the configuration ends with a complaint that suexec is not available on my system...
Nothing (new) is broken! The system is still working just as it always has!
These are configuration checks…please don’t let these warnings stop you from upgrading. You should always run the latest version of the software. The configuration checks are getting better at telling you things that might be wrong with your configuration…they are not changing your system or breaking it in any way.
How can we make that more clear? (I’m approaching a panicked state now that I’m realizing that people might not upgrade for fear of seeing these kinds of messages in the configuration check. Do not fear greater knowledge about your system. Please!)
My system say that I have webmins version of apache installed. I was in stalled by webmin. Is there a diffrence between webins version and virtualmins?
There is no “Webmin version” of Apache. Webmin.com has no software repositories for any non-Webmin software. When you install software using Webmin’s Software Packages module, it uses whatever the native package manager for your operating system is, like yum or apt-get. It has no way of knowing what version is being installed–whatever software repositories your system is configured to use is where the packages will come from.
If you installed Virtualmin using the automated install script found here at Virtualmin.com (install.sh, found on the download page or the serial numbers page, if you have Professional), it will have setup the package manager to use our software repositories, and will (usually, unless there are errors) install our Apache version. If you did not use the install script, you almost certainly do not have our Apache version (and this warning during configuration check indicates you don’t).
Do I have to Uninstall Apache and reinstall?
No. Just upgrade to our Apache package. That is, assuming you want to use suexec. If you don’t care, just leave it the way it is and turn off suexec in Virtualmin.
I am running a fresh install of Debian. I set the sources list to include the virturalmin repository and installed each module as it tested the install using webmin.
When I went to the Virtualdmin update link off the status page and it showed that apache came from webmin. I even copied the lines to a message I sent to another thread on this topic. I don’t see it now after searching.
On checking the updates page it now shows the Debian version installed.
This whole install have been nothing but problematic I was hoping that it was a faulty install that was causing my previous mail, and cgi problems. I even used webmin to install all modules during the testing process.
It is the public version so I guess that is a possible reason why.
On ward. I just did an apt-get update and it says that all my programs are up to date. Should I remove apache and try installing again?