Welcome, Guest
Please Login or Register.
Lost Password?
Multi-Domains on Home Web Server - DNS issues? (1 viewing)
Post Reply

TOPIC: Multi-Domains on Home Web Server - DNS issues?

#15925
ronald (User)
Posts: 505
graphgraph
Re:Multi-Domains on Home Web Server - DNS issues? 2008/08/26 08:41  
i see, you must be running the gpl version. this has no php execution mode buttons.

Adding those lines won't cut it as far as i know. it also needs the remove handlers and it needs to create the folders and files under the $DOM directory which the gpl version won't do.

it won't matter that much as you want probably only those 3 domains on your system and you can set all directives through httpd.conf in the <virtualhost> part and you can use .htaccess as well.

You can add it in the server template-apache website, stuff like:
php_admin_value memory_limit 32M
php_admin_value enable_dl Off
php_admin_value magic_quotes_gpc On
php_admin_value open_basedir ${HOME}:${HOME}/tmp:/usr/lib/php:/usr/share/pear
of course please do settings and paths to match your system...or use the appropiate webmin module...webmin-servers-apache webserver-click on virtual server for the domain you want to edit-click on PHP icon-add the values you want

mod_fcgi comes in handy if you plan to host many domains and want to give each domain its own php.ini file.
  The administrator has disabled public write access.
#15926
RainbowViper (User)
Posts: 30
graphgraph
Re:Multi-Domains on Home Web Server - DNS issues? 2008/08/26 09:03  
Well, I'd just as soon do this right, for my own education if nothing else.

I believe I have PHP set globally ON, since in

/etc/httpd/conf.d/php.conf

the AddHandler and AddType lines are NOT commented out.

How do I remove the gpl version and replace it with a "correct" one?

Thanks in advance, once again.
  The administrator has disabled public write access.
#15931
ronald (User)
Posts: 505
graphgraph
Re:Multi-Domains on Home Web Server - DNS issues? 2008/08/26 13:07  
running in mod_php is a right way. the domains will run as apache were as with mod_fcgid the domains will run as their respective owner.
Both have pro's and cons.

If you really want to run in mod_fcgid the good way to do it is to upgrade to VM Pro imo.

PHP is on in both modes.. it means how scripts are executed.
as apache (1 php.ini) or as domain owner (each has php.ini)

if you intend to run only a few domains why not use it as it is?
  The administrator has disabled public write access.
#15933
RainbowViper (User)
Posts: 30
graphgraph
Re:Multi-Domains on Home Web Server - DNS issues? 2008/08/26 13:44  
Well, this whole project is only an exercise for my education.

The domains belong to me, and are unused. The DSL service I'm already paying for, and the comnputer was built from "leftovers" I have here.

I hope to translate what I learn into a paying enterprise, but for now it's being done without spending any money and that's a requirement since my finances are next to nothing.

That's why I'd like to learn how to set things up in various ways, and mod_fcgid seems to be one of those options.

On a positive note, Virtualmin handled everthing ELSE perfectly. The SSH, FTP and now Email are working perfectly.

I just wish I knew what it was I originally set wrong, because at first the Virtual Servers *WERE* using the Private IP of 192.168.1.200 but they weren't even resolving, so I changed the adresses to my Public IP. Now they're using that LAN number again and they *ARE* working. Owell. A learning experience, like I said.

I appreciate the help that you and Joe have given me.

Thank you both, very much.
  The administrator has disabled public write access.
#15937
RainbowViper (User)
Posts: 30
graphgraph
Re:Multi-Domains on Home Web Server - DNS issues? 2008/08/26 18:59  
OK, I do have a problem after all. The editing I did to httpd.conf to fix the problem originally, apparently wasn't the only thing wrong. I deleted one domain, and recreated it, then made the changes to the DSN Zone that I had to do before(Virtmin still puts that @ symbol in there, and that just won't wotk). But then checked httpd.conf, and this time the IP address WAS the same as the existing two that DO work.

I had just ONE thought as to why it isn't working: When you delete a Comain, then recreate it immediately, will it still have a propagation delay of x hours, perhaps due to the new serial number of the virtual server? If so, perhaps this will start working tomorrow? www.intodns.com says all the settings are correct.

