hbm wrote:
I need to recompile php with mysql support.
I found this on the net:
you can softly recompile PHP...
cd /path/to/php/sources
step1)now on my server i have-
usr/bin/php
usr/share/php
which of the two is my path/to/php/sources?
Answer: Neither one! You need to download the PHP source code from www.php.net. Unpack it. Change to the directory that is created by the unpacking process.
step2) make distclean (only if you compiled PHP by yourself in the past)
I havent compiled php myself in the past. so do i do a 'make distclean'?
Answer: If you haven't compiled it in the past, then don't "make distclean."
step3)/configure --with-apxs=[/path/to/apache/bin/apxs] --with-
mysql=[/path/to/basedir/of/mysql] ... --whatever-you-want
Can i take al the info from my phpinfo.php and ass all that was configured before and just change the '--without-mysqlsupport to --with-mysqlsupport'
Answer: No. Change it to --with-mysql.
how will i identify my source to mysql?
I see
/usr/bin/mysql
/usr/lib/mysql
/usr/include/mysql
/usr/share/mysql
/usr/share/man/man1/mysql.1.gz
Answer: Generally, it is sufficient to run './configure --with-mysql --with-apxs' without passing paths. If you do not have the apxs on your system, then you need the apache-devel RPM file, or alternatively you can obtain the Apache source code and compile it from scratch.
Step4) make and make install
Can anyone help me with this and clarify this for me?
Answer: Run the command "make" from a terminal while logged in as a normal user. However, you can't run "make install" unless you change to the superuser account (su).