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 08-30-2011, 06:52 AM   #1
mridul chandhok
LQ Newbie
 
Registered: Jun 2010
Location: New Delhi, India
Distribution: Ubuntu
Posts: 17

Rep: Reputation: 0
Unhappy Apache Installation Issue


I am using RHEL 6.0. I installeed apache http server using tar files.
The directory created was
/usr/local/apache

But an http.conf file in directory

/etc/httpd/conf/httpd.conf did not got created.

under /etc/httpd/
there are 2 folders conf/ and conf.d/

the only file created under conf.d is mod_dnssd.conf.
 
Old 08-30-2011, 06:56 AM   #2
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Did you configure it properly during compilation with all needed options?

You can as well copy the configuration file from extracted tar location to /etc/...

Check out if you have HTTP service installed.
 
Old 08-30-2011, 07:14 AM   #3
mridul chandhok
LQ Newbie
 
Registered: Jun 2010
Location: New Delhi, India
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
when i am cheecking with the command

[root@linuxbps bin]# ./apachectl start
httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName
httpd (pid 16611) already running

but i could not find httpd under service configuration panel
 
Old 08-30-2011, 08:05 AM   #4
Skyer
Member
 
Registered: Aug 2011
Posts: 113

Rep: Reputation: 6
Well,
I am not sure if it's your exact requirement to install Apache by hand, but I am pretty sure you can use your distribution's package manager. (RPM as far as I know for Red Hat).

If you want to install by hand. Redownload the source. Follow standard installation procedure. Hunt for errors . It may have happened, that your installation crashed in the middle. Also, how big is your apache directory?

Edit: I see you've posted another post during my time of writing, so you can skip this.

Skyer

Last edited by Skyer; 08-30-2011 at 08:19 AM.
 
Old 08-30-2011, 08:13 AM   #5
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Quote:
Originally Posted by mridul chandhok View Post
when i am cheecking with the command

[root@linuxbps bin]# ./apachectl start
httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName
httpd (pid 16611) already running

but i could not find httpd under service configuration panel
That is good. Your apache is running. Your conf files could be in other location too.

Check
Code:
ls /proc/<pid_of_httpd>/fd
This should let you know if httpd process is using any conf files and its path.
 
Old 08-30-2011, 08:32 AM   #6
mridul chandhok
LQ Newbie
 
Registered: Jun 2010
Location: New Delhi, India
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
after giving this command

ls /proc/<pid_of_httpd>/fd

this is what is being displayed.

0 1 2 3 4 5 6 7
 
Old 08-30-2011, 08:34 AM   #7
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Sorry. I missed '-lh' option.

Can you paste the output of
Quote:
ls -lh /proc/<pid_of_httpd>/fd
 
Old 08-30-2011, 08:57 AM   #8
mridul chandhok
LQ Newbie
 
Registered: Jun 2010
Location: New Delhi, India
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
the output to

ls -lh /proc/<pid_of_httpd>/fd

is

total 0
lr-x------. 1 root root 64 Aug 31 17:51 0 -> /dev/null
l-wx------. 1 root root 64 Aug 31 17:51 1 -> /dev/null
l-wx------. 1 root root 64 Aug 31 17:51 2 -> /usr/local/apache2/logs/error_log
lrwx------. 1 root root 64 Aug 31 17:51 3 -> socket:[259797]
lrwx------. 1 root root 64 Aug 31 17:51 4 -> socket:[259798]
lr-x------. 1 root root 64 Aug 31 17:51 5 -> pipe:[268738]
l-wx------. 1 root root 64 Aug 31 17:51 6 -> pipe:[268738]
l-wx------. 1 root root 64 Aug 31 17:51 7 -> /usr/local/apache2/logs/access_log
 
Old 08-30-2011, 09:00 AM   #9
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
What do you have under /usr/local/apache2/ ?
 
Old 08-30-2011, 09:06 AM   #10
mridul chandhok
LQ Newbie
 
Registered: Jun 2010
Location: New Delhi, India
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
following are the subdirectories under /usr/local/apache2/

bin/
build/
cgi-bin/
conf/
error/
htdocs/
icons/
include/
lib/
logs/
man/
manual/
modules/
 
Old 08-30-2011, 09:07 AM   #11
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Well. Under /usr/local/apache2/conf ?
 
Old 08-30-2011, 09:15 AM   #12
mridul chandhok
LQ Newbie
 
Registered: Jun 2010
Location: New Delhi, India
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
Under /usr/local/apache2/conf

/extra
/original
httpd.conf
magic
mime.types

#but doesn't an httpd.conf gets created under /etc/httpd/conf while apache is installed.
#i am searching for /etc/httpd/conf/httpd.conf
 
Old 08-30-2011, 09:31 AM   #13
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
That is part of customizing while compiling apache2. So you have the conf that you wanted.
 
Old 08-30-2011, 09:39 AM   #14
mridul chandhok
LQ Newbie
 
Registered: Jun 2010
Location: New Delhi, India
Distribution: Ubuntu
Posts: 17

Original Poster
Rep: Reputation: 0
i want /etc/httpd/conf/httpd.conf which didn't got created while apache installation

i know /usr/local/apache2/conf/httpd.conf was present.

I wanted to make changes in /etc/httpd/conf/httpd.conf which is absent
 
Old 08-30-2011, 09:53 AM   #15
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
Quote:
Originally Posted by mridul chandhok View Post
i want /etc/httpd/conf/httpd.conf which didn't got created while apache installation

i know /usr/local/apache2/conf/httpd.conf was present.

I wanted to make changes in /etc/httpd/conf/httpd.conf which is absent
I am so sorry had I misunderstood your problem. But I can't understand the need for httpd.conf under /etc/ and how does it differ from the one under /usr/local/apache2.
 
0 members found this post helpful.
  


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
Fedora 13 Installation issue -- Unable to install multiple linux distributions ---partition issue navneethr Linux - General 6 12-23-2010 12:17 AM
apache, php, mysql installation issue sohailark Linux - Server 4 11-05-2006 11:21 AM
Issue with apache and devtool installation madchaz Red Hat 1 02-27-2006 08:12 AM
Issue with Apache Installation Brerpie Linux - Software 3 01-31-2006 07:25 PM
LZIB/apache installation issue --help Robin01 Linux - Software 1 02-05-2004 01:08 PM


All times are GMT -5. The time now is 07:48 AM.

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