Hi Chris,
It seems that the Ex
Administrator decided to compile and install a new version rather than to
use the default installed version. There is only one httpd.conf file it means
that the default installation is not running. Following are the
outputs of few commands to give you better idea. I want to use the same Apache
what is running now.
It seems that we are using second httpd which
doesn't have DSO support. Usually when we compile Apache the httpd.conf and all
the bin files are copied in the same parent directory but here I don't know why
it is in different directories, httpd.conf is in "/web/conf", and httpd is in
/usr/local/etc/httpd/bin/. So I am confused what prefix I should specify while
recompiling. Will Recompile overwrite all my config?
#which
httpd
/usr/sbin/httpd
# /usr/sbin/httpd -V
Server version: Apache/1.3.12 (Unix) (Red Hat/Linux)
Server built: Aug 23 2000 15:44:50
Server's Module Magic Number: 19990320:7
Server compiled with....
-D EAPI
-D HAVE_MMAP
-D HAVE_SHMGET
-D USE_SHMGET_SCOREBOARD
-D USE_MMAP_FILES
-D USE_FCNTL_SERIALIZED_ACCEPT
-D HTTPD_ROOT="/usr"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="/var/httpd/httpd.pid"
-D DEFAULT_SCOREBOARD="/var/httpd/httpd.scoreboard"
-D DEFAULT_LOCKFILE="/var/httpd/httpd.lock"
-D DEFAULT_XFERLOG="/var/log/httpd/access_log"
-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" <---DOESN'T EXIST
-D ACCESS_CONFIG_FILE="/etc/httpd/conf/access.conf"
-D RESOURCE_CONFIG_FILE="/etc/httpd/conf/srm.conf"
/usr/sbin/httpd
# /usr/sbin/httpd -V
Server version: Apache/1.3.12 (Unix) (Red Hat/Linux)
Server built: Aug 23 2000 15:44:50
Server's Module Magic Number: 19990320:7
Server compiled with....
-D EAPI
-D HAVE_MMAP
-D HAVE_SHMGET
-D USE_SHMGET_SCOREBOARD
-D USE_MMAP_FILES
-D USE_FCNTL_SERIALIZED_ACCEPT
-D HTTPD_ROOT="/usr"
-D SUEXEC_BIN="/usr/sbin/suexec"
-D DEFAULT_PIDLOG="/var/httpd/httpd.pid"
-D DEFAULT_SCOREBOARD="/var/httpd/httpd.scoreboard"
-D DEFAULT_LOCKFILE="/var/httpd/httpd.lock"
-D DEFAULT_XFERLOG="/var/log/httpd/access_log"
-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" <---DOESN'T EXIST
-D ACCESS_CONFIG_FILE="/etc/httpd/conf/access.conf"
-D RESOURCE_CONFIG_FILE="/etc/httpd/conf/srm.conf"
# /usr/local/etc/httpd/bin/httpd -V
Server version: Apache/1.3.27 (Unix)
Server built: Apr 9 2003 16:41:15
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=256
-D HTTPD_ROOT="/usr/local/etc/httpd"
-D SUEXEC_BIN="/usr/local/etc/httpd/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/httpd.scoreboard"
-D DEFAULT_LOCKFILE="logs/httpd.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D TYPES_CONFIG_FILE="/web/conf/mime.types"
-D SERVER_CONFIG_FILE="/web/conf/httpd.conf" <----EXIST AND HAVE ALL MY CONFIGURATION
-D ACCESS_CONFIG_FILE="/web/conf/access.conf"
-D RESOURCE_CONFIG_FILE="/web/conf/srm.conf"
# ps -ef|grep
httpd
root 892 1 0 2003 ? 00:03:29 /usr/local/etc/httpd/bin/httpd
web 893 892 0 2003 ? 00:31:48 /usr/local/etc/httpd/bin/httpd
web 894 892 0 2003 ? 00:30:49 /usr/local/etc/httpd/bin/httpd
web 895 892 0 2003 ? 00:30:43 /usr/local/etc/httpd/bin/httpd
web 896 892 0 2003 ? 00:30:59 /usr/local/etc/httpd/bin/httpd
web 897 892 0 2003 ? 00:30:33 /usr/local/etc/httpd/bin/httpd
web 1055 892 0 2003 ? 00:30:16 /usr/local/etc/httpd/bin/httpd
web 1056 892 0 2003 ? 00:20:28 /usr/local/etc/httpd/bin/httpd
web 1059 892 0 2003 ? 00:30:24 /usr/local/etc/httpd/bin/httpd
web 1084 892 0 2003 ? 00:30:31 /usr/local/etc/httpd/bin/httpd
web 1128 892 0 2003 ? 00:30:48 /usr/local/etc/httpd/bin/httpd
web 21079 892 0 Mar17 ? 00:03:59 /usr/local/etc/httpd/bin/httpd
root 12659 12287 0 13:23 pts/1 00:00:00 grep httpd
root 892 1 0 2003 ? 00:03:29 /usr/local/etc/httpd/bin/httpd
web 893 892 0 2003 ? 00:31:48 /usr/local/etc/httpd/bin/httpd
web 894 892 0 2003 ? 00:30:49 /usr/local/etc/httpd/bin/httpd
web 895 892 0 2003 ? 00:30:43 /usr/local/etc/httpd/bin/httpd
web 896 892 0 2003 ? 00:30:59 /usr/local/etc/httpd/bin/httpd
web 897 892 0 2003 ? 00:30:33 /usr/local/etc/httpd/bin/httpd
web 1055 892 0 2003 ? 00:30:16 /usr/local/etc/httpd/bin/httpd
web 1056 892 0 2003 ? 00:20:28 /usr/local/etc/httpd/bin/httpd
web 1059 892 0 2003 ? 00:30:24 /usr/local/etc/httpd/bin/httpd
web 1084 892 0 2003 ? 00:30:31 /usr/local/etc/httpd/bin/httpd
web 1128 892 0 2003 ? 00:30:48 /usr/local/etc/httpd/bin/httpd
web 21079 892 0 Mar17 ? 00:03:59 /usr/local/etc/httpd/bin/httpd
root 12659 12287 0 13:23 pts/1 00:00:00 grep httpd
Many thanks for your continuous
support. I will wait for your reply
MJ
----- Original Message -----
From: "Chris Hewitt" <[EMAIL PROTECTED]>
To: "MJ" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, March 29, 2004 1:18 PM
Subject: Re: Fw: [PHP-INSTALL] Upgrading PHP
4.3.1 to PHP 4.3.4
>
> >Please have a look on different output coming from "httpd -l" and
> >"/usr/local/etc/httpd/bin/httpd -l ".
> >
> ># httpd -l (it will show mod_so.c)
> >Compiled-in modules:
> > http_core.c
> > mod_so.c
> >suexec: disabled; invalid wrapper /usr/sbin/suexec
> >
> >
> ># /usr/local/etc/httpd/bin/httpd -l ((it will NOTshow
> >mod_so.c))
> >Compiled-in modules:
> > http_core.c
> > mod_env.c
> > mod_log_config.c
> > mod_mime.c
> > mod_negotiation.c
> > mod_status.c
> > mod_include.c
> > mod_autoindex.c
> > mod_dir.c
> > mod_cgi.c
> > mod_asis.c
> > mod_imap.c
> > mod_actions.c
> > mod_userdir.c
> > mod_alias.c
> > mod_rewrite.c
> > mod_access.c
> > mod_auth.c
> > mod_setenvif.c
> > mod_php4.c
> >suexec: disabled; invalid wrapper /usr/local/etc/httpd/bin/suexec
> >
> >Seems, I have to recompile Apache, right? Will it overwrite my
> >configuration? what files do I need to backup?
> >Recompile means installation from scratch?
> >
> It seems that you have two copies of Apache httpd installed. If you do a
> "which httpd" as root it will show where one of them is. The first one
> (with mod_so) shows that DSO may be used and is compiled in. The second
> does not have DSO but has particular modules compiled into httpd itself.
> If you use the first one then you do not need to recompile Apache
> httpd, if you use the second then you do.
>
> I think you should first check why you have two Apache httpd
> installations (you can have two, there is no reason why not). As well as
> doing the "httpd -l" that you have done, you could do "httpd -V" and
> this will show the configuration options each was compiled with. That
> way you can find the directories for each (you know the second one but
> not the first).
>
> You need to find out which one you want to use to upgrade PHP and then
> we work with that one. The second one has PHP compiled into the httpd
> executable (module mod_php4.c) so that definitely can run PHP. The first
> one could run PHP if the libphp4.so module is in the right place and the
> httpd.conf is configured to use it.
>
> HTH
> Chris
>