Cant see VS's from the outside MKII

19 posts / 0 new
Last post
#1 Sat, 05/26/2007 - 21:12
justinreid

Cant see VS's from the outside MKII

Hi, i've read through this

http://www.virtualmin.com/forums/message-view?message%5fid=124923

("I can not connect from the outside world, either on my network (pointing to the machine using the base IP address or using it as a DNS server) or from the internet. I always get the same thing .. The Apache Message - Alive and Well - No web site yet.")

And am having the same problem but really don't understand how to fix it.

I've set up port forwarding on the router for a DNS Sevrer, Web Server and FTP server all pointing to my server at 10.1.1.3

I have two Virtual Hosts setup, www.jrdezine.com and www.adelfieds.com both appear to be working fine when i view them from the server however, i fi try and view them from any other pc on the network, or from a home pc - i get 404'd.

Both domain names have had their dns server settings pointing to my IP address which is 150.101.247.226

Any help greatly appreciated.

regards,

Justin

Sat, 05/26/2007 - 21:38
justinreid

I'll add all my issues here as i come across them today, save putting in a hundred posts.

phpmyadmin? how do i access that as a client? (ex cpanel user heheh) Cant seem to find it when logged in as jrdezine.com:10000

Sat, 05/26/2007 - 21:41
justinreid

Also, as of last night i have a fresh install of Ubuntu 6.06.1 on my system, It now has 125 updates waiting to be performed. I'm assuming it's safe to go ahead and let it perform these updates? Don't want to wreck Joe's good work :o)

Sat, 05/26/2007 - 21:48
ah...lifes...good

phpmyadmin... you have to install it using Virtualmin Pro's Script Installer or manually install it.

I manually installed mine. Unfortunately, PHP is currently not compiled with mcrypt. This slows down mysql operations quite significantly. The issue has been reported to Joe and Jamie. They say they will compile PHP with mcrypt in the next major release... when is that is anybody's guess.

Sun, 05/27/2007 - 04:28 (Reply to #4)
Joe
Joe's picture

<i>They say they will compile PHP with mcrypt in the next major release... when is that is anybody's guess.</i>

It's rolling into some repositories this weekend (already in FC6 and FC5, though I haven't rsync'ed it over yet, as it hasn't been tested much yet). CentOS will also probably come by Monday.

Justin is running Ubuntu, which provides the php mcrypt packages in universe (i.e. he doesn't have to wait for our packages to support it).

--

Check out the forum guidelines!

Sat, 05/26/2007 - 21:54
ah...lifes...good

When I look at your IP address, I get:

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
If you can see this, it means that the installation of the Apache web server software on this system was successful. You may now add content to this directory and replace this page.
Seeing this instead of the website you expected?

This page is here because the site administrator has changed the configuration of this web server. Please contact the person responsible for maintaining this server with questions. The Apache Software Foundation, which wrote the web server software this site administrator is using, has nothing to do with maintaining this site and cannot help resolve configuration issues.

The Apache documentation has been included with this distribution.

You are free to use the image below on an Apache-powered web server. Thanks for using Apache!
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

It seems that Apache is working OK on your server.

Put some contents (e.g. index.htm) into your virtual server's home directory... at /home/jrdezine.com/public_html/

Sat, 05/26/2007 - 21:59
ah...lifes...good

&gt; I'm assuming it's safe to go ahead and let it perform these updates?

I guess you don't try you won't know. Since you have just got the server up and running, it's the best time to try updating... without suffering drastic consequences if something goes wrong.

Sat, 05/26/2007 - 22:03
justinreid

cant find the simple Machines scriptinstaller from the client side (or anywhere in the virtualmin side) is there somewhere im supposed to download installation scripts from and install them first?

thanks!

Justin

Sat, 05/26/2007 - 22:09
justinreid

Thanks very much for your help AH, i shouldvve mentioned that pointing to the ip comes up fine but using the domain names doens't give me anything. Im assuming it should.

I found the scipts areea in virtualmin but cant find them from the user side of things ie jrdezine.com:10000

Sun, 05/27/2007 - 01:01
ah...lifes...good

If I go to http://www.jrdezine.com/ , I get:

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
While trying to retrieve the URL: http://www.jrdezine.com/

The following error was encountered:

Unable to determine IP address from host name for www.jrdezine.com

The dnsserver returned:

Server Failure: The name server was unable to process this query.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

and if I whois your domain name, jrdezine.com, I get:

Name Server 1: ns9.jrdezine.com
Name Server 2: ns10.jrdezine.com

You need to create New Virtual Server for ns9.jrdezine.com and ns10.jrdezine.com using Virtualmin Pro.

Anyway, the first thing you should do is access Virtualmin via http://10.1.1.3:10000 or http://150.101.247.226:10000

Log in as root.

Create New Virtual Server jrdezine.com first, then ns9.jrdezine.com, ns10.jrdezine.com and adelfieds.com, in that sequence.

The IP address you should use when creating the websites is 10.1.1.3

After creating the website with Virtualmin Pro, your website home directories will be created here:

/home/jrdezine.com/public_html/
/home/ns9.jrdezine.com/public_html/
/home/ns10.jrdezine.com/public_html/
/home/adelfieds.com/public_html/

Put a index.html file in each of the public_html directories.

See if you can access jrdezine.com and the other 3 websites now.

You won't be able to &quot;see&quot; your websites if you have not configured your DNS correctly on your server. Check the Administrator's Guide via] Support] Documentation link on this website for instructions on DNS.

