Page 1 of 1

compile php 5.3.2

Posted: Mon Apr 26, 2010 4:07 am
by jmgm
Hi,

I have a Linux machine where I want to install a Web Server. In this machine I want to install the Apache Server and the PHP, but the database is on another machine other than.
(The two machines are visible to each other)

I have congigure an compile the Apache:

Code: Select all

cd ./httpd-2.2.15
./configure --prefix=/my/dir/apache/ --enable-so

make

make install
After that, I have try to install (configure and compile) the PHP:

Code: Select all

gzip -d php-5.3.2.tar.gz
tar xvf php-5.3.2.tar

cd ./php-5.3.2
./configure --with-mysql --with-apxs2=/my/dir/apache/bin/apxs
But the ./configure does not succeed. tells me this error

Code: Select all

...
checking whether to enable multibyte regex support... yes
checking whether to check multibyte regex backtrack... yes
checking for external libmbfl... no
checking for external oniguruma... no
checking for mcrypt support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... yes
checking for specified location of the MySQL UNIX socket... no
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore!
How do I have to do the configuration of PHP with the database on a different machine? (The MySQL database is already installed)

thanks very much

Re: compile php 5.3.2

Posted: Mon Apr 26, 2010 6:03 pm
by thewebhostingdir
Kindly refer to below mentioned URL which might helps you to solve your issue:

http://www.linuxquestions.org/questions ... es-230651/