Networking Forums

Networking Forums > Computer Networking > Linux Networking > Web Hosting/Deployment Problem With Ubuntu But Not With Windows

Reply
Thread Tools Display Modes

Web Hosting/Deployment Problem With Ubuntu But Not With Windows

 
 
OtagoHarbour
Guest
Posts: n/a

 
      11-16-2011, 05:17 PM
I have dual booted my home computer with Ubuntu 11.04 and Windows XP.
I have a static IP address that I have registered to my site name with
1and1. I have no problem deploying my web site using Windows XP and it
can be viewed anywhere, including on wireless devices. So my port
forwarding seems to be fine.

With Ubuntu, I put index.html and index.php in both /var/www and in a
newly created directory /var/www/htdocs. I even did

iptables --flush

and rebooted the PC. I can access files in /var/www/ from computers on
my LAN, but when I try to access my web site, even from a home
computer, I get the following message.

The connection has timed out

The server at mywebsite.com is taking too long to
respond.
The site could be temporarily unavailable or too
busy. Try again in a few moments.
If you are unable to load any pages, check your
computer's network connection.
If your computer or network is protected by a
firewall or proxy, make sure that Firefox is permitted to access the
Web.

Any assistance with this would be greatly appreciated,
Peter.
 
Reply With Quote
 
 
 
 
Not Disclosed
Guest
Posts: n/a

 
      11-19-2011, 02:54 PM
Have you tried reseting your router? Have you opened the proper ports in
your ubuntu box?
 
Reply With Quote
 
OtagoHarbour
Guest
Posts: n/a

 
      11-21-2011, 12:24 AM
On Nov 19, 10:54*am, Not Disclosed <not_disclo...@yahoo.com> wrote:
> Have you tried reseting your router? Have you opened the proper ports in
> your ubuntu box?


Thank you for your reply. I set my port forwarding on the router to
Web Server
TCP Any -> 80
TCP Any -> 443

I use the same box for both Ubuntu and Windows. It's just that I get
port forwarding when I boot in Windows but not with Ubuntu.

Thanks,
Peter.
 
Reply With Quote
 
Joe Pfeiffer
Guest
Posts: n/a

 
      11-21-2011, 01:19 AM
OtagoHarbour <(E-Mail Removed)> writes:

> On Nov 19, 10:54Â*am, Not Disclosed <not_disclo...@yahoo.com> wrote:
>> Have you tried reseting your router? Have you opened the proper ports in
>> your ubuntu box?

>
> Thank you for your reply. I set my port forwarding on the router to
> Web Server
> TCP Any -> 80
> TCP Any -> 443
>
> I use the same box for both Ubuntu and Windows. It's just that I get
> port forwarding when I boot in Windows but not with Ubuntu.


Since the router is forwarding properly, it sounds like you don't have
the ports open on the windows/ubuntu box under ubuntu. Try turning the
ubuntu firewall off entirely and see what happens -- and, since I've
done things like this myself, make sure the web server is actually
running under ubuntu...
 
Reply With Quote
 
aaron.psamuel@gmail.com
Guest
Posts: n/a

 
      11-21-2011, 02:28 AM
On Wednesday, November 16, 2011 1:17:08 PM UTC-5, OtagoHarbour wrote:
> I have dual booted my home computer with Ubuntu 11.04 and Windows XP.
> I have a static IP address that I have registered to my site name with
> 1and1. I have no problem deploying my web site using Windows XP and it
> can be viewed anywhere, including on wireless devices. So my port
> forwarding seems to be fine.
>
> With Ubuntu, I put index.html and index.php in both /var/www and in a
> newly created directory /var/www/htdocs. I even did
>
> iptables --flush
>
> and rebooted the PC. I can access files in /var/www/ from computers on
> my LAN, but when I try to access my web site, even from a home
> computer, I get the following message.
>
> The connection has timed out
>
> The server at mywebsite.com is taking too long to
> respond.
> The site could be temporarily unavailable or too
> busy. Try again in a few moments.
> If you are unable to load any pages, check your
> computer's network connection.
> If your computer or network is protected by a
> firewall or proxy, make sure that Firefox is permitted to access the
> Web.
>
> Any assistance with this would be greatly appreciated,
> Peter.


