You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by g xy <gx...@gmail.com> on 2006/08/15 04:23:36 UTC

[users@httpd] can php module be compiled like this

Hi,All
     I now meet a very difficult envirenment. I have a apache http server
running which was originally compiled without DSO support, now I want to
substitute the php module to let it include new version of mysql client. How
should I do ? can I compile it with another apxs and then copy the installed
php to my apache server and then modify the httpd.conf to load new module? I
tried this way and when I tried to start apache, it says can't load php4.so?
what else should I do ? can anyone help me? Thanks!
--gxy

Re: [users@httpd] can php module be compiled like this

Posted by g xy <gx...@gmail.com>.
Thanks for all your kindly reply
I think what nick said is right, it should be oraiginally compiled with
mod_so, to be more clear, I'll show the details here
in fact, the production server is oracle's html_db companion CD, it supports
jsp and php ,oracle use apache 1.37 as its embeded http server
and customized it with lots of modules such as php and oci8, but the
compiled php's mysql client version is very low(seems 3.x), now I want to
deploy a mediawiki on this server, so I'll have to upgrade the php, I tried
to compile it but always fail. I tried to use another apxs which was install
with redhat as 3 and compiled successfully but I can't start apache after I
substitute the php4.so with new one. and if I compile the php with the apxs
with oracle, it always fails. the following are compile option and the
result.anyone can help me?

./configure
--with-apxs2=/home/orauser/oracle/product/10.2.0/db_1/Apache/Apache/bin/apxs
--with-oci8=/home/orauser/oracle/product/10.2.0/db_2  --disable-rpath
--prefix=/home/orauser/oracle/product/10.2.0/db_1/Apache/Apache/php
--enable-experimental-zts  --with-tsrm-pthreads  -with-mysql=/usr/
--with-config-file-path=/home/orauser/oracle/product/10.2.0/db_1/Apache/Apache/conf




loading cache ./config.cache
checking for egrep... (cached) grep -E
checking for a sed that does not truncate output... (cached) /bin/sed
checking host system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether gcc and cc understand -c and -o together... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for AIX... no
checking if compiler supports -R... (cached) no
checking if compiler supports -Wl,-rpath,... (cached) yes
checking for re2c... (cached) exit 0;
checking whether ln -s works... (cached) yes
checking for gawk... (cached) gawk
checking for bison... (cached) bison -y
checking bison version... 1.875 (ok)
checking for flex... (cached) flex
checking for yywrap in -lfl... (cached) yes
checking lex output file root... (cached) lex.yy
checking whether yytext is a pointer... (cached) yes
checking for working const... (cached) yes
checking flex version... 2.5.4 (ok)
checking whether byte ordering is bigendian... (cached) no
checking whether to force non-PIC code in shared modules... yes
checking for pthreads_cflags... (cached) -pthread
checking for pthreads_lib... (cached)

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...

Sorry, I cannot run apxs.  Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of
/home/orauser/oracle/product/10.2.0/db_1/Apache/Apache/bin/apxs
fo                                            llows:
Can't locate strict.pm in @INC (@INC contains:
/project/ias904/src/src_021106/pd
c_perl/bin/Linux/Opt/lib/5.6.1/i686-linux
/project/ias904/src/src_021106/pdc_per
l/bin/Linux/Opt/lib/5.6.1
/project/ias904/src/src_021106/pdc_perl/bin/Linux/Opt/
lib/site_perl/5.6.1/i686-linux
/project/ias904/src/src_021106/pdc_perl/bin/Linux
/Opt/lib/site_perl/5.6.1
/project/ias904/src/src_021106/pdc_perl/bin/Linux/Opt/l
ib/site_perl .) at
/home/orauser/oracle/product/10.2.0/db_1/Apache/Apache/bin/ap
xs line 64.
BEGIN failed--compilation aborted at
/home/orauser/oracle/product/10.2.0/db_1/Ap
ache/Apache/bin/apxs line 64.
configure: error: Aborting


On 8/15/06, Nick Kew <ni...@webthing.com> wrote:
>
> On Tuesday 15 August 2006 03:28, Joshua Slive wrote:
>
> > >      and when I tried to start apache, it says
> > > can't load php4.so?
> >
> > If your apache httpd was not originally compiled with mod_so included,
> > then there is no way to load dso modules.  You will need to recompile
> > apache httpd, either to add mod_so, or to simply change your php
> > module.
>
> Um, surely that's a red herring (notwithstanding the rest of the
> question).
> If it had been built without DSO support, then the LoadModule/LoadFile
> directives are unrecognised, and the error message would have been a
> syntax error at the LoadModule directive in httpd.conf.  A "can't load"
> message implies that DSO support *is* available, but this particular
> DSO has a problem.
>
> The likeliest problem is a failed dependency.  You can diagnose those
> by running ldd on the module, and fix them with LoadFile or by
> hacking library paths in apachectl.
>
> [ posted as a followup to Joshua because the question is self-
> contradictory, and this reply would be incomplete and possibly
> misleading without the other answer he has given ]
>
> --
> Nick Kew
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] can php module be compiled like this

Posted by Nick Kew <ni...@webthing.com>.
On Tuesday 15 August 2006 03:28, Joshua Slive wrote:

> >	 and when I tried to start apache, it says
> > can't load php4.so?
>
> If your apache httpd was not originally compiled with mod_so included,
> then there is no way to load dso modules.  You will need to recompile
> apache httpd, either to add mod_so, or to simply change your php
> module.

Um, surely that's a red herring (notwithstanding the rest of the question).
If it had been built without DSO support, then the LoadModule/LoadFile
directives are unrecognised, and the error message would have been a
syntax error at the LoadModule directive in httpd.conf.  A "can't load"
message implies that DSO support *is* available, but this particular
DSO has a problem.

The likeliest problem is a failed dependency.  You can diagnose those
by running ldd on the module, and fix them with LoadFile or by
hacking library paths in apachectl.

[ posted as a followup to Joshua because the question is self-
contradictory, and this reply would be incomplete and possibly
misleading without the other answer he has given ]

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] can php module be compiled like this

Posted by Joshua Slive <jo...@slive.ca>.
On 8/14/06, g xy <gx...@gmail.com> wrote:
>
> Hi,All
>      I now meet a very difficult envirenment. I have a apache http server
> running which was originally compiled without DSO support, now I want to
> substitute the php module to let it include new version of mysql client. How
> should I do ? can I compile it with another apxs and then copy the installed
> php to my apache server and then modify the httpd.conf to load new module? I
> tried this way and when I tried to start apache, it says can't load php4.so?
> what else should I do ? can anyone help me? Thanks!

If your apache httpd was not originally compiled with mod_so included,
then there is no way to load dso modules.  You will need to recompile
apache httpd, either to add mod_so, or to simply change your php
module.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org