LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   apache web server (https://www.linuxquestions.org/questions/linux-newbie-8/apache-web-server-778017/)

rajaneesh 12-25-2009 06:55 AM

apache web server
 
will the command service httpd restart the apache service if i enable httpsd service in graphical mode

acid_kewpie 12-25-2009 03:07 PM

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

TB0ne 12-25-2009 03:56 PM

Quote:

Originally Posted by rajaneesh (Post 3804290)
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.

elsheepo 12-25-2009 07:08 PM

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.

rajaneesh 12-26-2009 09:09 AM

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.

acid_kewpie 12-26-2009 12:38 PM

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.

acid_kewpie 12-26-2009 12:39 PM

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...

Tinkster 01-04-2010 08:23 PM

merged ...

elsheepo 01-06-2010 05:24 AM

TB0ne, /etc/httpd/httpd.conf has all your configuration for your server, and /srv/httpd/htdocs/ should contain all of your html. ;)

TB0ne 01-06-2010 09:39 AM

Quote:

Originally Posted by elsheepo (Post 3816024)
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.

elsheepo 01-06-2010 05:23 PM

pwntzd -_-; well all those files / paths are the slackware defaults.

acid_kewpie 01-06-2010 11:54 PM

Why would anyone ever assume that the way Slackware does *anything* is default somewhere else?!

TB0ne 01-07-2010 01:00 PM

Quote:

Originally Posted by acid_kewpie (Post 3817105)
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 05:49 AM.