I am SO confused at this point, lol.....
  The administrator has disabled public write access.
#15938
RainbowViper (User)
Posts: 30
graphgraph
Re:Multi-Domains on Home Web Server - DNS issues? 2008/08/26 19:20  
Well, I may have been on to something. The new Domain now resolves.

So, I'm left with just the first problem:

SOMEWHERE there's a setting I need to change, to get rid of that @ symbol in the newly-created DNS Zone Record.

Any suggestions where to look?

Thanks again.
  The administrator has disabled public write access.
#15940
ronald (User)
Posts: 505
graphgraph
Re:Multi-Domains on Home Web Server - DNS issues? 2008/08/26 22:27  
Basically what went wrong is the apache suexec was pointing to /var/www instead of home. By installing on a minimum OS with the install.sh, this issue was tackled.

secondly because you are behind a router you need to tell VM about it in that module config.

Now that you have a working system, it is time to finetune it. For the @ in bind, check all your settings in the modules and server template. Clone the template and use that cloned template to create different domains with different settings.

simply create subservers on top level, i.e test.domain.us (so not as subdomain but as sub server on top level)

Also it would be wise to catch up on the documentation site http://www.virtualmin.com/documentation/ to get some ideas of what is possible.
  The administrator has disabled public write access.
#15952
RainbowViper (User)
Posts: 30
graphgraph
Re:Multi-Domains on Home Web Server - DNS issues? 2008/08/27 07:23  
Thanks again, Ronald. I'll clone a template and experiment with it.

At this point, it appears the only remaining problem is the @ symbol. I can always override that with a template that uses a complete replacement of the default DNS Zone build, but I'd like to nail it down to where it doesn't NEED the replacement for that part.

I'll forge ahead!
  The administrator has disabled public write access.
#15953
ronald (User)
Posts: 505
graphgraph
Re:Multi-Domains on Home Web Server - DNS issues? 2008/08/27 07:39  
not sure what you mean with the @ symbol as it is fine in the zone.
This is one of mine
server.nl is the box
domain.be the clients domain


$ttl 10H
@ IN SOA ns1.server.nl. postmaster.server.nl. (
2008063001
4H
1H
1W
10H )
@ IN NS ns1.server.nl.
@ IN NS ns3.server.nl.
domain.be. IN A 12.34.56.78
www.domain.be. IN A 12.34.56.78
ftp.domain.be. IN A 12.34.56.78
m.domain.be. IN A 12.34.56.78
localhost.domain.be. IN A 127.0.0.1
mail.domain.be. IN A 12.34.56.78
domain.be. IN MX 5 mail.domain.be.
domain.be. IN TXT "v=spf1 a mx a:domain.be ip4:12.34.56.78 ?all"
domain.be. IN NS ns2.server.nl.
domain.be. IN MX 10 ns3.server.nl.
  The administrator has disabled public write access.
#15958
RainbowViper (User)
Posts: 30
graphgraph
Re:Multi-Domains on Home Web Server - DNS issues? 2008/08/27 11:48  
Not sure why, but in my setup the @ symbol just doesnt work. The Domain won't resolve unless I replace all @ symbols with the correct Domain name.

But I created a new server template per your suggestion (thanks again) and in the DNS BIND Section put the following:

Code:

$ttl 38400 ${DOM}.    IN    SOA    ns1.mydomain.us. admin.${DOM}. (             1219107587             10800             3600             604800             38400 ) ${DOM}.    IN    NS    ns1.mydomain.us. ${DOM}.    IN    NS    ns2.mydomain.us. ${DOM}.    IN    A    12.34.56.78 localhost    IN    A    127.0.0.1 ${DOM}.    IN    MX    5 ${DOM}. www        IN    CNAME    ${DOM}. mail        IN    CNAME    ${DOM}. ftp        IN    CNAME    ${DOM}.


and this works perfectly. I deleted and recreated all 5 Domains (I added 2 more) about an hour ago, and they all work like a champ. The Mail works, too. Imagine that. ;)

Now I want to tackle getting phpMyAdmin installed. I saw it mentioned elsewhere on this site, so I'm assuming this is something I can accomplish.

Thanks again for all your help. And Joe, too!
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.