Trouble Installing PHP & MYSQL

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I am experiencing problems when installing PHP5/MYSQL.
I did
    ./configure --with-mysql=/usr/local/mysql --disable-libxml

    make install

The build process did not report any errors.

Now, I cannot find, which I would like to register with

Can somebody tell me what went wrong ?

Thanks for your help !

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 install


Quoted text here. Click to load it

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
Like this:
../configure --with-mysql=/usr/local/mysql --disable-libxml
--with-apxs2=/usr/local/apache2/bin/apxs  --with-gd
After "make" and "make install" the shared lib (eg. 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.

Re: Trouble Installing PHP & MYSQL

Quoted text here. Click to load it

    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.


Re: Trouble Installing PHP & MYSQL

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

Site Timeline