LinuxQuestions.org
Register a domain and help support LQ
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 06-22-2009, 09:01 AM   #1
slam38
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.

Thanks.
 
Old 06-22-2009, 09:06 AM   #2
Nylex
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
nuwen52
Member
 
Registered: Feb 2009
Distribution: CentOS 5, Gentoo, FreeBSD, Fedora, Mint, Slackware64
Posts: 205

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.

Do:
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
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,189

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
slam38
LQ Newbie
 
Registered: Jun 2009
Posts: 2

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


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
how i know what changes was done in file(httpd.conf) vinaycharles Linux - Newbie 7 05-10-2009 10:48 PM
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


All times are GMT -5. The time now is 06:25 PM.

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