You said that you dual booted the box, so this means one OS runs at a time.What is the method that you assign addresses? Are you sure that Ubuntu andWindows are coming up with the same IP address internally? Being the same one that you have configured on your port forwards? Sounds to me like the IP address is changing internally.

 
Reply With Quote
 
OtagoHarbour
Guest
Posts: n/a

 
      11-21-2011, 03:31 PM
On Nov 20, 9:19*pm, Joe Pfeiffer <pfeif...@cs.nmsu.edu> wrote:
> OtagoHarbour <peterdlau...@gmail.com> writes:
> > On Nov 19, 10:54*am, Not Disclosed <not_disclo...@yahoo.com> wrote:
> >> Have you tried reseting your router? Have you opened the proper ports in
> >> your ubuntu box?

>
> > Thank you for your reply. *I set my port forwarding on the router to
> > Web Server
> > TCP Any -> 80
> > TCP Any -> 443

>
> > I use the same box for both Ubuntu and Windows. *It's just that I get
> > port forwarding when I boot in Windows but not with Ubuntu.

>
> Since the router is forwarding properly, it sounds like you don't have
> the ports open on the windows/ubuntu box under ubuntu. *Try turning the
> ubuntu firewall off entirely and see what happens -- and, since I've
> done things like this myself, make sure the web server is actually
> running under ubuntu...


Thank you very much for your reply. I tried to turn the Ubuntu
firewall off with

$ iptables --flush

I tried to get the web server running with the following steps.
$ cd /etc/apache2/sites-enabled
$ sudo vi 000-default
Under <Directory /var/www/>
changed "Allow Override None" to "Allow Override All"
$ sudo a2enmod rewrite
$ sudo /etc/init.d/apache2 restart
$ cd /var
$ sudo chown -R www-data www

Unfortunately, I still cannot access my web page, even from my home
computers, when the server is running Ubuntu.

Thanks,
Peter.
 
Reply With Quote
 
Joe Pfeiffer
Guest
Posts: n/a

 
      11-21-2011, 05:25 PM
OtagoHarbour <(E-Mail Removed)> writes:

> On Nov 20, 9:19Â*pm, Joe Pfeiffer <pfeif...@cs.nmsu.edu> wrote:
>> OtagoHarbour <peterdlau...@gmail.com> writes:
>> > On Nov 19, 10:54Â*am, Not Disclosed <not_disclo...@yahoo.com> wrote:
>> >> Have you tried reseting your router? Have you opened the proper ports in
>> >> your ubuntu box?

>>
>> > Thank you for your reply. Â*I set my port forwarding on the router to
>> > Web Server
>> > TCP Any -> 80
>> > TCP Any -> 443

>>
>> > I use the same box for both Ubuntu and Windows. Â*It's just that I get
>> > port forwarding when I boot in Windows but not with Ubuntu.

>>
>> Since the router is forwarding properly, it sounds like you don't have
>> the ports open on the windows/ubuntu box under ubuntu. Â*Try turning the
>> ubuntu firewall off entirely and see what happens -- and, since I've
>> done things like this myself, make sure the web server is actually
>> running under ubuntu...

>
> Thank you very much for your reply. I tried to turn the Ubuntu
> firewall off with
>
> $ iptables --flush
>
> I tried to get the web server running with the following steps.
> $ cd /etc/apache2/sites-enabled
> $ sudo vi 000-default
> Under <Directory /var/www/>
> changed "Allow Override None" to "Allow Override All"
> $ sudo a2enmod rewrite
> $ sudo /etc/init.d/apache2 restart
> $ cd /var
> $ sudo chown -R www-data www
>
> Unfortunately, I still cannot access my web page, even from my home
> computers, when the server is running Ubuntu.


