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

Re: RHEL5 and Apache configuration






Mad Unix wrote:
I want to install apache on RHEL5 and configure it with othe options such as

'./configure' '--with-apxs2=/usr/local/apache/bin/apxs' '--enable-shared'
'--with-mysql=/usr/local/mysql' '--with-zlib-dir=/usr/lib/'
'--enable-versioning' '--enable-track-vars=yes'
'--enable-url-includes--enable-sysvshm=yes' '--enable-sysvsem=yes'
'--with-gettext' '--enable-mbstring' '--enable-ftp' '--enable-calendar'
'--with-config-file-path=/etc'
'--with-oci8=/u01/app/oracle/oracle/product/10.2.0/db_1' '--enable-soap'
'--with-gd' '--enable-xml' '--with-xml' '--enable-sysvsem'
'--enable-sysvshm' '--enable-sysvmsg' '--with-regex=system' '--with-png'
'--with-ttf=/usr/lib' '--enable-sigchild'
'--with-jpeg-dir=/usr/local/lib/jpeg-6b'
'--with-freetype-dir=/usr/local/lib/freetype'

can I do this using rpm or I should with source?

Personally I'd do it by source.  But that's my own (old) habits.

You can download the SRPM from ftp.redhat.com. Select the proper version for yourself:

rpm -ivh ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/httpd-2.2.3-11.el5.src.rpm rpm -ivh ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/httpd-2.2.3-6.el5.src.rpm rpm -ivh ftp://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/httpd-2.2.3-7.el5.src.rpm

Look in the /usr/src/redhat/SPECS/ directory and see if they're compiled with the options you need. The 2.2.3-11 build contains:

../configure \
       --prefix=%{_sysconfdir}/httpd \
       --exec-prefix=%{_prefix} \
       --bindir=%{_bindir} \
       --sbindir=%{_sbindir} \
       --mandir=%{_mandir} \
       --libdir=%{_libdir} \
       --sysconfdir=%{_sysconfdir}/httpd/conf \
       --includedir=%{_includedir}/httpd \
       --libexecdir=%{_libdir}/httpd/modules \
       --datadir=%{contentdir} \
       --with-installbuilddir=%{_libdir}/httpd/build \
       --with-mpm=$mpm \
       --with-apr=%{_prefix} --with-apr-util=%{_prefix} \
       --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=100 \
       --enable-pie \
       --with-pcre \
       $*

Most modules are, well, modular. You can always add in the extra stuff that you need (like Oracle) without recompiling the stock RHEL5 Apache release.

Let me know if this helps.

Shawn

--
Shawn D. Wells
Solutions Architect, Federal Team
swells redhat com
C: 443-534-0130



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