Checking Configuration

9 posts / 0 new
Last post
#1 Tue, 07/28/2009 - 06:08
dexter1983

Checking Configuration

Hello! I have a ubuntu server 8.04.3 with latest updates. Before I install the script for virtualmin install.sh, a have allready instaled apache 2 web server, DNS server, mysql server with the password set. Initially I could't setup a passwd for MySQL root, and when I hit re-check and refresh I get the messaje:

Checking Configuration

The 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.

Any sugestion.

I use for my server a static IP on my private lan, with FQDN.

Tue, 07/28/2009 - 07:17
xoa

Try to turn off unter Virtualmin -> System Settings -> Server Templates -> Default Server Template -> Apache website (from dropdown menu) and select "NO" where "Automatically add appropriate SuExec directive?" stands.

Tue, 07/28/2009 - 09:44
ronald
ronald's picture

You will be better of to recompile suexec to point to /home

Even better is to use a minimal install of the OS, so without apache and let virtualmins install file handle it for you. You want the apache from the virtualmins repository (it is configured correctly) to avoid future conflicts anyway.

Wed, 07/29/2009 - 11:56
dexter1983

Very true ronald. I perform a fresh install of my ubuntu server, without any service preinstaled, and everyfing is ok now. But now I need some help, for the next situation:

I have purchased a internet public domain from my registar: example.ro. I use a pppoe connection with a dinamic ip :-((, with a asus router, probabily I will replace him with a linux router , download speed up to 10 mbs, upload up to 2 mbs, probabily to slow for a hosting a webste. I use .everydns.com service to point www.example.ro to my dianmic ip. The problem is: I want to use the same ip for multiple host: css.example.ro, mail.example.ro, ut2004.example.ro, webmail, forum. These hostnames I created on dns entries on everydns.com What I want it is posible?!!

Wed, 07/29/2009 - 12:51
ronald
ronald's picture

virtualmin has a module for everydns, so yes it is possible.

all the sites will run on 1 internal IP that Apache uses. As long as you create the entries at everydns, there should be no issue

Wed, 07/29/2009 - 16:28
dexter1983

Ok, I search for everydns module, on google, on vitualmin website, but I couldn't find anyfhing. A link , or some think. Till now I use for administration ebox, but I am limited at addon for ebox. Then I discover virtualmin.

Wed, 07/29/2009 - 17:42
ronald
ronald's picture

ah yes virtualmin has a module for dyndns and powerdns. but some other users do use everydns succesfully though.

Thu, 07/30/2009 - 00:35
dexter1983

I think I will stick to linux router, configured with everydns.com. Question: to make multiple virtual host on one ip a need to configure a dns server on my lan?! I really don't know how to combine the hostname defined on everydns.com with my server setup on my private LAN.

Tue, 09/29/2009 - 18:01
ikvat

Hi I've the same problem than above and i have to recompile suexec. Playing with all these tools is just a hobby for me and i want to know if the method i use will be right. I found a tutorial but i want to be sure that this is the good step for doing such a job. I'm on debian etch.

apt-get update
apt-get install dpkg-dev
apt-get source apache2 cd apache2-2.2.3/support/
~/apache2-2.2.3/support# nano suexec.h

find

#define AP_HTTPD_USER "www"

replace

#define AP_HTTPD_USER "www-data"

find

#define AP_LOG_EXEC DEFAULT_EXP_LOGFILEDIR "/suexec_log" /* Need me? */

replace

#define AP_LOG_EXEC "/var/log/apache2/suexec.log" /* Need me? */

find

#define AP_DOC_ROOT DEFAULT_EXP_HTDOCSDIR

replace

#define AP_DOC_ROOT "/home/www" ~/apache2-2.2.3/support# cd ..
~/apache2-2.2.3# ./configure
~/apache2-2.2.3/support# make suexec
~/apache2-2.2.3/support# cp suexec /usr/lib/apache2/suexec

verifications

~# /usr/lib/apache2/suexec -V 
   -D AP_DOC_ROOT="/home/www" 
   -D AP_GID_MIN=100 
   -D AP_HTTPD_USER="www-data" 
   -D AP_LOG_EXEC="/var/log/apache2/suexec.log" 
   -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin" 
   -D AP_UID_MIN=100 
   -D AP_USERDIR_SUFFIX="public_html"

reload apache

/etc/init.d/apache2 reload

Is that correct? My sites are directly stored in /home. Do i have to recompile with #define AP_DOC_ROOT "/home/www" or simply with #define AP_DOC_ROOT "/home"?

Thx for your help and sorry for my english.

Topic locked