Re: Compile httpd from source

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2003-04-24 at 14:26, 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

There are many options other than --prefix.  They include  (this is
taken out of the spec file for the rpm.  You can sort of guess what the
redhat paths are.  Have a look at --sysconfdir for example):

 	--prefix=%{_sysconfdir}/httpd \
 	--exec-prefix=%{_prefix} \
 	--bindir=%{_bindir} \
 	--sbindir=%{_sbindir} \
 	--mandir=%{_mandir} \
	--sysconfdir=%{_sysconfdir}/httpd/conf \
	--includedir=%{_includedir}/httpd \
	--libexecdir=%{_libdir}/httpd/modules \
	--datadir=%{contentdir} \
	--with-mpm=prefork \
	--enable-mods-shared=all \
	--enable-suexec --with-suexec \
	--with-suexec-caller=%{suexec_caller} \
	--with-suexec-docroot=%{contentdir} \
	--with-suexec-logfile=%{_localstatedir}/log/httpd/suexec.log \
	--with-suexec-bin=%{_sbindir}/suexec \
	--with-suexec-uidmin=500 --with-suexec-gidmin=500 \
	--enable-ssl --with-ssl \
	--enable-deflate \
	--enable-proxy --enable-proxy-connect \
	--enable-proxy-http --enable-proxy-ftp

And there are probably others.

HTH,
-- 
Iain Buchanan <iain@xxxxxxxxxxxxxxxxxxx>
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.

	- Linus Torvalds

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux