LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-04-2008, 03:12 PM   #1
joe2748
Member
 
Registered: Nov 2007
Distribution: Ubuntu 9.10
Posts: 36

Rep: Reputation: 15
Help setting up apache2 on ubuntu


hello all, this should be an easy one for you.

I'm trying to set up apache2 to serve a web page I'm building (don't worry, its just for fun. Clearly if I can't set up apache I shouldn't be an admin)

So I just downloaded and installed the package, looked at a couple blogs on configuring, and took off.

I'm using no-ip to give me my domain name.
Here is what I've done,
copied the default file in /etc/apache2/sites-available to test
added the line ServerName myname.sytes.net to test
deleted the link to 000default in sites-enabled
ran a2ensite test
and ran /etc/init.d/apache2 restart

upon which apache complained that it could not reliable determine my fully qualified domain name and set it would set it to 127.0.0.0.

Now, I can browse to localhost, and everything works fine. But if I browse to myname.sytes.net nothing happens. The browser just waits forever.

So I added ServerName myname.sytes.net to apache2.config, at which time it quit complaining about not being able to determine my fqdn, but it didn't change my browsing results. Any ideas?

In short, apache2 is serving fine if I request localhost, and doesn't seem to do anything otherwise.

Thanks for the help in advance.
 
Old 02-04-2008, 04:54 PM   #2
puntjuh
Member
 
Registered: Apr 2006
Location: holland
Distribution: Gentoo / debian / suse / mint
Posts: 558

Rep: Reputation: 42
For this too work you have to setup Virtual hosts, within the dir of apache2 there's also a vhost.conf file, you have to set this up for it too work. If you have a router, you might have to enable DynDNS in it as well.
 
Old 02-04-2008, 05:11 PM   #3
wildar
Member
 
Registered: Jan 2007
Distribution: Mandriva 2008, Mandrake 2005, Ubuntu 8.04.1
Posts: 239

Rep: Reputation: 30
Need to resolve what the IP address is for "myname.sytes.net". Try doing ping or nslookup of myname.sytes.net. If the IP address is the WAN side of your router, then need to set up port fowarding to the LAN IP of the apache server. Port 80 is default for most web server.

To set up port fowarding in your router will depend on the router. some routers will have port 80 already assigned for remote management of the router, so you may need to change the remote management port number. Plus, some routers may have port 80 closed, thus you'll need to set the router firewall to allow connections to port 80.

Be sure to reference your routers documentation if your not sure how.
 
Old 02-04-2008, 06:51 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
If this is just for testing, you can modify /etc/hosts to resolve your new domain name to your localhost IP address. For example:
Code:
127.0.0.1               localhost
127.0.0.1               myname.sytes.net  myname
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need help setting up my Debian/apache2/php/mysql server antinull Linux - Newbie 17 10-31-2007 05:18 AM
[Urgent, pls. Help] apache2 setting swmok Linux - Software 3 06-15-2006 12:41 AM
Help setting up Apache2 on Ubuntu box BoardinBum Linux - Software 16 05-15-2006 03:45 PM
LXer: Setting up an SSL server with Apache2 LXer Syndicated Linux News 0 02-12-2006 09:31 PM
Setting up Apache2 in Mandrake 10 prodigal Mandriva 4 07-21-2004 04:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration