Fedora Linux Support Community & Resources Center
  #1  
Old 21st April 2009, 01:33 PM
Booma Offline
Registered User
 
Join Date: Oct 2006
Location: London
Age: 41
Posts: 26
Localhost

Hello everyone,

I'm having trouble with the concept of localhost. Do I need to start Apache before I can see my landing page at http://localhost.

I've successfully changed the directory of my local environment in the config file but seem to be getting nothing in the browser.

I'm doing something really silly, I know I am.

Thanks
Reply With Quote
  #2  
Old 21st April 2009, 01:36 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,930
Is the httpd service running?
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #3  
Old 21st April 2009, 02:01 PM
Booma Offline
Registered User
 
Join Date: Oct 2006
Location: London
Age: 41
Posts: 26
Thanks for your reply,

I believe it is running because I can now see the default Fedora Test Page, which I presume appears in the absence of any content.

The Test Page tells me that I can add my content to /varf/www/html/ However this is in the Root and I would rather have my web content in another location.

I've changed the location for my html content in the conf file but httpd://localhost still points to the default page..... Do I need to code this out in welcome.comf?

Thanks again
Reply With Quote
  #4  
Old 21st April 2009, 03:09 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,930
Not sure. I'm not an apache guru. I just play with MoinMoin Wiki, which is working fine although I've had some issues with it in the past. Do you actually have content in another location? If so the problem may be with path configuration in /etc/httpd/conf/httpd/conf. Remember to restart apache any time you make config changes.
Code:
/sbin/service httpd restart
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #5  
Old 21st April 2009, 03:42 PM
Booma Offline
Registered User
 
Join Date: Oct 2006
Location: London
Age: 41
Posts: 26
Thanks

I keep forgetting to restart apache, good point.

Thanks for your help :-)
Reply With Quote
  #6  
Old 21st April 2009, 04:47 PM
knesenko's Avatar
knesenko Offline
Registered User
 
Join Date: Jul 2008
Location: IL
Age: 27
Posts: 142
Go to /etc/httpd/conf.d/welcome.conf and comment all the lines.Restart apache and you'll see your index.html
__________________
My website: http://www.geekacad.com/
Best regards ,
Kiril Nesenko
Reply With Quote
  #7  
Old 21st April 2009, 05:36 PM
Booma Offline
Registered User
 
Join Date: Oct 2006
Location: London
Age: 41
Posts: 26
Permissions

I think I may have it pinned down and it may be a permissions issue. This is the error I'm getting after changing the content location to /home/booma


Forbidden

You don't have permission to access /index.html on this server.
Apache/2.2.11 (Fedora) Server at localhost Port 80

Don't worry if you haven't time to figure it out, but your help is appreciated.

Thanks
Reply With Quote
  #8  
Old 21st April 2009, 05:47 PM
knesenko's Avatar
knesenko Offline
Registered User
 
Join Date: Jul 2008
Location: IL
Age: 27
Posts: 142
I think the problem is permissions or SELinux. Try this:
Code:
su -
service httpd stop
chown -R apache.apache /var/www/
chown -R apache.apache /etc/httpd/
restorecon -R /etc/httpd/
restorecon -R /var/www/
service httpd start
__________________
My website: http://www.geekacad.com/
Best regards ,
Kiril Nesenko
Reply With Quote
Reply

Tags
localhost

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
127.0.0.1 vs localhost mbrad Servers & Networking 4 12th December 2008 04:40 AM
localhost Randy180323 Servers & Networking 7 15th July 2008 12:07 PM
[I have no name!@localhost ~]# ?? Help! Dr.Diesel Using Fedora 9 15th September 2006 01:38 PM
No localhost!! cmuench Servers & Networking 11 4th May 2006 04:09 PM
apache@localhost.com pannet1 Servers & Networking 4 9th November 2005 10:46 PM


Current GMT-time: 17:01 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat