Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-25-2009, 06:55 AM
|
#1
|
LQ Newbie
Registered: Oct 2009
Location: hyderabad,india
Posts: 13
Rep:
|
apache web server
will the command service httpd restart the apache service if i enable httpsd service in graphical mode
|
|
|
12-25-2009, 03:07 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
Taking what you said literally, no. "enabling" sounds like "starting" to me rather than "setting to start on boot". httpsd? Not a real service name. Graphical mode? Don't see how that relates to starting a service. If you wrote a suitably informed post and mentioned what you've actually done, what you clicked / typed and said what distro you did it on then we could get further quicker, but on a distro like redhat you'd run "chkconfig httpd on" to make it start on boot.
Nothing to do with networking at all. moved to Linux - Newbie
|
|
|
12-25-2009, 03:56 PM
|
#3
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,584
|
Quote:
Originally Posted by rajaneesh
will the command service httpd restart the apache service if i enable httpsd service in graphical mode
|
Graphical mode has nothing to do with services running, starting, etc. If the command you mean is "service httpd", that will do nothing. If you mean "service httpd restart", that will stop, then restart the service. HTTPS services are started if you've configured them to...otherwise, it'll just be on whatever port you run your regular http services.
Please write a clear question, and put relevant information in it, like version/distro of Linux, and what you're trying to accomplish.
|
|
|
12-25-2009, 07:08 PM
|
#4
|
Member
Registered: Feb 2008
Location: Texas
Distribution: Slackware
Posts: 92
Rep:
|
TB0ne ++
rajaneesh, If you want to host an "http server" and you want the service to start automatically during boot. You need to make its init script exacutable. Try these commands...
ls -l /etc/init.d/rc.d/rc.httpd
ls -l /etc/rc.d/rc.httpd
locate / -name "rc.httpd"
Depending upon your distrobution, the init script will most likely be in one of those 2 directories, when you find it, make it executable.
chmod +x /path/to/rc.httpd
then
/path/to/rc.httpd start
there ya go.
|
|
|
12-26-2009, 09:09 AM
|
#5
|
LQ Newbie
Registered: Oct 2009
Location: hyderabad,india
Posts: 13
Original Poster
Rep:
|
query on apache web server
ok im sorry for that my ques was not clear but i would like to know configuration procedure of apache at shell prompt so that i can view the websites information which are created by my own.
|
|
|
12-26-2009, 12:38 PM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
Nothing to do with networking. Moved to Linux - Newbie.
We can't tell you how to do that, that is all background knowledge on apache which you get from buying a book on apache, reading the apache howto at tldp.org or other reference information very readily available online.
Last edited by acid_kewpie; 12-26-2009 at 12:40 PM.
|
|
|
12-26-2009, 12:39 PM
|
#7
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
Is this actually meant to be a follow on from this?? http://www.linuxquestions.org/questi...server-778017/ If so I think you need to learn how to use the reply button in an internet forum too...
|
|
|
01-04-2010, 08:23 PM
|
#8
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
merged ...
|
|
|
01-06-2010, 05:24 AM
|
#9
|
Member
Registered: Feb 2008
Location: Texas
Distribution: Slackware
Posts: 92
Rep:
|
TB0ne, /etc/httpd/httpd.conf has all your configuration for your server, and /srv/httpd/htdocs/ should contain all of your html. 
|
|
|
01-06-2010, 09:39 AM
|
#10
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,584
|
Quote:
Originally Posted by elsheepo
TB0ne, /etc/httpd/httpd.conf has all your configuration for your server, and /srv/httpd/htdocs/ should contain all of your html. 
|
No, sorry, it doesn't.
httpd.conf has your basic configuration, which tells the Apache engine what OTHER config files to pull in. Those specific ones (like loadmodule, ssl-global, etc.), have module-specific options. Unless you're running a very old Apache server, options have been spread out over multiple files for quite some time now. Also, it may be under /etc/httpd for YOU, but it isn't for me...mine are /etc/apache2, and I've seen different locations, depending on the distro. You can also put the files ANYWHERE YOU'D LIKE, by changing the config/startup script. Which is a safer thing to do.
Second, /srv/httpd/htdocs might, again, be where YOUR docs are, but not where MINE are. Even if that's the system default for you, that's not the case for openSUSE, and certainly not the case if someone decides to put them in another, totally random location.
In your previous post, you mentioned "etc/init.d/rc.d/rc.httpd". "/etc/init.d/apache2" has been used on RedHat, SUSE, FC, CentOS, and probably some other distros, for some time, as the startup script. I don't even HAVE an rc.httpd file on ANY of my systems, and Apache is starting and working fine. 90% of them have not been changed from system defaults, either, since they're not facing the Internet.
|
|
|
01-06-2010, 05:23 PM
|
#11
|
Member
Registered: Feb 2008
Location: Texas
Distribution: Slackware
Posts: 92
Rep:
|
pwntzd -_-; well all those files / paths are the slackware defaults.
|
|
|
01-06-2010, 11:54 PM
|
#12
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
Why would anyone ever assume that the way Slackware does *anything* is default somewhere else?!
|
|
|
01-07-2010, 01:00 PM
|
#13
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,584
|
Quote:
Originally Posted by acid_kewpie
Why would anyone ever assume that the way Slackware does *anything* is default somewhere else?!
|
Agreed. Also, I'm not sure, but I don't think that even Slackware handles a "modprobe" statement as permanent...that is, living through a reboot. I'm fairly certain that you still need to put something in modprobe.conf, as in most other distros...
|
|
|
All times are GMT -5. The time now is 10:23 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|