LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I make a backup of the httpd.conf file? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-make-a-backup-of-the-httpd-conf-file-734757/)

slam38 06-22-2009 08:01 AM

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.

Nylex 06-22-2009 08:06 AM

Copy it somewhere?

nuwen52 06-22-2009 08:38 AM

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).

choogendyk 06-22-2009 08:26 PM

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.

slam38 06-25-2009 02:48 PM

Thanks everyone I'm going to to what you've suggested


All times are GMT -5. The time now is 01:35 AM.