Connecting Tech Pros Worldwide Forums | Help | Site Map

Trouble Installing PHP & MYSQL

frankgerlach@gmail.com
Guest
 
Posts: n/a
#1: Jul 17 '05
I am experiencing problems when installing PHP5/MYSQL.
I did
./configure --with-mysql=/usr/local/mysql --disable-libxml
--with-zlib-dir=/home/frank/zlib-1.2.2

make
make install

The build process did not report any errors.

Now, I cannot find libphp5.so, which I would like to register with
Apache.

Can somebody tell me what went wrong ?

Thanks for your help !


Mark Swinson
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Trouble Installing PHP & MYSQL


I'm also having problems finding the apache module for PHP.
I'm doing the following calls

./configure --prefix=/local/web --enable-module=so
make
make install

Mark

<frankgerlach@gmail.com> wrote in message
news:1110835602.296293.21820@g14g2000cwa.googlegro ups.com...[color=blue]
>I am experiencing problems when installing PHP5/MYSQL.
> I did
> ./configure --with-mysql=/usr/local/mysql --disable-libxml
> --with-zlib-dir=/home/frank/zlib-1.2.2
>
> make
> make install
>
> The build process did not report any errors.
>
> Now, I cannot find libphp5.so, which I would like to register with
> Apache.
>
> Can somebody tell me what went wrong ?
>
> Thanks for your help !
>[/color]


frankgerlach@gmail.com
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Trouble Installing PHP & MYSQL


I found out that one has to build apache from source and then do the
php build against the apache source build, using the --with-apxs2
option.
Like this:
../configure --with-mysql=/usr/local/mysql --disable-libxml
--with-zlib-dir=/home/frank/zlib-1.2.2
--with-apxs2=/usr/local/apache2/bin/apxs --with-gd
After "make" and "make install" the shared lib (eg. libphp5.so) will be
placed in apache's module directory and will be loaded by apache when
doing a LoadModule statement in httpd.conf.
All this said, I still have trouble to build with jpeg enabled... Any
help on this is appreciated.

Joe Webster
Guest
 
Posts: n/a
#4: Jul 17 '05

re: Trouble Installing PHP & MYSQL


<frankgerlach@gmail.com> wrote in message
news:1111182363.561473.184730@o13g2000cwo.googlegr oups.com...[color=blue]
> I found out that one has to build apache from source and then do the
> php build against the apache source build, using the --with-apxs2
> option.
> Like this:
> ./configure --with-mysql=/usr/local/mysql --disable-libxml
> --with-zlib-dir=/home/frank/zlib-1.2.2
> --with-apxs2=/usr/local/apache2/bin/apxs --with-gd
> After "make" and "make install" the shared lib (eg. libphp5.so) will be
> placed in apache's module directory and will be loaded by apache when
> doing a LoadModule statement in httpd.conf.
> All this said, I still have trouble to build with jpeg enabled... Any
> help on this is appreciated.
>[/color]

Well did you successfully build GD w/ jepg support? That has to be
working first. The GD readme was always enough for me to get it to compile.
Then recompile PHP and you should be okay.


-Joe


frankgerlach@gmail.com
Guest
 
Posts: n/a
#5: Jul 17 '05

re: Trouble Installing PHP & MYSQL


Got it finally working.
That is my configure command line:
../configure --with-mysql=/usr/local/mysql
--with-zlib-dir=/home/frank/zlib-1.2.2
--with-apxs2=/usr/local/apache2/bin/apxs --with-gd --with-jpeg-dir
--with-png-dir
I had to copy the jpeg header files (like jpeglib.h) to
/usr/local/include in order to have it built.

Closed Thread