468,772 Members | 2,318 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,772 developers. It's quick & easy.

Trouble Installing PHP & MYSQL

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 !

Jul 17 '05 #1
4 1678
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

<fr**********@gmail.com> wrote in message
news:11*********************@g14g2000cwa.googlegro ups.com...
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 !

Jul 17 '05 #2
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.

Jul 17 '05 #3
<fr**********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
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.


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
Jul 17 '05 #4
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.

Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Penn Markham | last post: by
1 post views Thread by Kerry Shetline | last post: by
reply views Thread by Decio Alexandre | last post: by
3 posts views Thread by Mark Nelson | last post: by
1 post views Thread by =?iso-8859-1?B?RXJpYyBM83Bleg==?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
2 posts views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.