LinuxQuestions.org
Help answer threads with 0 replies.
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 02-18-2011, 08:36 AM   #1
hks1233
Member
 
Registered: Nov 2010
Posts: 30

Rep: Reputation: 1
APACHE configuration


HI

I have one previously compiled apache server from source.i would like to know is there any option to get previous configuration file from /etc/httpd/
 
Old 02-18-2011, 08:55 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Have you tried copying the httpd.conf file over?
 
Old 02-18-2011, 09:44 AM   #3
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,797
Blog Entries: 1

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
Quote:
Originally Posted by hks1233 View Post
HI

I have one previously compiled apache server from source.i would like to know is there any option to get previous configuration file from /etc/httpd/
Do you mean that you would like to see the Compile Options of the old Apache instance?
 
Old 02-18-2011, 02:00 PM   #4
hamilito
LQ Newbie
 
Registered: Sep 2009
Distribution: Gentoo
Posts: 14

Rep: Reputation: 0
This post reminded me just to backup mine lol
 
Old 02-18-2011, 02:20 PM   #5
hamilito
LQ Newbie
 
Registered: Sep 2009
Distribution: Gentoo
Posts: 14

Rep: Reputation: 0
well if you at some point edited (in a GUI editor) your previous httpd.conf file there probably is a httpd.conf~

Code:
ls -la /etc/httpd/
if it's there

Code:
nano /etc/httpd/httpd.conf~
or
Code:
vi /etc/httpd/httpd.conf~
then save without the ~

I think it could work, not sure though.
 
Old 02-18-2011, 02:26 PM   #6
hamilito
LQ Newbie
 
Registered: Sep 2009
Distribution: Gentoo
Posts: 14

Rep: Reputation: 0
Or did you mean the configuration file from the source code to re-compile?
 
Old 02-19-2011, 12:49 AM   #7
hks1233
Member
 
Registered: Nov 2010
Posts: 30

Original Poster
Rep: Reputation: 1
i mean "the configuration file from the source code to re-compile?" ie the previous ./configure --options
 
Old 02-20-2011, 08:40 AM   #8
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
I think if you run
Code:
phpinfo();
on the server then it lists all the compile options
 
Old 02-20-2011, 11:15 AM   #9
hks1233
Member
 
Registered: Nov 2010
Posts: 30

Original Poster
Rep: Reputation: 1
ya you are write???? its available through phpinfo();......But actually that server is down.....i copied the Apache folder.....Is there any option available to get the previous configuration from that file????
 
Old 02-20-2011, 03:55 PM   #10
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Ah... This sounds promising then
 
  


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
Apache 2 Configuration EpicOfChaos Linux - Software 1 10-28-2008 10:47 AM
Migrating Apache 1.3 configuration files to Apache 2 kaplan71 Linux - Software 0 03-28-2007 12:05 PM
Apache Configuration dramous Linux - Newbie 5 09-27-2004 03:46 PM
Apache 2 configuration kvtournh Linux - Newbie 1 11-13-2003 06:45 AM
Apache -> Configuration Cybers19 Linux - Newbie 3 06-17-2003 02:19 PM


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

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