php-install Digest 8 May 2001 13:29:34 -0000 Issue 298

Topics (messages 3060 through 3065):

Compiling Sablotron + PHP
        3060 by: Dave

AIX 4.3.3 PHP 4.0.5 HowTo compile using xlC
        3061 by: Phill
        3063 by: Phill

Re: Still having problems with fdftk
        3062 by: Jani Taskinen

WinME, PHP and Apache
        3064 by: POldham

best OS platform for low memory, php/mysql web server
        3065 by: Ted Hobson

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


Im running Red Hat 7.1 with apache-1.3.19-15 and expat-1.95.1-1 rpms
installed

Ive compiled Sablot-0.52 with no errors.

To get php-4.0.5 to compile I tried this tip from a previous post:

cd /usr/local/lib
ln -s libexpat.so libxmlparse.so
ln -s libexpat.so libxmltok.so

then it compiled without complaining about "-lxmltok"

My problem is when starting apache:

"Starting httpd: Syntax error on line 80 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp4.so into server: libsablot.so.0:
cannot load shared object file: No such file or directory"

line 80 is:
"LoadModule php4_module        modules/libphp4.so"

Any help appreciated.





I'll dispense with why I'm posting this.....

1) Download PHP source.
2) gunzip -> tar ....
3)
./configure --without-mysql --with-ibm-db2 --with-apxs=/usr/local/apache/bin
/apxs
4) cd php-4.0.5
5) vi libtool
6) Hack away at these lines: (many posts around on this)

archive_cmds= .....
add this:
\${wl} -bI:/usr/local/apache/libexec/httpd.exp

do the same for:
archive_expsym_cmds= ......

7) Search for the following:
Do each command in the archive commands

At the bottom of the loop that starts with the line:
for oldobj in $oldobjs; do
.
.
.
.
done

insert this just before and after the "done" i.e.
  obj=`$echo "X$oldobj" | $Xsed -e "lo2o"`
  eval "cp $oldobj $obj"
done
oldobjs=`$echo "X$oldobjs" | $Xsed -e 's/\.lo/\.o/g'`

What this does:
All .lo files are copied to .o files. The variable that thought it had .lo
files now has .o files. This
prevents the AIX linker from "spitting the dummy" because of the file types
are wrong. The
libtool still think it has the .lo files around (because they are - hence
this is inefficient because of the
multiple copies of the object code ....) which libtool thinks it owns and
controls.

8) make
9) make install

Your compilation will now work and PHP will install and operate correctly.

I'm now working on getting DB2 to work. It seems that the environment is not
allocated for
network DB2 connections. Those people that have it working are only running
on locally connected
databases (I think) and there seems to be some kind of difference (don't
know yet).

OK I feel better now, having posted this.
Phill.






Oops forgot step 7a) and 7b)

7a) export CC='cc -Dinline= -ma'

7b) export OBJECT_MODE=32
This one depends on wether you're DB2 versions prior to 7.1 (which supports 64
bit). Needless to say you'll need a 64 bit version of Apache if you use
OBJECT_MODE=64.

Hope this helps.

Phill wrote:

> I'll dispense with why I'm posting this.....
>
> 1) Download PHP source.
> 2) gunzip -> tar ....
> 3)
> ./configure --without-mysql --with-ibm-db2 --with-apxs=/usr/local/apache/bin
> /apxs
> 4) cd php-4.0.5
> 5) vi libtool
> 6) Hack away at these lines: (many posts around on this)
>
> archive_cmds= .....
> add this:
> \${wl} -bI:/usr/local/apache/libexec/httpd.exp
>
> do the same for:
> archive_expsym_cmds= ......
>
> 7) Search for the following:
> Do each command in the archive commands
>
> At the bottom of the loop that starts with the line:
> for oldobj in $oldobjs; do
> .
> .
> .
> .
> done
>
> insert this just before and after the "done" i.e.
>   obj=`$echo "X$oldobj" | $Xsed -e "lo2o"`
>   eval "cp $oldobj $obj"
> done
> oldobjs=`$echo "X$oldobjs" | $Xsed -e 's/\.lo/\.o/g'`
>
> What this does:
> All .lo files are copied to .o files. The variable that thought it had .lo
> files now has .o files. This
> prevents the AIX linker from "spitting the dummy" because of the file types
> are wrong. The
> libtool still think it has the .lo files around (because they are - hence
> this is inefficient because of the
> multiple copies of the object code ....) which libtool thinks it owns and
> controls.
>
> 8) make
> 9) make install
>
> Your compilation will now work and PHP will install and operate correctly.
>
> I'm now working on getting DB2 to work. It seems that the environment is not
> allocated for
> network DB2 connections. Those people that have it working are only running
> on locally connected
> databases (I think) and there seems to be some kind of difference (don't
> know yet).
>
> OK I feel better now, having posted this.
> Phill.
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]





On Mon, 7 May 2001, Jon Peccarelli wrote:

>I STILL cannot get fdftk working properly.  I am VERY upset, as this is one
>of the big reasons I'm using PHP.  If this won't work, I'm going to start
>looking at Java and dumping PHP!

Well that's your problem. These kind of 'threats' make people NOT want
to help you. So please, move to Java.

>I upgraded to RH 7.1 to see if that would help - NOPE!   So I uninstalled
>the PHP & Apache rpms and decided to install everything from the tar's.  I
>am using Apache 1.3.19 and PHP 4.0.4pl1.  I have successfully installed
>Apache and PHP.  When I try to add the --with-fdftk switch for the configure
>script, everything installs correctly, but Apache won't start.  It gives NO
>error messages anywhere, except that it won't start.  I'm at my wits end
>with this one.  My client is getting VERY upset.  I do NOT understand why
>this doesn't work.  I've tried PHP 4.0.5 also and get the same thing!

Grab latest CVS snapshot from http://snaps.php.net/ and it should work
just fine. The fixes weren't included in 4.0.5. Will be in 4.0.6.

--Jani






> Does anyone know the correct way to make apache use the php cgi in
> windows? I'm new to apache, and need a local setup close to my hosts
> setup, which is MySQL, Apache, Tomcat ( for JSP ), PHP, and JDK, but i'm
> lost!
> 
> HELP PLEASE!!!




So, I've tried using Red Hat 7.0 to get a php/mysql enabled web server 
running on a PII 266 system with a whoping 16M ram. It has been a chore to 
say the least. Red Hat really seems to have some issues here. The RPMs don't 
work and installing from source doesn't work. Is there a better version of 
Linux out there for me to run this kind of a system on? Should I just bite 
the bullet and get more memory and possibly a licenced version of a linux 
server package? Any input is more than welcome.

thanks
Ted.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.



Reply via email to