I forgot to make it clear that you will actually build from httpd-2.0.45 sources that you downloaded and unpacked from the Apache Software website. But, you should use Red Hat's 2.0.4x source RPMs so that you can get some source files not supplied in the httpd distro (like the init script) and the spec file to use as a really good guide for the build process. Bob Cochran -----Forwarded Message----- From: Robert L Cochran <cochranb@xxxxxxxxxxxxx> To: Shrike List <shrike-list@xxxxxxxxxx> Subject: Re: Compile httpd from source Date: 24 Apr 2003 00:29:39 -0400 I actually did the nasty job of compiling httpd-2.0.45 and without applying any of the Red Hat patches. Here is the basic idea. Get the most recent httpd-*src rpm that Red Hat offers and install it. This will give you the spec file in /usr/src/redhat/SPECS plus a good sysv init script and other goodies you can later install in /usr/src/redhat/SOURCES. Print the spec file. Study that spec file real carefully. Write a script which will execute configure with the options you want, using the method and options you see in the spec file as a template. You will have to adapt the install directories to your preferences. I reccommend using the Apache layout option for this, but if you change the config.layout file, be sure it is copied to the apr and apr-utils directories. (I might have gotten the spelling a bit wrong there.) Notice that the spec file builds 2 httpd binaries: one with a prefork mpm and a second with a worker mpm. Now do your make install and then closely follow the post installation script actions in the spec file. You want to reproduce them as and if appropriate. Reproducing an httpd build in this way is not going to happen instantly. I spent a fair number of hours at it and I still made mistakes following the build that had to be corrected. But everything works fine. Bob Cochran On Thu, 2003-04-24 at 00:56, Kevin Waterson wrote: > I am trying to compile httpd from source. > > I do the following > ./configure --prefix=/etc/httpd > make > make install > > but when I try to start apache from init like > /etc/rc.d/init.d/httpd start > I get this > > Starting httpd: lt-httpd: could not open document config file /usr/sbin/conf/httpd.conf > > Why is this? if I configured with the prefix /etc/httpd > > Kind regards > Kevin > -- > ______ > (_____ \ > _____) ) ____ ____ ____ ____ > | ____/ / _ ) / _ | / ___) / _ ) > | | ( (/ / ( ( | |( (___ ( (/ / > |_| \____) \_||_| \____) \____) > Kevin Waterson > Port Macquarie, Australia -- Bob Cochran Greenbelt, Maryland, USA Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html -- Bob Cochran Greenbelt, Maryland, USA Please avoid sending me Word or PowerPoint attachments. See http://www.fsf.org/philosophy/no-word-attachments.html