Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-22-2009, 09:01 AM   #1
LQ Newbie
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
How do I make a backup of the httpd.conf file?

I have an MBP OSX 10.5.6 Leopard and the free version of MAMP

I want to serve up multiple sites on the single server in MAMP but before I attempt this I want to make a backup of the httpd.conf file.

How do I make a backup of the httpd.conf file? I will need step by step instructions as I am new to this.

I would greatly appreciate any help with this.

Old 06-22-2009, 09:06 AM   #2
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Copy it somewhere?
Old 06-22-2009, 09:38 AM   #3
Registered: Feb 2009
Distribution: Debian, CentOS 5, Gentoo, FreeBSD, Fedora, Mint, Slackware64
Posts: 208

Rep: Reputation: 46
I don't have a mac in front of me, but I used to work on them. Bring up a terminal window.

locate httpd.conf
cp <file from locate> ~

That will copy httpd.conf to your home directory. Then, open up your home directory and check if it's there. (copy down the location for later in case you need it).
Old 06-22-2009, 09:26 PM   #4
Senior Member
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
to be more explicit

$ cd /etc/apache2
$ sudo cp -p httpd.conf httpd.conf.bak

I'm assuming you are an administrative user.

You indicated you had 10.5.6, so if you see threads talking about /etc/httpd, that's older versions of MacOSX. And, yes,

$ locate httpd.conf

will generate a list of files that it finds. Note that /etc, which I use, is a symlink to /private/etc.
Old 06-25-2009, 03:48 PM   #5
LQ Newbie
Registered: Jun 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks everyone I'm going to to what you've suggested


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
[SOLVED] how i know what changes was done in file(httpd.conf) vinaycharles Linux - Newbie 9 04-07-2015 09:06 AM
Starting httpd: httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax sethukpathi Linux - Networking 6 04-12-2008 12:26 PM
Please amend apache conf/httpd.conf file please payjoe Linux - Newbie 7 09-21-2007 06:12 PM
httpd.conf backup problem Fredstar Linux - Newbie 2 11-28-2004 02:16 PM
saving changes to apache2/conf/httpd.conf file Zaius Linux - Newbie 6 01-10-2004 12:45 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration