Fedora Linux Support Community & Resources Center
  #1  
Old 16th October 2011, 06:11 PM
coolmego Offline
Registered User
 
Join Date: Aug 2011
Posts: 20
linuxchrome
Unhappy httpd issue

i installed httpd in my system and wrote a html and a php code...please tell me what to do next to start the page..
Reply With Quote
  #2  
Old 16th October 2011, 06:56 PM
robvas Offline
Registered User
 
Join Date: Jan 2009
Location: Estados Unidos
Posts: 87
macosfirefox
Re: httpd issue

Enter the command

/sbin/service httpd status

To see if httpd is running. If not, run

/sbin/service httpd start

Next, run the command

grep 'DocumentRoot' /etc/httpd/conf/httpd.conf

That will tell you the name of the folder you need to place your HTML files in.

Have you installed PHP and all the Apache modules to run LAMP?
Reply With Quote
  #3  
Old 16th October 2011, 08:07 PM
coolmego Offline
Registered User
 
Join Date: Aug 2011
Posts: 20
linuxchrome
Re: httpd issue

Thanks for your reply..as a matter i installed every packages for LAMP..
Reply With Quote
  #4  
Old 17th October 2011, 01:55 PM
linuxwin2k Offline
Registered User
 
Join Date: Oct 2011
Posts: 41
linuxchrome
Re: httpd issue

Start apache with
/sbin/service httpd start
test with browser
Code:
$firefox 127.0.0.1&
and tell me.
Reply With Quote
  #5  
Old 18th October 2011, 02:45 PM
coolmego Offline
Registered User
 
Join Date: Aug 2011
Posts: 20
linuxchrome
Re: httpd issue

thankyou for your reply...ya its showing a page..
Reply With Quote
  #6  
Old 18th October 2011, 05:58 PM
Fenrin Offline
Registered User
 
Join Date: Apr 2010
Location: Earth
Posts: 890
linuxfirefox
Re: httpd issue

by default the path /var/www/html is used for your websites.

If you want to add files to this location as user, you can create a group for this purpose.
Code:
su -
groupadd apache
Then add your user to this created group:
Code:
gpasswd -a [user] apache
replace "[user]" with your username.

Then set appropriate permissions to /var/www/html:
Code:
chgrp -R apache /var/www/html
chmod -R g+rw /var/www/html
If you open http://localhost/ in your browser it should show the page you just saw or the file /var/www/html/index.php if it exists (you can create and test it to see how it works).
Reply With Quote
  #7  
Old 18th October 2011, 08:03 PM
coolmego Offline
Registered User
 
Join Date: Aug 2011
Posts: 20
linuxchrome
Re: httpd issue

I bought a domain.Can i bind my html with that domain in httpd.If yes,how can it be done?
Reply With Quote
  #8  
Old 19th October 2011, 12:06 AM
Fenrin Offline
Registered User
 
Join Date: Apr 2010
Location: Earth
Posts: 890
linuxfirefox
Re: httpd issue

you probably want to setup your own webserver. Here is a guide to do this.
Reply With Quote
  #9  
Old 19th October 2011, 06:59 AM
coolmego Offline
Registered User
 
Join Date: Aug 2011
Posts: 20
linuxchrome
Re: httpd issue

thankyou Fenrin for providing such a good resource.
Reply With Quote
Reply

Tags
httpd

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
Apache httpd equivalent use for micro-httpd line legendbb Servers & Networking 2 29th April 2010 08:59 PM
httpd issue nkaem_ael Servers & Networking 4 20th November 2008 03:01 AM
Apache2/Httpd Issue antjensavwork Using Fedora 3 31st July 2004 03:15 AM


Current GMT-time: 17:05 (Saturday, 19-04-2014)

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