Good luck.

Sun, 05/27/2007 - 01:04
ah...lifes...good

Oh yes, *allow* ALL PORTS to 10.1.1.3 via your router admin interface for convenience. Or just set 10.1.1.3 as a DMZ, so that you can access jrdezine.com:10000

Sun, 05/27/2007 - 01:21
ah...lifes...good

... and other essential ports 20000 (usermin), 22 (SSH) etc.

When you have gotten everything running and are more familiar with which specific ports you need to use, then restrict port access via your router admin interface again.

Sun, 05/27/2007 - 01:41
justinreid

Thanks again A H.

Create New Virtual Server jrdezine.com first, then ns9.jrdezine.com, ns10.jrdezine.com and adelfieds.com, in
that sequence.

DONE

The IP address you should use when creating the websites is 10.1.1.3

DONE

After creating the website with Virtualmin Pro, your website home directories will be created here:

CORRECT

/home/jrdezine.com/public_html/
/home/ns9.jrdezine.com/public_html/
/home/ns10.jrdezine.com/public_html/
/home/adelfieds.com/public_html/

See if you can access jrdezine.com and the other 3 websites now.

ONLY FROM SERVER

You won't be able to &quot;see&quot; your websites if you have not configured your DNS correctly on your server. Check the Administrator's Guide via] Support] Documentation link on this website for instructions on DNS.

NO LUCK

