LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-04-2003, 05:29 PM   #1
praefex
Member
 
Registered: Dec 2002
Posts: 32

Rep: Reputation: 15
Finding out how Apache was ./configure'd


Hey All-

I need to reconfigure, Apache, but I don't know how it was installed before. And If I reconfigure apache and miss a configure step, I could screw up the web server! Is there a way to findout how apache was previously configured so I can include those configure commands when I rebuild apache? I am adding PHP to the server. It is a RH9 Machine.

TIA-

Matt
 
Old 09-04-2003, 05:37 PM   #2
Saraev
Member
 
Registered: Apr 2002
Location: Los Gatos, CA
Distribution: boring redhat 9
Posts: 163

Rep: Reputation: 30
httpd -V should show it's compile settings
 
Old 09-04-2003, 05:38 PM   #3
Saraev
Member
 
Registered: Apr 2002
Location: Los Gatos, CA
Distribution: boring redhat 9
Posts: 163

Rep: Reputation: 30
On a side note, if Apache was added during the regular RH9 installation, just add the PHP packages from the package manager. No need to mess with the apache installation.
 
Old 09-04-2003, 05:45 PM   #4
praefex
Member
 
Registered: Dec 2002
Posts: 32

Original Poster
Rep: Reputation: 15
That works but....

HEre is my results:

Server version: Apache/1.3.27 (Unix)
Server built: Jun 30 2003 15:08:00
Server's Module Magic Number: 19990320:13
Server compiled with....
-D HAVE_MMAP
-D HAVE_SHMGET
-D USE_SHMGET_SCOREBOARD
-D USE_MMAP_FILES
-D HAVE_FCNTL_SERIALIZED_ACCEPT
-D HAVE_SYSVSEM_SERIALIZED_ACCEPT
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D HARD_SERVER_LIMIT=2048
-D HTTPD_ROOT="/usr"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="/var/run/httpd.pid"
-D DEFAULT_SCOREBOARD="/var/run/httpd.scoreboard"
-D DEFAULT_LOCKFILE="/var/run/httpd.lock"
-D DEFAULT_ERRORLOG="/var/log/httpd/error_log"
-D TYPES_CONFIG_FILE="/etc/httpd/conf/mime.types"
-D SERVER_CONFIG_FILE="/etc/httpd/conf/httpd.conf"
-D ACCESS_CONFIG_FILE="/etc/httpd/conf/access.conf"
-D RESOURCE_CONFIG_FILE="/etc/httpd/conf/srm.conf"

I am unsure what to do fomr here. How do these translate to

./configure --with-apxs=/blah

style commands? I need to be able to recompile the same as before but with php. The installation I am dealing with is not however the default redhat install.

Thx-
Matt
 
Old 09-04-2003, 05:56 PM   #5
Saraev
Member
 
Registered: Apr 2002
Location: Los Gatos, CA
Distribution: boring redhat 9
Posts: 163

Rep: Reputation: 30
Coulda swore on 1.3.x that command showed configure options as well.

Try this
rpm -qa | grep httpd

To see if someone before used RPM to install it. (the paths above look a lot like a redhat supplied RPM )

Last edited by Saraev; 09-04-2003 at 05:58 PM.
 
Old 09-04-2003, 05:58 PM   #6
praefex
Member
 
Registered: Dec 2002
Posts: 32

Original Poster
Rep: Reputation: 15
nada

That unfortunately returned no results :-(

I just tried httpd -V on another serve rI installed apache 2.0 on and it didn't give the configure options either.

-M
 
Old 09-04-2003, 05:59 PM   #7
Saraev
Member
 
Registered: Apr 2002
Location: Los Gatos, CA
Distribution: boring redhat 9
Posts: 163

Rep: Reputation: 30
You still have the source floating around from the earlier compile? Might dig in the makefile to see if you can dig up the previous config
 
Old 09-04-2003, 06:04 PM   #8
praefex
Member
 
Registered: Dec 2002
Posts: 32

Original Poster
Rep: Reputation: 15
hmm

I poked around a bit in the Makefile, saw some familiar configuration settings but nothing that really looked like it was a cli ./configure option.

I'd be glad to entertain any more suggestiong, but if you are all out, I appreciate the help.

Matt
 
Old 09-04-2003, 06:57 PM   #9
Saraev
Member
 
Registered: Apr 2002
Location: Los Gatos, CA
Distribution: boring redhat 9
Posts: 163

Rep: Reputation: 30
Hrmm, yeah, bout out of ideas. In times like this I would end up compiling the new apache with every option you think you might use on the machine, then add a few more.

I assume this is a live webserver, and that is where the risk in bonking it lies?
 
Old 09-04-2003, 07:30 PM   #10
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
In Apache 2 a file config.nice is generated saving your original configuration options that can be run again, as far as 1.3 all I can see is a reference to Configuration.apaci which might possibly be what you're looking for.
 
Old 09-04-2003, 07:31 PM   #11
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
praefex,

The configure command line should be in config.log, at the top of the file. (Just checked my 2.0 build, not positive what 1.3 uses) It doesn't show env variables, but hopefully you don't need to set any of those. If you can't see it there, try greping config.*

Good Luck,
chris
 
Old 09-05-2003, 01:07 PM   #12
praefex
Member
 
Registered: Dec 2002
Posts: 32

Original Poster
Rep: Reputation: 15
live server

Yeah this is a live server, and its scary doing an upgrade, when that server is making you money. I'll try looking at those files to see if they tell me how it was installed.

Thanks Everyone!

-Matt
 
Old 09-08-2003, 03:07 PM   #13
praefex
Member
 
Registered: Dec 2002
Posts: 32

Original Poster
Rep: Reputation: 15
turns out...

That apache 1.3 store the config info in the config.status file after you do a ./configure, at least it was a reasonable approximation of it for anyone interested.

Still haven't got it up and running. :-( But I need to look at it again, maybe I'll just go Apache 2.0.47 or something :-)

Thanks everyone!
Matt
 
  


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
finding and config apache kwickcut Mandriva 10 12-04-2005 08:13 PM
finding out fs basilogics Linux - General 6 07-02-2005 08:44 AM
Apache2, mod_perl2, HTML::Mason not finding Apache::Request2-2 Silent1 Linux - Software 3 04-30-2005 04:52 PM
trouble finding libraries required for apache 2.0.50 manicajk Linux - Software 4 08-16-2004 05:05 PM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:22 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
Open Source Consulting | Domain Registration