Linux - NewbieThis 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!
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
hi. I'm a newbie, of course, so, I have inherited a linux box with Apache on it. I'm looking for the main httpd.conf file to look at the main information (in particular, the access configuration) for the web site that it houses. I do a find command from the root, and this is what I get:
how do i know which one is the main, functioning one? I can probably rule out the ones under perl, and probably the one in the usr/local/ directory, but maybe i can't. That would leave me with 2 files to guess from. What is the sure-fire way of finding out which httpd.conf file is the real operating deal?
$ cat /etc/sysconfig/apache2
## Type: string
## Default: ""
## ServiceRestart: apache2
# Which config file do you want to use?
# (if not set, /etc/apache2/httpd.conf is used.)
# It is unusual to need to use this setting.
So this is the script that defines where HTTPD_CONF lives, which is /etc/apache2/httpd.conf by default.
If you want to be reallly sure, you could edit /etc/apache2/httpd.conf so it restricts access to anywhere
(save a backup beforehand) and than see that it works. Restore the backup version.
/etc/httpd/conf/httpd.conf will be for the apache that came bundled with the distribution, the others may be backups of the configuration file or maybe where the previous admin compiled apache locally.
Examine the init scripts and find out the location of the httpd deamon that is started, if it is in /usr/bin then most likely /etc/httpd/conf/httpd.conf is the configuration file you want, if it is in /home/webuser/local/apache/bin then /home/webuser/local/apache/conf/httpd.conf is most likely the configuration file you want