Apache Compilation Issues with PHP5 and MySQL

xmlmania

Member
Jan 4, 2005
11
0
151
I've got a new server with Fedora Core 3 installed and I'm having compilation problems to get the Apache setup I require.

I get this error if I compile apache with php 5 with the mysql module but without checking "use system mysql":

configure: error: --with-mysql (using bundled libs) can not be used together with --with-mysqli.

If I compile apache with php 5 with the mysql module AND check "use system mysql":

make: *** [libphp5.la] Error 1

I need to get apache working with both libxml... I need PHP5 support and MySQL.

Also note the Mysql version on the server is 4.1.x, I also require this for its unicode support.

Any help would be much appreciated!
 

xmlmania

Member
Jan 4, 2005
11
0
151
Not sure if you read my problem correctly, but if I DO leave system mysql unchecked I get this error:

configure: error: --with-mysql (using bundled libs) can not be used together with --with-mysqli.

If I compile without the mysql moduel PHP compiles fine, but without MySQL support, unfortunately I need MySQL support.

Can anyone help?
 

webbi

Registered
Oct 15, 2002
1
0
151
xmlmania said:
configure: error: --with-mysql (using bundled libs) can not be used together with --with-mysqli.
I am getting the exact same error, any one found a solution for this?
 

sureshot

Member
Mar 6, 2003
22
0
151
it looks like the problem is with the mysqli libraries and php5.
i did this and it *seems* to be working now:

ran /scripts/easyapache from command line
went through configure [i chose option 6 and left the defaults]
after it saved configuration file CTRL-C the configure process and you will be kicked back to the command line.

cd into /hom/cpapachebuild/buildapache and edit buildscript with your favorite editor. i searched for the mysqli section and commented the whole chunk out [use '#' at beginning of line]

save the file, then run ./buildscript and let it work it's magic.


like i said, it *seems* to be working fine. i've tested some scripts and haven't found any problems. i take no responsibility if you follow my steps above and break your installation. if that happens, just login into WHM and rebuild apache from there with php4 and it should get you back in business.

good luck.