Can you talk to any other daemons (like sshd) on it? Can you ping it?
 
Reply With Quote
 
OtagoHarbour
Guest
Posts: n/a

 
      11-21-2011, 07:55 PM
On Nov 20, 10:28*pm, aaron.psam...@gmail.com wrote:
> On Wednesday, November 16, 2011 1:17:08 PM UTC-5, OtagoHarbour wrote:
> > I have dual booted my home computer with Ubuntu 11.04 and Windows XP.
> > I have a static IP address that I have registered to my site name with
> > 1and1. I have no problem deploying my web site using Windows XP and it
> > can be viewed anywhere, including on wireless devices. So my port
> > forwarding seems to be fine.

>
> > With Ubuntu, I put index.html and index.php in both /var/www and in a
> > newly created directory /var/www/htdocs. I even did

>
> > iptables --flush

>
> > and rebooted the PC. I can access files in /var/www/ from computers on
> > my LAN, but when I try to access my web site, even from a home
> > computer, I get the following message.

>
> > The connection has timed out

>
> > * * * * * * *The server at mywebsite.com is taking too long to
> > respond.
> > * * * * * * * * *The site could be temporarily unavailable or too
> > busy. Try again in a few moments.
> > * * * * * * * * *If you are unable to load any pages,check your
> > computer's network connection.
> > * * * * * * * * *If your computer or network is protected by a
> > firewall or proxy, make sure that Firefox is permitted to access the
> > Web.

>
> > Any assistance with this would be greatly appreciated,
> > Peter.

>
> You said that you dual booted the box, so this means one OS runs at a time. What is the method that you assign addresses? Are you sure that Ubuntu and Windows are coming up with the same IP address internally? Being the same one that you have configured on your port forwards? Sounds to me like theIP address is changing internally.


The internal IP address seems to be assigned by the router and is
192.168.1.6 whether I boot in Win XP or Ubuntu. I can communicate
with another computer on the LAN using that IP address.

Thanks,
Peter.
 
Reply With Quote
 
OtagoHarbour
Guest
Posts: n/a

 
      11-21-2011, 08:00 PM
On Nov 21, 1:25*pm, Joe Pfeiffer <pfeif...@cs.nmsu.edu> wrote:
> OtagoHarbour <peterdlau...@gmail.com> writes:
> > On Nov 20, 9:19*pm, Joe Pfeiffer <pfeif...@cs.nmsu.edu> wrote:
> >> OtagoHarbour <peterdlau...@gmail.com> writes:
> >> > On Nov 19, 10:54*am, Not Disclosed <not_disclo...@yahoo.com> wrote:
> >> >> Have you tried reseting your router? Have you opened the proper ports in
> >> >> your ubuntu box?

>
> >> > Thank you for your reply. *I set my port forwarding on the router to
> >> > Web Server
> >> > TCP Any -> 80
> >> > TCP Any -> 443

>
> >> > I use the same box for both Ubuntu and Windows. *It's just that I get
> >> > port forwarding when I boot in Windows but not with Ubuntu.

>
> >> Since the router is forwarding properly, it sounds like you don't have
> >> the ports open on the windows/ubuntu box under ubuntu. *Try turning the
> >> ubuntu firewall off entirely and see what happens -- and, since I've
> >> done things like this myself, make sure the web server is actually
> >> running under ubuntu...

>
> > Thank you very much for your reply. *I tried to turn the Ubuntu
> > firewall off with

>
> > $ iptables --flush

>
> > I tried to get the web server running with the following steps.
> > $ cd /etc/apache2/sites-enabled
> > $ sudo vi 000-default
> > * * Under <Directory /var/www/>
> > * * changed "Allow Override None" to "Allow Override All"
> > $ sudo *a2enmod rewrite
> > $ sudo /etc/init.d/apache2 restart
> > $ cd /var
> > $ sudo chown -R www-data www

>
> > Unfortunately, I still cannot access my web page, even from my home
> > computers, when the server is running Ubuntu.

>
> Can you talk to any other daemons (like sshd) on it? *Can you ping it?


