LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 05: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, 05: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, 06: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, 07: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 07:19 AM.
 
Old 08-30-2011, 07: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, 07: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, 07: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, 07: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, 08: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, 08: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, 08: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, 08: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, 08: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, 08: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, 08: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



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-22-2010 11:17 PM
apache, php, mysql installation issue sohailark Linux - Server 4 11-05-2006 10:21 AM
Issue with apache and devtool installation madchaz Red Hat 1 02-27-2006 07:12 AM
Issue with Apache Installation Brerpie Linux - Software 3 01-31-2006 06:25 PM
LZIB/apache installation issue --help Robin01 Linux - Software 1 02-05-2004 12:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:28 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
Open Source Consulting | Domain Registration