Good luck.
THANKS BUT... :o(

dmz 10.1.1.3
Maybe4 time for a support ticket methinks?

Sun, 05/27/2007 - 04:43 (Reply to #13)
Joe
Joe's picture

<i>See if you can access jrdezine.com and the other 3 websites now.

ONLY FROM SERVER</i>

This indicates, as A H has indicated, that DNS isn't spinning right. It can also indicate that your router doesn't actually route (most consumer routers cannot perform NAT on traffic coming from the internal network back to the internal network--so if your router is deficient in this way, you'll run into further troubles). DNS is tricky on multiple counts, but is fixable.

The first piece of trouble for you is my fault. I was too tired last night when I configured your box to remember to set it up for private network usage. Your DNS records need to point to your public IP address, and <i>not</i> the internal IP address. This needs to be set in the Module Configuration under Other Server Configuration. Find the option labeled &quot;Default IP address for DNS records&quot; and set it to your public IP address (don't change any others, as the Apache config needs to have the <i>private</i> address! If you're on a dynamic IP, you may instead want to use the Dynamic IP Update feature--this allows you to use DynDNS.org to maintain your DNS records.

Also note that just changing the IP in the configuration won't update the existing DNS records. They can be changed in the Services:DNS Options page for each of your domains.

Next up, you'll need to go to your registrar (wherever you registered your domains) and update them to point to your server (and a secondary server--see our DNS Slave guide for how to setup a secondary DNS server). Or, use one of the existing DNS services (if your IP changes periodically that's your only option).

Finally, if the IP on your system changes (I believe you found it picked up different IPs between when we first talked and when I actually logged in?) all of your Apache VirtualHost/NameVirtualHost configuration will be wrong. You'll want to make sure the private IP for this box doesn't change (changing would also lead to your DMZ not working).

--

Check out the forum guidelines!

Sun, 05/27/2007 - 04:13
ah...lifes...good

Hi Justin,

I don't use my own server as a name server, so I can't tell you much in great details as to what to do on your server.

But the entries you definitely need in your DNS record for each of your domain names are:

HOST TYPE MAP
---- ---- ---

@ A 150.101.247.226
www A 150.101.247.226
mail A 150.101.247.226
ns9 A 150.101.247.226
ns10 A 150.101.247.226
@ MX 25 mail
@ NS ns9.jrdezine.com
@ NS ns10.jrdezine.com

For the other domain names, you don't need to include the lines starting with ns9 and ns10.

There are free DNS services around. Just google &quot;free DNS&quot; and you will find a few. I personally prefer not to host DNS on my server because if my server is down, I would like to be able to quickly redirect my domain name to another server very quickly. If I have my DNS elsewhere, I just need to change the IP address of the record I mentioned above and I'm back in business.

Sun, 05/27/2007 - 05:11
ah...lifes...good

&gt; You'll want to make sure the private IP for this box doesn't change (changing would also lead to your DMZ not working).

To fix a static private IP for your server, you need to do this:

1. Go to your router admin interface, and stipulate 10.1.1.3 is for your server (enter the server's MAC address).

2. You must set your server to use a specific/static IP address (i.e. 10.1.1.3). That is, you cannot have the server obtain an IP address via DHCP each time it boots.

Sun, 05/27/2007 - 05:33
ah...lifes...good

Point 2. above relates to your Network Card eth0 setting.

Wed, 05/30/2007 - 00:25
ah...lifes...good

Justin, continue your questions here... for the sake of continuity and easier referencing...

COPIED OVER:

&quot;Hi all, so far so good thanks heaps for all your help so far (esp, Joe and A H).

I was trying to place an index.html into /var/www/ but couldn't because.. it just wouldn't let me.

I did a sudo chown myUsername /var/www/
it let me place the index file in teh directory however when i go to
http://localhost/ i get 403'd you don't have persmission to access / on this server.

Any help on how to fix this?
( chown root doesnt change anything either) &quot;

For goodness sake, don't chown all the directories to root. This is just bad practice.

After you've created a domain name, use the domain administrator's login via SSH or FTP to

/home/mydomain.com/public_html

VMpro creates home directory to websites in /home not /var/www/html. Your website contents should be in /home/mydomain.com/public_html and not /var/www/html

You have to configure /etc/httpd/conf/httpd.conf

Wed, 05/30/2007 - 15:44
RobinDunn

I couldn't tell with the discussion of DNS and what-not if the original problem has been solved yet or not. (Getting the system document root instead of the VServer document root.)

I ran into the same symptom and without any DNS problems, and also noticed a configuration warning from apache when it restarts (although I don't remember now what it was.) I solved this by using the specific IP address in the Virtual Server config. To do this in Virtualmin select the VServer in question, and then Services and then Configure Website. This will take you to the Webmin page for the virutal server. Near the bottom there is a Virtual Server Details: Address field that probably has &quot;Any&quot; selected. Select the next radio item instead and put the IP address in the field. Then click the Save button and then Apply Changes on the next page. You may have to do this for all the virtual servers except for the default ones before they all start working properly.

Topic locked