I can ping to the IP address (192.168.1.6) of the web server, and also
to the web site name, from any computer on my home network. That's
actually progress since I was not able to do that, from the PC
connected to the router by wireless, before I made the changes
outlined above. However, I cannot connect by putting the web site
name or 192.168.1.2 in the URL box on FireFox.

Thanks,
Peter.
 
Reply With Quote
 
Joe Pfeiffer
Guest
Posts: n/a

 
      11-21-2011, 08:32 PM
OtagoHarbour <(E-Mail Removed)> writes:

> On Nov 21, 1:25Â*pm, Joe Pfeiffer <pfeif...@cs.nmsu.edu> wrote:
>> OtagoHarbour <peterdlau...@gmail.com> writes:
>> > On Nov 20, 9:19Â*pm, Joe Pfeiffer <pfeif...@cs.nmsu.edu> wrote:
>> >> OtagoHarbour <peterdlau...@gmail.com> writes:
>> >> > On Nov 19, 10:54Â*am, Not Disclosed <not_disclo...@yahoo.com> wrote:
>> >> >> Have you tried reseting your router? Have you opened the proper ports in
>> >> >> your ubuntu box?

>>
>> >> > Thank you for your reply. Â*I set my port forwarding on the router to
>> >> > Web Server
>> >> > TCP Any -> 80
>> >> > TCP Any -> 443

>>
>> >> > I use the same box for both Ubuntu and Windows. Â*It's just that I get
>> >> > port forwarding when I boot in Windows but not with Ubuntu.

>>
>> >> Since the router is forwarding properly, it sounds like you don't have
>> >> the ports open on the windows/ubuntu box under ubuntu. Â*Try turning the
>> >> ubuntu firewall off entirely and see what happens -- and, since I've
>> >> done things like this myself, make sure the web server is actually
>> >> running under ubuntu...

>>
>> > Thank you very much for your reply. Â*I tried to turn the Ubuntu
>> > firewall off with

>>
>> > $ iptables --flush

>>
>> > I tried to get the web server running with the following steps.
>> > $ cd /etc/apache2/sites-enabled
>> > $ sudo vi 000-default
>> > Â* Â* Under <Directory /var/www/>
>> > Â* Â* changed "Allow Override None" to "Allow Override All"
>> > $ sudo Â*a2enmod rewrite
>> > $ sudo /etc/init.d/apache2 restart
>> > $ cd /var
>> > $ sudo chown -R www-data www

>>
>> > Unfortunately, I still cannot access my web page, even from my home
>> > computers, when the server is running Ubuntu.

>>
>> Can you talk to any other daemons (like sshd) on it? Â*Can you ping it?

>
> I can ping to the IP address (192.168.1.6) of the web server, and also
> to the web site name, from any computer on my home network. That's
> actually progress since I was not able to do that, from the PC
> connected to the router by wireless, before I made the changes
> outlined above. However, I cannot connect by putting the web site
> name or 192.168.1.2 in the URL box on FireFox.


Still trying to figure out whether it's likelier to be a firewall issue
or a daemon issue (what you've described doing should have cleared up
either one...). Try logging in to that machine, and see if you can open
a web page at 127.0.0.1 (of course, that's the loopback address).

Were you able to ssh to it from another machine? Also, if you've got
another linux machine on the network, try using nmapfe to see if you can
see any open ports.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RIS to Windows Desktop deployment 2003 Ammad Shah Windows Networking 1 01-02-2008 02:30 AM
Windows/Ubuntu system Patty Linux Networking 5 04-20-2007 03:04 PM
DNS configuration problem - (Exch 2003 deployment tools) Kizetoni Windows Networking 4 12-15-2005 01:16 PM
Windows XP RIS Deployment George Windows Networking 1 06-26-2004 12:00 PM
Deployment of files to clients (windows 2k, AD) Dror Mor Windows Networking 0 04-26-2004 11:42 AM



1 2 3 4 5 6 7 8 9 10 11