apache web server
will the command service httpd restart the apache service if i enable httpsd service in graphical mode
|
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 |
Quote:
Please write a clear question, and put relevant information in it, like version/distro of Linux, and what you're trying to accomplish. |
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. |
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.
|
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. |
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...
|
merged ...
|
TB0ne, /etc/httpd/httpd.conf has all your configuration for your server, and /srv/httpd/htdocs/ should contain all of your html. ;)
|
Quote:
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. |
pwntzd -_-; well all those files / paths are the slackware defaults.
|
Why would anyone ever assume that the way Slackware does *anything* is default somewhere else?!
|
Quote:
|
All times are GMT -5. The time now is 05:49 AM. |