LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-22-2014, 01:54 PM   #1
Toasterman
Member
 
Registered: Oct 2013
Posts: 77

Rep: Reputation: Disabled
httpd conf files missing?


Hello,
I manage a mail server which has Postfix and Roundcube installed. They can be accessed via web browser. I need to make some changes to the apache files except that they're apparently invisible. Seriously, the /etc/httpd/conf.d only has php.conf, README, and welcome.conf. Searches for roundcube.conf and mailman.conf end with no results.

I looked at the httpd.conf file and it shows this:
Code:
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf
so clearly the default location hasn't been changed.

Postfix and roundcube continue to work perfectly fine despite being apparently non-existent on the server. Is there any other way to find the files I need? Thanks in advance.
 
Old 09-22-2014, 02:12 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
terminal or console > (assuming sudo throughout here)
Code:
find `pwd` / -name httpd.conf -type f
Server version: Apache/2.2.15 (Unix)
allows me to utilize this command:
Code:
httpd -S | grep .conf
while 2 more you could try if that doesn't work are:
Code:
/usr/sbin/httpd -t -D DUMP_VHOSTS
apache2ctl -S
The most important piece of info we'd need is the httpd version installed.
 
Old 09-22-2014, 02:27 PM   #3
Toasterman
Member
 
Registered: Oct 2013
Posts: 77

Original Poster
Rep: Reputation: Disabled
My httpd version is 2.2.15, same as you.

None of the above commands show any virtual hosts, yet the web applications are there and I use them constantly.
Quote:
httpd: Could not reliably determine the server's fully qualified domain name, using domain.com for ServerName
VirtualHost configuration:
Syntax OK
 
Old 09-22-2014, 02:38 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Ubuntu or CentOS, or ...???

Did the find command work?

This guide lists the default installation layouts for Apache HTTPD on various operating systems and distributions

Last edited by Habitual; 09-22-2014 at 02:42 PM.
 
Old 09-22-2014, 02:40 PM   #5
Toasterman
Member
 
Registered: Oct 2013
Posts: 77

Original Poster
Rep: Reputation: Disabled
I'm on CentOS 6. The find command just sat there and didn't do anything. I'll try it again.
 
Old 09-22-2014, 02:48 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by Toasterman View Post
I'm on CentOS 6. The find command just sat there and didn't do anything. I'll try it again.
It might take a few minutes to execute... so let 'er rip, 'tator chip!
 
Old 09-22-2014, 02:49 PM   #7
Toasterman
Member
 
Registered: Oct 2013
Posts: 77

Original Poster
Rep: Reputation: Disabled
Okay it finished. It found httpd.conf correctly at /etc/httpd/conf/httpd.conf
However, it's the other files which correspond to the web apps that I need.
 
Old 09-22-2014, 02:55 PM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
terminal >
Code:
find / -iname '*mailman*' -o -iname '*roundcube*' -type d
should illuminate your path.

Quickie:
Look in /opt with
Code:
ls -al /opt

Last edited by Habitual; 09-22-2014 at 03:15 PM. Reason: consolidated the find commands into one command
 
Old 09-22-2014, 03:20 PM   #9
Toasterman
Member
 
Registered: Oct 2013
Posts: 77

Original Poster
Rep: Reputation: Disabled
Unfortunately it did not. Thank you for helping but I really don't understand what's going on with this server. The files should be here but they're not.

Quote:
/usr/share/selinux/devel/include/services/mailman.if
/usr/share/selinux/targeted/mailman.pp.bz2
/var/lib/mysql/roundcubemail
/etc/selinux/targeted/modules/active/modules/mailman.pp
/etc/alternatives/mta-sendmailman
I looked through all of the above but don't see what I'm looking for
 
Old 09-22-2014, 03:26 PM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by Toasterman View Post
Code:
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf
Did you look in /etc/httpd/conf.d/ ?

Code:
ls -1 /etc/httpd/conf.d/
output please.

It is also possible that apache isn't serving it (another web server such as nginx or litespeed).
Do you know how it was installed?

Code:
rpm -qa | grep -i roundcube

Last edited by Habitual; 09-22-2014 at 03:29 PM.
 
Old 09-22-2014, 03:28 PM   #11
Toasterman
Member
 
Registered: Oct 2013
Posts: 77

Original Poster
Rep: Reputation: Disabled
Yes, /etc/httpd/conf.d only has php.conf, README, and welcome.conf.
 
Old 09-22-2014, 03:30 PM   #12
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by Toasterman View Post
Yes, /etc/httpd/conf.d only has php.conf, README, and welcome.conf.
Sorry, I skimmed over
Quote:
Originally Posted by Toasterman View Post
Seriously, the /etc/httpd/conf.d only has php.conf, README, and welcome.conf.
the 2nd time around.

http://trac.roundcube.net/wiki/Howto_Install says that roundcube uses a db.inc.php file,so search for it using
Code:
find `pwd` / -name db.inc.php -type f
Sorry, I don't have a quickie answer for you, but if it was easy, the Pizza Delivery Guy would have our jobs and we'd be chucking pizza out the car door.

Last edited by Habitual; 09-22-2014 at 03:34 PM.
 
  


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
Add missing ServerName directive to httpd.conf file using sed fizzistuff Programming 2 04-11-2013 09:37 PM
How to configure /etc/httpd/conf/httpd.conf file to run a html on web arunava.saha Red Hat 2 05-30-2012 03:28 AM
inetd.conf and xinetd.conf files are missing Swagata Paul Linux - Software 2 07-02-2008 03:12 AM
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 11:26 AM
2 files httpd.conf under two diffent location EgosZ Linux - Networking 7 10-24-2004 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:30 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