virtualmin suexec problem

14 posts / 0 new
Last post
#1 Mon, 01/26/2009 - 08:19
embsupafly

virtualmin suexec problem

Fresh install of Ubuntu 8.04 LTS, using the virtualmin install script, install goes ok, but I get this when logging in to virtualmin:

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. .. your system is not ready for use by Virtualmin.

I've read other posts similar to this, but not exact for this OS and the install type, license type.

What is the best way to fix?

Thanks,

Eric

Mon, 01/26/2009 - 09:12
andreychek

That's odd!

That should never occur on a fresh install.

The error you're seeing is because it's using the distro's version of Apache, rather than Virtualmin's.

So, somehow, it didn't bring down Virtualmin's Apache version.

I'd love to see the install logs -- would you consider attaching your /root/install-virtualmin.log file to this? Or if you prefer, you could open up a request in the Bugs and Issues tracker if you want to be able to mark it as private.

Also, if you log into your system over SSH, what does this show:

dpkg -l 'apache2*'

However, if everything else appears to be working, the only thing you'd need to do is install Virtualmin's Apache2 related packages in place of the ones currently on your system.
-Eric

Mon, 01/26/2009 - 09:52 (Reply to #2)
embsupafly

Output for dpkg on apache:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
+++-==========================-==========================-====================================================================
pn apache2 <none> (no description available)
un apache2-common <none> (no description available)
ii apache2-doc 2.2.8-11vm documentation for apache2
un apache2-mpm <none> (no description available)
un apache2-mpm-event <none> (no description available)
un apache2-mpm-itk <none> (no description available)
ii apache2-mpm-prefork 2.2.8-1ubuntu0.3 Traditional model for Apache HTTPD
un apache2-mpm-worker <none> (no description available)
ii apache2-utils 2.2.8-1ubuntu0.3 utility programs for webservers
ii apache2.2-common 2.2.8-1ubuntu0.3 Next generation, scalable, extendable web server

Attached is the log file for the virtualmin install.

<div class='quote'>However, if everything else appears to be working, the only thing you'd need to do is install Virtualmin's Apache2 related packages in place of the ones currently on your system.</div>

How would I do this?

Mon, 01/26/2009 - 09:53 (Reply to #3)
embsupafly

Wouldnt attach the log the first time due to extension, here it is now. Thanks. [file name=virtualmin_install-cd46ca08dbdb1d6c2de4761a01f396d9.txt size=92102]http://www.virtualmin.com/components/com_fireboard/uploaded/files/virtua...

Mon, 01/26/2009 - 11:43 (Reply to #4)
Joe
Joe's picture

So, this is an issue in the install script (which I've seen a few times, and don't quite understand). But, if you update the apache2 package, the problem should go away:

apt-get update
apt-get install apache2

--

Check out the forum guidelines!

Sun, 06/07/2009 - 07:54 (Reply to #5)
Bip

Joe Thanks for the speedy reply, I realize that I am in for a fairly daunting task, but I am really committed to learning all I can about Linux, servers etc so this is a challenge I not only look forward to but embrace, can&acirc;

Sun, 06/07/2009 - 07:54 (Reply to #6)
Bip

Joe Thanks for the speedy reply, I realize that I am in for a fairly daunting task, but I am really committed to learning all I can about Linux, servers etc so this is a challenge I not only look forward to but embrace, can&acirc;

Sat, 05/09/2009 - 16:18 (Reply to #7)
Bip

Just an FYI I got Virtualmin up and running on my Dell PowerEdge 2650, running Ubuntu Server 9.04 It was not to painful for a Linux newbie, thanks for you help and the very slick software.

Tue, 02/10/2009 - 05:47
mavness

Just a heads up, debian here, same issue I had and the fix that Joe listed worked perfectly for me. Just wanted to confirm the fix works as well as it appears its a bug with the install script.

Thanks for the great product!

Sun, 06/07/2009 - 07:54
Bip

I know that has been discussed before and have spent many a day looking the answer but to no avail I am trying to get Virtualmin up and working but I get the ever famous &acirc;

Sun, 06/07/2009 - 07:54
Bip

I know that has been discussed before and have spent many a day looking the answer but to no avail I am trying to get Virtualmin up and working but I get the ever famous &acirc;

Fri, 05/08/2009 - 14:36
Joe
Joe's picture

Easy. Install apache2-suexec-custom. Configure it in /etc/apache2/suexec/www-data to point to /home instead of /var/www (this is the first line in the file).

That said, if you're intimidated by <i>this</i> little bump in the road, when you see the world of hurt you're going to have getting mail setup and configured appropriate you're going to wish you'd just used one of the grade A supported operating systems (like Ubuntu 8.04LTS) and used our install.sh automated install script. You're in for at least an afternoon of tinkering to do it all manually, and that's assuming you're pretty familiar with virtual hosting on Linux and Ubuntu.

--

Check out the forum guidelines!

Fri, 05/08/2009 - 14:37 (Reply to #12)
Joe
Joe's picture

Oh, also note that Ubuntu non-LTS releases have a very short lifecycle. They are not really suitable for use on servers because of it.

--

Check out the forum guidelines!

Fri, 05/08/2009 - 19:41
Joe
Joe's picture

Well, if you insist, I'll point out the virtualmin-base-standalone script and the mail-setup script (virtualmin-base contains mail-setup, but mail is the hardest part, so seeing it in isolation might be helpful). You'll have to know how to read Perl a little bit, and have to understand what each piece is for, but it is exactly the stuff we do during install, so it'll give you a bit of a checklist for the stuff you'll have to do.

http://software.virtualmin.com/lib/mail-setup.pl

http://software.virtualmin.com/lib/virtualmin-base-standalone.pl

Note that these are <i>just</i> the configuration steps. You still have to manually install all of the relevant packages. There are also a few steps outside of the script that have to be done before the installation of the virtualmin-base package occurs, though it depends on the OS, and I don't remember whether there are any such steps on Ubuntu.

You can use the virtualmin-universal Debian repository to get all of our packages, which is preferable to using .wbm files and installing and maintaining them manually.

Something like:

deb http://software.virtualmin.com/gpl/debian/ virtualmin-universal main

I don't remember exactly...but something like that ought to do it.

Best of luck. Just remember that I warned you. I know from experience with folks who set out to do it themselves that you're very likely to grow very angry by the time you're a few days in. ;-)

--

Check out the forum guidelines!

Topic locked