Virtualmin not creating files in "home" directory

10 posts / 0 new
Last post
#1 Thu, 03/06/2008 - 11:34
ZephyrShaun

Virtualmin not creating files in "home" directory

When I create a new virtual server, no files get created in the /home directory. How do I troubleshoot this? I upgraded to Virtualmin Pro, I'm not sure if it's related to this..

Thanks, Shaun

Sun, 06/07/2009 - 07:19
ronald
ronald's picture

in VM under system settings-server templates, go to Apache website found in the dropdown menu
In the field directives and settings for new domain make sure something like this is in it:

[code:1]ServerName ${DOM}
ServerAlias www.${DOM}
DocumentRoot ${HOME}/public_html
ErrorLog ${HOME}/logs/error_log
CustomLog ${HOME}/logs/access_log combined
ScriptAlias /cgi-bin/ ${HOME}/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory ${HOME}/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory ${HOME}/cgi-bin>
allow from all
</Directory>[/code:1]

Sun, 06/07/2009 - 07:19
ronald
ronald's picture

in VM under system settings-server templates, go to Apache website found in the dropdown menu
In the field directives and settings for new domain make sure something like this is in it:

[code:1]ServerName ${DOM}
ServerAlias www.${DOM}
DocumentRoot ${HOME}/public_html
ErrorLog ${HOME}/logs/error_log
CustomLog ${HOME}/logs/access_log combined
ScriptAlias /cgi-bin/ ${HOME}/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory ${HOME}/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory ${HOME}/cgi-bin>
allow from all
</Directory>[/code:1]

Thu, 03/06/2008 - 12:08
ZephyrShaun

Yeah, I see that code block.

What permissions should the "home" directory have? Here's how it's currently set, is this ok???

drwxr-xr-x 5 root root 5 Mar 5 21:28 home/

Could it be something else?

Thanks,
Shaun

Thu, 03/06/2008 - 18:14 (Reply to #4)
Joe
Joe's picture

Are there any errors when you create a virtual server? I'm having a hard time thinking of what could cause the symptoms you describe.

The permissions are fine.

--

Check out the forum guidelines!

Fri, 03/07/2008 - 06:58 (Reply to #5)
ZephyrShaun

Here's the output when I try to create a test domain...

Setting Up Virtual Server

In domain test2.com
Creating administration group test2.com ..
.. done

Creating administration user test2.com ..
.. done

Creating aliases for administration user ..
.. aliases failed : $@

Adding administration user to groups ..
.. done

Creating home directory ..
.. done

Creating mailbox for administration user ..
.. done

Adding to email domains list ..
.. Mail for domain failed! : Failed to regenerate table /opt/csw/etc/postfix/virtual: at ../web-lib-funcs.pl line 980.

Adding new virtual website ..
.. Apache website failed! : Failed to open /home/test2.com/logs/access_log for writing : Bad file number at ../web-lib-funcs.pl line 980.

Creating MySQL login ..
.. done

Adding DAV directives to website configuration ..
.. DAV Login failed! :

Adding PowerDNS domain ..
.. done

Adding Subversion directives to website configuration ..
.. done

Creating Webmin user ..
.. done

Applying web server configuration ..
.. done

Re-loading Webmin ..
.. done

Saving server details ..
.. done

Fri, 03/07/2008 - 13:23 (Reply to #6)
Joe
Joe's picture

Lots of errors here! Gonna want to get the various misconfigurations sorted first, and then we'll see if the home directory is still not being created.

Alias creation...I suspect you've got something bogus in your aliases file, but I'm just guessing. What happens if you run:

postalias /path/to/aliases

(You've got a solaris system there, it seems, and I dunno whether /etc/aliases is the postfix aliases file, or something else. You'll need to figure out where Postfix is going for aliases.)

Next up, the virtuals table is also failing. What happens if you run:

postmap hash:/opt/csw/etc/postfix/virtual

The Apache error is probably related to the home directory creation failure.

Was this installed with our solaris-install.sh script, or manually? If the former, there may be some issues we need to resolve in our install script.

--

Check out the forum guidelines!

Sun, 06/07/2009 - 07:19
ronald
ronald's picture

in VM under system settings-server templates, go to Apache website found in the dropdown menu
In the field directives and settings for new domain make sure something like this is in it:

[code:1]ServerName ${DOM}
ServerAlias www.${DOM}
DocumentRoot ${HOME}/public_html
ErrorLog ${HOME}/logs/error_log
CustomLog ${HOME}/logs/access_log combined
ScriptAlias /cgi-bin/ ${HOME}/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory ${HOME}/public_html>
Options Indexes IncludesNOEXEC FollowSymLinks
allow from all
AllowOverride All
</Directory>
<Directory ${HOME}/cgi-bin>
allow from all
</Directory>[/code:1]

Fri, 03/07/2008 - 20:35
ZephyrShaun

Thanks for the help Joe, much appreciated.

I just started w/ my account over at Joyent, so not sure why I'm getting errors. Anway, I decided to have them re-install everything on my account and hopefully that will fix whatever is wrong.

Thanks again.

Fri, 03/07/2008 - 20:40 (Reply to #9)
Joe
Joe's picture

Sounds like a good idea. The Joyent guys know their stuff--I'm sure they'll get you squared away. They have their own installation tools, but I've never heard of any problems from folks using them, so I'm guessing this install was just botched somehow.

--

Check out the forum guidelines!

Topic locked