Suexec and base directory

i installed Virtualmin, and I’m running into an issue, when I click on Re-check Configuration:

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.

Looking through the forums, it seems as if the solution is to install the Virtualmin Apache. How do I accomplish that? I looked through the various option on my Virtualmin installation, and I cannot find the option to update to the Virtualmin Apache installation.

If there is no option under the UI, is there a command line option?

Howdy,

It sounds like you ended up with a non-standard version of Apache on your system. Normally, the Virtualmin installer would handle that suexec issue for you.

What distribution/version are you using? And do you have any non-standard repositories enabled?

Lastly, did you use the install.sh script in order to install Virtualmin?

-Eric

At one point, I installed ISPConfig, but system info (webmin) says that I have Apache version 2.2.3.

Operating system CentOS Linux 5.5
Webmin version 1.520 Virtualmin version 3.82.gpl GPL
Theme version 7.9 Time on server 27/Nov/2010 08:10
Kernel and CPU Linux 2.6.18-194.17.4.el5 on x86_64 CPU load averages 0.10 (1 min) 0.06 (5 mins) 0.01 (15 mins)

I initially tried install.sh, but the install failed, so I went back to webmin and I installed from webmin.

Here’s what I get when I do re-check configuration:

he status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active …

  BIND DNS server is installed, and the system is configured to use it.

  Mail server Postfix is installed and configured.

  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 initially tried install.sh, but the install failed, so I went back to webmin and I installed from webmin.

Ahh… yeah, performing the installation manually is the hard way :slight_smile: You can do that, but there’s a number of steps involved in making that work. You can see manual installation instructions here:

http://www.virtualmin.com/documentation/installation/manual

It’s simplest to get Virtualmin working on a fresh installation of your OS. On a fresh install, the install.sh should be able to get everything up and running for you.

However, if you want to get it working the manual way, you should be able to do that using the above directions.

-Eric

All these packages are installed. At this point, all I need is to install the virtualmin version of apache2. How do I get that done?

Update: I tried to manually install (I downloaded the RPMs):

[root@b tmp]# yum install --skip-broken httpd-manual-2.2.3-43.3.vm.x86_64.rpm
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • addons: mirror.5ninesolutions.com
  • base: linux.mirrors.es.net
  • centosplus: mirrors.netdna.com
  • contrib: centos.promopeddler.com
  • extras: mirrors.ecvps.com
  • rpmforge: fr2.rpmfind.net
  • updates: mirrors.netdna.com
    Excluding Packages from Red Hat Enterprise Linux 5 - x86_64 - ATrpms
    Finished
    Reducing Red Hat Enterprise Linux 5 - x86_64 - ATrpms to included packages only
    Finished
    Excluding Packages from Red Hat Enterprise Linux 5 - x86_64 - ATrpms testing
    Finished
    Reducing Red Hat Enterprise Linux 5 - x86_64 - ATrpms testing to included packages only
    Finished
    Reducing CentOS-5 - Plus to included packages only
    Finished
    Excluding Packages from CentOS-5 - Updates
    Finished
    Setting up Install Process
    Examining httpd-manual-2.2.3-43.3.vm.x86_64.rpm: 1:httpd-manual-2.2.3-43.3.vm.x86_64
    Marking httpd-manual-2.2.3-43.3.vm.x86_64.rpm as an update to httpd-manual-2.2.3-43.el5.centos.3.x86_64
    Resolving Dependencies
    –> Running transaction check
    —> Package httpd-manual.x86_64 1:2.2.3-43.3.vm set to be updated
    –> Processing Dependency: httpd = 1:2.2.3-43.3.vm for package: httpd-manual
    –> Finished Dependency Resolution
    1:httpd-manual-2.2.3-43.3.vm.x86_64 from /httpd-manual-2.2.3-43.3.vm.x86_64 has depsolving problems
    –> Missing Dependency: httpd = 1:2.2.3-43.3.vm is needed by package 1:httpd-manual-2.2.3-43.3.vm.x86_64 (/httpd-manual-2.2.3-43.3.vm.x86_64)

