LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 12-25-2009, 07:55 AM   #1
rajaneesh
LQ Newbie
 
Registered: Oct 2009
Location: hyderabad,india
Posts: 13

Rep: Reputation: 0
apache web server


will the command service httpd restart the apache service if i enable httpsd service in graphical mode
 
Old 12-25-2009, 04:07 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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
 
Old 12-25-2009, 04:56 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by rajaneesh View Post
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.
 
Old 12-25-2009, 08:08 PM   #4
elsheepo
Member
 
Registered: Feb 2008
Location: San Diego
Distribution: Slackware 14.2
Posts: 79

Rep: Reputation: 18
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.
 
Old 12-26-2009, 10:09 AM   #5
rajaneesh
LQ Newbie
 
Registered: Oct 2009
Location: hyderabad,india
Posts: 13

Original Poster
Rep: Reputation: 0
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.
 
Old 12-26-2009, 01:38 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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 01:40 PM.
 
Old 12-26-2009, 01:39 PM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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...
 
Old 01-04-2010, 09:23 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
merged ...
 
Old 01-06-2010, 06:24 AM   #9
elsheepo
Member
 
Registered: Feb 2008
Location: San Diego
Distribution: Slackware 14.2
Posts: 79

Rep: Reputation: 18
TB0ne, /etc/httpd/httpd.conf has all your configuration for your server, and /srv/httpd/htdocs/ should contain all of your html.
 
Old 01-06-2010, 10:39 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by elsheepo View Post
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.
 
Old 01-06-2010, 06:23 PM   #11
elsheepo
Member
 
Registered: Feb 2008
Location: San Diego
Distribution: Slackware 14.2
Posts: 79

Rep: Reputation: 18
pwntzd -_-; well all those files / paths are the slackware defaults.
 
Old 01-07-2010, 12:54 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Why would anyone ever assume that the way Slackware does *anything* is default somewhere else?!
 
Old 01-07-2010, 02:00 PM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,916

Rep: Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689Reputation: 3689
Quote:
Originally Posted by acid_kewpie View Post
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...
 
  


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
web file viewer for apache based web server? zerobane Linux - Server 8 03-11-2009 06:43 AM
Apache web server sdmike6 Linux - Software 2 06-02-2006 12:18 AM
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 01:03 PM
apache web server jcb_dreamvsat Linux - Newbie 1 06-15-2003 10:32 AM


All times are GMT -5. The time now is 08:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration