These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Virtualmin not creating files in "home" directory on the new forum.
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
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]
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]
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
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!
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
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!
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]
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.
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!