LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 07: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, 07:55 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Have you tried copying the httpd.conf file over?
 
Old 02-18-2011, 08:44 AM   #3
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
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, 01:00 PM   #4
hamilito
LQ Newbie
 
Registered: Sep 2009
Distribution: Gentoo
Posts: 14

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

Rep: Reputation: 1
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, 01:26 PM   #6
hamilito
LQ Newbie
 
Registered: Sep 2009
Distribution: Gentoo
Posts: 14

Rep: Reputation: 1
Or did you mean the configuration file from the source code to re-compile?
 
Old 02-18-2011, 11:49 PM   #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, 07:40 AM   #8
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
I think if you run
Code:
phpinfo();
on the server then it lists all the compile options
 
Old 02-20-2011, 10: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, 02:55 PM   #10
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:58 AM.

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
Open Source Consulting | Domain Registration