Packages skipped because of dependency problems:
1:httpd-manual-2.2.3-43.3.vm.x86_64 from /httpd-manual-2.2.3-43.3.vm.x86_64
[root@b tmp]#

I also ran package-cleanup, and it told me that there are no problems:

[root@b tmp]# package-cleanup --problems httpd-manual-2.2.3-43.3.vm.x86_64.rpm
Setting up yum
Reading local RPM database
Processing all local requires
No problems found
[root@b tmp]#

When you download and install the various Apache packages, you need to install them all at once. In your case, it looks like you’re just installing the one package… and that particular one, httpd-manual, is just the Apache documentation.

The above error message is saying it’s missing the main “httpd” package.

-Eric

Yes, I was trying to isolate the two files causing errors. One of the is the manual. Below what happens when I run the full install script: /bin/sh install.sh. So, back to my question: how do I install the virtualmin version of Apache, so I can have my docs directory point to /home, instead of /var/www. This is for Centos, where doing a manual change in the module config to /home, will not work.

INFO - 2010-11-27 12:51:44 - Started installation log in /root/virtualmin-install.log
DEBUG - 2010-11-27 12:51:44 - Install mode: full
DEBUG - 2010-11-27 12:51:44 - Product: Virtualmin GPL
DEBUG - 2010-11-27 12:51:44 - Virtualmin Meta-Package list: virtualmin-base
DEBUG - 2010-11-27 12:51:44 - install.sh version: 1.0.4
INFO - 2010-11-27 12:51:44 - Checking for fully qualified hostname…
INFO - 2010-11-27 12:51:44 - Hostname OK: fully qualified as weallblab.com
INFO - 2010-11-27 12:51:44 - Installing serial number and license key into /etc/virtualmin-license
INFO - 2010-11-27 12:51:44 - Loading OS selection library…
INFO - 2010-11-27 12:51:45 - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded.
INFO - 2010-11-27 12:51:45 - Loading OS list…
INFO - 2010-11-27 12:51:45 - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded.
INFO - 2010-11-27 12:51:45 - Operating system name: CentOS Linux
INFO - 2010-11-27 12:51:45 - Operating system version: 5
INFO - 2010-11-27 12:51:45 - Configuring package manager for CentOS Linux 5…
INFO - 2010-11-27 12:51:45 - Disabling SELinux during installation…
INFO - 2010-11-27 12:51:45 - setenforce 0 failed: 1
INFO - 2010-11-27 12:51:45 - Download of http://software.virtualmin.com/gpl/rhel/5/x86_64/virtualmin-release-latest.noarch.rpm Succeeded.
INFO - 2010-11-27 12:51:46 - Succeeded.
INFO - 2010-11-27 12:51:46 - Installing dependencies using command: /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix bind spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-domxl php-gd php-imap php-mysql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile

  • addons: mirror.5ninesolutions.com
  • base: linux.mirrors.es.net
  • centosplus: mirrors.netdna.com
  • contrib: centos.promopeddler.com
  • extras: mirrors.ecvps.com
  • rpmforge: fr2.rpmfind.net
  • updates: mirrors.netdna.com
    Excluding Packages from Red Hat Enterprise Linux 5 - x86_64 - ATrpms
    Finished
    Reducing Red Hat Enterprise Linux 5 - x86_64 - ATrpms to included packages only
    Finished
    Excluding Packages from Red Hat Enterprise Linux 5 - x86_64 - ATrpms testing
    Finished
    Reducing Red Hat Enterprise Linux 5 - x86_64 - ATrpms testing to included packages only
    Finished
    Reducing CentOS-5 - Plus to included packages only
    Finished
    Excluding Packages from CentOS-5 - Updates
    Finished
    Setting up Install Process
    Package 30:bind-9.3.6-4.P1.el5_4.2.x86_64 already installed and latest version
    Package 30:bind-utils-9.3.6-4.P1.el5_4.2.x86_64 already installed and latest version
    Package 2:postfix-2.3.3-2.1.el5_2.x86_64 already installed and latest version
    Package 30:bind-9.3.6-4.P1.el5_4.2.x86_64 already installed and latest version
    Package matching spamassassin-3.2.5-1.el5.x86_64 already installed. Checking for update.
    Package procmail-3.22-17.1.el5.centos.x86_64 already installed and latest version
    Package 1:quota-3.13-1.2.5.el5.x86_64 already installed and latest version
    Package iptables-1.3.5-5.3.el5_4.1.x86_64 already installed and latest version
    Package openssl-0.9.8e-12.el5_4.6.x86_64 already installed and latest version
    Package openssl-0.9.8e-12.el5_4.6.i686 already installed and latest version
    Package subversion-1.4.2-4.el5_3.1.x86_64 already installed and latest version
    Package subversion-1.4.2-4.el5_3.1.i386 already installed and latest version
    Package mysql-5.0.77-4.el5_5.4.x86_64 already installed and latest version
    Package mysql-5.0.77-4.el5_5.4.i386 already installed and latest version
    Package mysql-server-5.0.77-4.el5_5.4.x86_64 already installed and latest version
    Package mysql-devel-5.0.77-4.el5_5.4.x86_64 already installed and latest version
    Package mysql-devel-5.0.77-4.el5_5.4.i386 already installed and latest version
    No package rh-postgresql available.
    No package rh-postgresql-server available.
    Package logrotate-3.7.4-9.el5_5.2.x86_64 already installed and latest version
    Package webalizer-2.01_10-30.1.x86_64 already installed and latest version
    Package php-5.1.6-27.el5.x86_64 already installed and latest version
    No package php-domxl available.
    Package php-gd-5.1.6-27.el5.x86_64 already installed and latest version
    Package php-imap-5.1.6-27.el5.x86_64 already installed and latest version
    Package php-mysql-5.1.6-27.el5.x86_64 already installed and latest version
    Package php-odbc-5.1.6-27.el5.x86_64 already installed and latest version
    Package 1:php-pear-1.4.9-6.el5.noarch already installed and latest version
    Package php-snmp-5.1.6-27.el5.x86_64 already installed and latest version
    Package php-xmlrpc-5.1.6-27.el5.x86_64 already installed and latest version
    Package php-mbstring-5.1.6-27.el5.x86_64 already installed and latest version
    Package mod_perl-2.0.4-6.el5.x86_64 already installed and latest version
    Package mod_python-3.2.8-3.1.x86_64 already installed and latest version
    Package cyrus-sasl-2.1.22-5.el5_4.3.x86_64 already installed and latest version
    Package cyrus-sasl-2.1.22-5.el5_4.3.i386 already installed and latest version
    Package matching spamassassin-3.2.5-1.el5.x86_64 already installed. Checking for update.
    Package ruby-1.8.5-5.el5_4.8.x86_64 already installed and latest version
    Package ruby-devel-1.8.5-5.el5_4.8.x86_64 already installed and latest version
    Package ruby-devel-1.8.5-5.el5_4.8.i386 already installed and latest version
    Resolving Dependencies
    –> Running transaction check
    —> Package caching-nameserver.x86_64 30:9.3.6-4.P1.el5_4.2 set to be updated
    —> Package cyrus-sasl-gssapi.i386 0:2.1.22-5.el5_4.3 set to be updated
    —> Package cyrus-sasl-gssapi.x86_64 0:2.1.22-5.el5_4.3 set to be updated
    —> Package dovecot.x86_64 1:1.2.16-1_114.el5 set to be updated
    –> Processing Dependency: libpq.so.5()(64bit) for package: dovecot
    –> Processing Dependency: httpd = 2.2.3-43.el5.centos.3 for package: httpd-manual
    –> Processing Dependency: httpd = 2.2.3-43.el5.centos.3 for package: httpd-devel
    –> Processing Dependency: httpd = 2.2.3-43.el5.centos.3 for package: httpd-devel
    —> Package httpd.x86_64 1:2.2.3-43.3.vm set to be updated
    —> Package mailman.x86_64 3:2.1.9-4.el5 set to be updated
    —> Package mod_dav_svn.x86_64 0:1.4.2-4.el5_3.1 set to be updated
    —> Package mod_ssl.x86_64 2:2.2.3-43.3.vm set to be updated
    —> Package perl-Crypt-SSLeay.x86_64 0:0.51-11.el5 set to be updated
    —> Package perl-DBD-MySQL.x86_64 0:3.0007-2.el5 set to be updated
    —> Package perl-DBD-Pg.x86_64 0:1.49-2.el5_3.1 set to be updated
    —> Package perl-XML-Simple.noarch 0:2.14-4.fc6 set to be updated
    –> Processing Dependency: perl(XML::Parser) for package: perl-XML-Simple
    —> Package php-pgsql.x86_64 0:5.1.6-27.el5 set to be updated
    —> Package postgresql.x86_64 0:8.1.22-1.el5_5.1 set to be updated
    —> Package postgresql-server.x86_64 0:8.1.22-1.el5_5.1 set to be updated
    –> Processing Dependency: python = 2.4.3-27.el5 for package: python-devel
    –> Processing Dependency: python = 2.4.3-27.el5 for package: python-devel
    —> Package python.x86_64 0:2.4.3-27.el5_5.3 set to be updated
    —> Package rubygems.noarch 0:1.3.1-2.el5.kb set to be updated
    –> Processing Dependency: ruby-rdoc for package: rubygems
    –> Running transaction check
    –> Processing Dependency: httpd = 2.2.3-43.el5.centos.3 for package: httpd-devel
    —> Package httpd-devel.x86_64 1:2.2.3-43.3.vm set to be updated
    —> Package httpd-manual.x86_64 1:2.2.3-43.3.vm set to be updated
    —> Package perl-XML-Parser.x86_64 0:2.34-6.1.2.2.1 set to be updated
    —> Package postgresql84-libs.x86_64 0:8.4.5-1.el5_5.1 set to be updated
    —> Package python-devel.i386 0:2.4.3-27.el5_5.3 set to be updated
    —> Package python-devel.x86_64 0:2.4.3-27.el5_5.3 set to be updated
    —> Package ruby-rdoc.x86_64 0:1.8.5-5.el5_4.8 set to be updated
    –> Processing Dependency: ruby-irb = 1.8.5-5.el5_4.8 for package: ruby-rdoc
    –> Running transaction check
    –> Processing Dependency: httpd = 2.2.3-43.el5.centos.3 for package: httpd-devel
    —> Package ruby-irb.x86_64 0:1.8.5-5.el5_4.8 set to be updated
    –> Finished Dependency Resolution
    httpd-devel-2.2.3-43.el5.centos.3.i386 from installed has depsolving problems
    –> Missing Dependency: httpd = 2.2.3-43.el5.centos.3 is needed by package httpd-devel-2.2.3-43.el5.centos.3.i386 (installed)
    You could try using --skip-broken to work around the problem
    You could try running: package-cleanup --problems
    package-cleanup --dupes
    rpm -Va --nofiles --nodigest
    FATAL - 2010-11-27 12:52:19 - Fatal Error Occurred: Something went wrong during installation: 0
    FATAL - 2010-11-27 12:52:19 - Cannot continue installation.
    FATAL - 2010-11-27 12:52:19 - Attempting to remove virtualmin repository configuration, so the installation can be
    FATAL - 2010-11-27 12:52:19 - re-attempted after any problems have been resolved.
    FATAL - 2010-11-27 12:52:19 - Removing temporary directory and files.
    FATAL - 2010-11-27 12:52:19 - If you are unsure of what went wrong, you may wish to review the log
    FATAL - 2010-11-27 12:52:19 - in /root/virtualmin-install.log