LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 04-20-2013, 08:13 PM   #1
sniper8752
Member
 
Registered: Oct 2012
Posts: 242

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 + various in VMs.
Posts: 2,849

Rep: Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626
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: 242

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 + various in VMs.
Posts: 2,849

Rep: Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626
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
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,880

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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,778
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
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: 242

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 + various in VMs.
Posts: 2,849

Rep: Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626
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: 242

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 + various in VMs.
Posts: 2,849

Rep: Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626
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
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,880

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

Rep: Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994
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: 1,456

Rep: Reputation: 445Reputation: 445Reputation: 445Reputation: 445Reputation: 445
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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:54 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration