LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 04-20-2013, 08:13 PM   #1
sniper8752
Member
 
Registered: Oct 2012
Posts: 324

Rep: Reputation: Disabled
httpd location


Where is the httpd folder (or httpd.conf file) located in Ubuntu?
 
Old 04-20-2013, 08:32 PM   #2
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 4,529

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Which httpd are you using? This may help?
http://ubuntuforums.org/showthread.php?t=903386
 
Old 04-20-2013, 08:36 PM   #3
sniper8752
Member
 
Registered: Oct 2012
Posts: 324

Original Poster
Rep: Reputation: Disabled
hm, so it is deprecated.
https://www.digitalocean.com/communi...-on-arch-linux
i am following this tutorial, and am on the last 3 steps. I went to the apache2.conf file, but could not find what they had listed there. any ideas on any alternatives of doing this?
 
Old 04-20-2013, 08:48 PM   #4
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 4,529

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
If you're using Ubuntu then, perhaps you ought to look for an Ubuntu tutorial?
Arch Linux may be different to Ubuntu so following an Ubuntu tutorial ought to be more efficient.
 
Old 04-20-2013, 08:50 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 9,375
Blog Entries: 4

Rep: Reputation: 1821Reputation: 1821Reputation: 1821Reputation: 1821Reputation: 1821Reputation: 1821Reputation: 1821Reputation: 1821Reputation: 1821Reputation: 1821Reputation: 1821
Try this command:

Code:
locate httpd.conf
 
Old 04-20-2013, 11:58 PM   #6
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Can't you simply try find, as:
Code:
~$ sudo find / -name "httpd.conf" -print
 
Old 04-21-2013, 08:10 AM   #7
sniper8752
Member
 
Registered: Oct 2012
Posts: 324

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shivaa View Post
Can't you simply try find, as:
Code:
~$ sudo find / -name "httpd.conf" -print
It didn't find it. Maybe it was not included in this distro.
 
Old 04-21-2013, 08:16 AM   #8
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 4,529

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Quote:
Originally Posted by Page I linked to
httpd.conf is deprecated.

the apache 2 configuration is kept in
/etc/apache2/apache2.conf

Configuration files for individual sites (1 per site) should be kept in
/etc/apache2/sites-available/
http://ubuntuforums.org/showthread.php?t=903386
As I said Ubuntu is not Arch and following a tutorial for the wrong distro can be very inefficient.
Edit: I think this is the correct tutorial for Ubuntu:
https://www.digitalocean.com/communi...r-ubuntu-12-04

Last edited by 273; 04-21-2013 at 08:20 AM.
 
Old 04-21-2013, 08:33 AM   #9
sniper8752
Member
 
Registered: Oct 2012
Posts: 324

Original Poster
Rep: Reputation: Disabled
how do I know if ssl is now being used with my connections? is there a way to test it?
 
Old 04-21-2013, 08:35 AM   #10
josecolella
Member
 
Registered: Nov 2010
Location: Milan, Italy
Distribution: Linux Mint 13, Debian 6.0
Posts: 62

Rep: Reputation: 3
In Debian-based systems the configuration file for apache is called apache2.conf and is located in /etc/apache2/
 
Old 04-21-2013, 09:01 AM   #11
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 4,529

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Quote:
Originally Posted by sniper8752 View Post
how do I know if ssl is now being used with my connections? is there a way to test it?
Easy, just go to https://<yourdomain> (where <yourdomain> is the IP address or name of your machine) and your browser will tell you. You'll probably get a warning about an unrecognised certificate since it's self generated.

Last edited by 273; 04-21-2013 at 09:02 AM.
 
Old 04-21-2013, 07:40 PM   #12
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 9,375
Blog Entries: 4

Rep: Reputation: 1821Reputation: 1821Reputation: 1821Reputation: 1821Reputation: 1821Reputation: 1821Reputation: 1821Reputation: 1821Reputation: 1821Reputation: 1821Reputation: 1821
. . . Or look in the Software Center and see whether Apache shows as installed.
 
Old 04-21-2013, 07:56 PM   #13
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,462

Rep: Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120
Or check to see if its set to listen on port 443 in the conf file.
 
Old 04-23-2013, 02:06 AM   #14
rosehosting.com
Member
 
Registered: Jun 2012
Posts: 222

Rep: Reputation: 62
To make sure Apache is listening on port 443, open the /etc/apache2/ports.conf file and verify the following exist:

Listen 443

If your Apache service is not configured to run SSL, this guide should help you setup SSL with apache2.
 
Old 04-23-2013, 02:50 AM   #15
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 2,522

Rep: Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697Reputation: 697
Or try this:
Code:
httpd -V
 
  


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
location of apache httpd 2..2.6 binary rpms for RedHat3 craftereric Linux - Software 1 04-17-2008 04:18 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
service httpd status, results in httpd dead but subsys locked squadja Red Hat 2 09-11-2004 10:31 PM
Apache httpd location navajo Linux - Software 6 05-21-2003 07:32 PM


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