Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-01-2003, 03:22 AM   #1
LQ Newbie
Registered: Oct 2002
Distribution: Red Hat 8.0
Posts: 14

Rep: Reputation: 0
Apache2 and php4 problems configuring

Hello all...
I have been trying to install Apache/php/mysql on redhat 9.0 for the past hour or so and now i have come to a screeching halt. So far I have mysql installed and working, as well as php installed and configured. Where I am now is configuring apache for php
I am using the following command:

./configure --prefix=/usr/local/apache --enable-module=rewrite --activate-module=src/modules/php4/libphp4.a

and I get the following error:

configure: error: unrecognized option: --activate-module=src/modules/php4/libphp4.a

I have tried the ./configure --help and it mentions nothing about '--activate-module' I think that this might have something to do with it being apache2 and the help I am following is for apache1. Does anyone have any suggestions as to what I should do in this case? Is there a different option I can use that will do the same thing and work?

thanks in advance!
Old 07-01-2003, 03:40 AM   #2
LQ Newbie
Registered: Oct 2002
Distribution: Red Hat 8.0
Posts: 14

Original Poster
Rep: Reputation: 0
I also tried this:


and got this:

./configure: line 1: enable_usr/lib/httpd/modules/ No such file or directory

even tho that is the only spot that i could find a file that even looks close to libphp4.a

Am I missing something here? why did it say no such file or directory, when i know its there?
Old 07-01-2003, 05:21 AM   #3
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
PHP needs to know what version of apache extensions it should be compliled to work against and once you do that the shared object library is created.

All you need to do with Apache is to enable the so module support in general so you can use the PHP created in as said above.

My PHP 4.3.2 was configured like this.
./configure                     \
--prefix=/usr                   \
--exec-prefix=/usr              \
--bindir=/usr/bin               \
--sbindir=/usr/sbin             \
--sysconfdir=/etc               \
--datadir=/usr/share            \
--includedir=/usr/include       \
--libdir=/usr/lib               \
--libexecdir=/usr/libexec       \
--localstatedir=/var            \
--sharedstatedir=/usr/com       \
--sysconfdir=/etc               \
--mandir=/usr/share/man         \
--infodir=/usr/share/info       \
--with-apxs2                    \
--enable-so                     \
--enable-discard-path           \
--enable-force-cgi-redirect     \
--with-config-file-path=/etc/   \
--enable-libgcc                 \
--with-zlib                     \
--with-bz2                      \
--with-dom=/usr/lib             \
--with-dom-xslt=/usr/lib        \
--with-dom-exslt=/usr/lib       \
--enable-ftp                    \
--with-mysql=/usr               \
--enable-sysvsem                \
--enable-sysvshm                \
--enable-wddx                   \
--enable-share                  \
--enable-openssl                \
My apache 2.0.46 conf directives are attached. ( You may wish to add/delete modules, change installation paths etc )
./configure                     \
  --enable-layout=RedHat        \
  --enable-so                   \
  --enable-mods-shared="setenvif ssl info deflate speling dir auth-digest alias asis example cgi  status"       \
  --disable-cgid                \
  --disable-env                 \
  --disable-setenvif            \
In both cases, I lay my copy of apache over the Redhat standard install locations, to avoid dealing with muliple versions.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems upgrading MySQL on Ubuntu, with Apache2/PHP4 peruvianllama Linux - Software 0 08-16-2005 09:27 AM
phpbb, apache2, php4 Odins_Son Linux - Software 2 12-23-2004 02:24 AM
apache2 + php4 package problems atheist Debian 4 10-25-2004 09:22 PM
apache2 + php4 atheist Linux - Software 6 10-25-2004 03:12 PM
Configuring the Apache2 config file to use PHP4 mindstormsguy Linux - Software 3 05-29-2003 12:59 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:57 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration