Here's is a fix for the 'cannot load libphp4.so: undefined symbol :
uncompressed' error ala google and FAQTs.

http://www.faqts.com/knowledge_base/view.phtml/aid/5087

1. install zlib per the doc above.
2. run ldconfig.
3. make clean in your php directory.
4. configure ... php.
5. edit your makefile adding -lz to the line listed in the above doc.
6. make php.
7. make install.
8. create and save a testfile named phpino.php in your document root.  this
file should contain '<? phpinfo() ?>' without the quotes.
9. restart apache. (error should be gone)
10. open http://localhost/phpino.php

this works for me..
charles
----- Original Message -----
From: "Chris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 1:40 AM
Subject: Re: [PHP-INST] Error: Restarting Apache w/ PHP as DSO on redhat 7.2


> Greetings Clacy,
>  Mind you, the experience I share here is *primarily* from *BSD.
> However, I have a great deal of experience with Win(whatever) and
> Linux as well. I just blew away my "potato" install. So I can't
> look at it for reference. That said, let's go. Read further down...
>
> > Heres what I have:
> > Clean install of redhat 7.2, server option chosen, default packages
> > installed - no extra servers or subcategories.
> >
> > I have installed the following with no problems through configure, make
> > or make install: - MySQL 3.23.45 from binaries at mysql.com (redhat gcc
> > error, or so it says) - Apache 1.3.22 from source (configure
> > --prefix=/usr/local/apache --enable-module=so) - PHP 4.0.6 from source
> > (configure --with-mysql=/usr/local/mysql
> > --with-apxs=/usr/local/apache/bin/apxs)
> >
> > I did have to change the first line in the apxs file from
> > '#!/usr/bin/perl' > '#!/usr/bin/perl5.6.0'. This was done prior to
> > configure, etc... [known issue from another server running some perl
> > apps}
> >
> > Each package was tested after install for success.  MySQL and Apache
> > work(ed) fine. After installing PHP as a DSO, I cannot start apache and
> > receive the following error:
> >
> > "Syntax error on line 205 of /usr/local/apache/conf/httpd.conf:
> > cannot load /usr/local/apache/libexec/libphp4.so into server:
> > /usr/local/apache/libexec/libphp4.so: undefined symbol: uncompress
> > ./apachectl start: httpd could not be started"
>
> Had to change mine as well after the PHP install (same message). :-\
>
> >
> > Line 205 of httpd.conf looks like:
> > LoadModule php4_module    libexec/libphp4.so
> > (looks good to me, but what do I know?)
>
> The (working) line in my httpd.conf file looks like this:
> LoadModule php4_module        libexec/apache/libphp4.so
> Literal path translation:
> /usr/local/libexec/apache
>
> Similar to yours? I should also note that *relative* paths used during
> the build process can cause confusion in the resulting Libs and
> executables - apache, php and libphp4.so. Those paths are hard coded
> into those files. Meaning ../../mysql or whatever, can throw off the
> path once these files are in place. I know that I read this somewhere
> at the php.net site. But can't remember exactly where. I think if you
> just change the line in your httpd.conf file to the same as mine, you
> should be in luck. :-)
> Hope some of this might help and best of luck,
>  Chris
>
>
> >
> > Checked Apache's error log and nothing is being recorded (assuming
> > because httpd cannot even start?)
> >
> > I also attempted to reinstall both Apache and PHP by ./configure, make
> > clean, make, make install with no luck -- same error.
> >
> > I've noticed this on a few other posts in the archives but was not
> > abale to find any resolutions. Anyone have any ideas?  {I really do not
> > want to install from RPMs]
> >
> > much appreciated,
> >
> >
> > [EMAIL PROTECTED]
>
> --
> end
>
>
> ............................................
> This email was sent using DNSWATCH WebMail.
>    "Get an account today!"
> http://www.dnswatch.com/dnswm112/
>
>
>
> --
> 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]
>


-- 
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]

Reply via email to