Subject: Re: PHP 4.0.2 can't find mysql shared objects
From: Thomas T. Soares (ttsoares@orion.ufrgs.br)
Date: Sat Sep 23 2000 - 20:50:48 MDT
"Michael A. Peters" wrote:
>
> Its not a bug in php
>
> php 4.0.2 builds just fine.
> you may have a bug in your configure script.
>
> Try posting your configure options as you pass them to the configure
> script- i.e.
>
> ./configure --enable-blah --enable-foo=/usr --disable-bar
I had reached a complete solution to Apache+PHP4+mySQL+mod_ssl+mod_perl
compilation from sources...
First let me say that the worst issue was about a mySQL directory tree,
this was preventing the compilation of PHP.
1) Remove all RPM packages of the tools, PHP, Apache, mySQL and
mod_perl.
If you have any RPM package about SSL remove it too...
To accomplish this the command if rpm -e NAME_OF_THE_PACKAGE.
**FOR SURE THERE IS AN ORDER TO REMOVE THE STUFF**
Follow the dependece error messages of 'rpm -e' and extract one by
one.
2) Create a subdir named ALL like this 'make /usr/local/ALL'
3) Get this files and store them in the /usr/local/ALL subdir:
openssl-0.9.5a.tar.gz
apache_1.3.12.tar.gz
mod_ssl-2.6.6-1.3.12.tar.gz
mod_perl-1.24.tar.gz
mysql-3.22.32.tar.gz
php-4.0.2.tar.gz
If you dont have this I suggest a search at
http://ftpsearch.lycos.com/?form=medium
4) cd /usr/local
tar xzvfp ALL/openssl-0.9.5a.tar.gz
tar xzvfp ALL/apache_1.3.12.tar.gz
tar xzvfp ALL/mod_ssl-2.6.6-1.3.12.tar.gz
tar xzvfp ALL/mod_perl-1.24.tar.gz
tar xzvfp ALL/mysql-3.22.32.tar.gz
tar xzvfp ALL/php-4.0.2.tar.gz
5) cd openssl-0.9.5a
./config && make && make install
cd mod_ssl-2.6.6-1.3.12
./configure \
--with-apache=/usr/local/apache_1.3.12 \
--with-ssl=/usr/local/ssl \
--enable-shared=ssl
6) cd ../mod_perl-1.24
perl Makefile.PL \
EVERYTHING=1 \
APACHE_SRC=../apache_1.3.12/src \
USE_APACI=1 \
PREP_HTTPD=1 \
DO_HTTPD=1
make && make install
7) cd ../mysql-3.22.32
./configure && make && make install
+- ln -s client/.libs/ lib
| echo "/usr/local/lib/mysql" >> /etc/ld.so.conf
| ldconfig
|
+--> THIS WAS MY MAIN DISCOVER ;-)
8) cd ../php-4.0.2
./configure --with-mysql=../mysql-3.22.32 \
--with-apache=../apache_1.3.12 \
--enable-track-vars \
--with-ssl=/usr/local/ssl
make && make install
cp php.ini-dist /usr/local/lib/php.ini
9) cd ../apache_1.3.12
./configure \
--enable-module=unique_id \
--enable-module=rewrite \
--enable-module=speling \
--enable-module=expires \
--enable-module=info \
--enable-module=log_agent \
--enable-module=log_referer \
--enable-module=usertrack \
--enable-module=proxy \
--enable-module=so \
--enable-module=ssl \
--activate-module=src/modules/perl/libperl.a \
--enable-module=perl \
--activate-module=src/modules/php4/libphp4.a
make
make certificate
---------------answer the certificate questions if you will use
---------------the dummy certificate ou buy one from Verysign ;-)
make install
Edit /usr/local/apache/conf/httpd.conf and uncoment
the lines:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
I did just this yesterday in a Red Hat 6.2 system and all the
compilations
were just fine.
--BUT-- I do not had time yet to really run a PHP program in the
Apache...
Will do this soon... but if anyone could report me about this
it would be nice to know :-))
Greetings
TTS.
-- | Thomas Tschoepke Soares | // Mate do | ttsoares@orion.ufrgs.br |(~~~//'~) estrivo bendito |---UIN:961141------------------------------| \ / Amargo que | The fact is a secondary aspect of reality | `\_/' a gente bebe...
This archive was generated by hypermail 2a24 : Sat Sep 23 2000 - 20:57:45 MDT