this post is an update to: Building Apache 2 and Php 5 from source
after building apache and php following the steps described in the link above, i noticed that when trying to access a mysql database from a php script that the mysqli was not available. the problem was that i did not configure php correctly. i have fixed that with the steps below.
i have included the php build section for context. the only changes are in the parameters to the configure script.
configure and build PHP. configure with Apache 2 and MySQL support.
after building apache and php following the steps described in the link above, i noticed that when trying to access a mysql database from a php script that the mysqli was not available. the problem was that i did not configure php correctly. i have fixed that with the steps below.
i have included the php build section for context. the only changes are in the parameters to the configure script.
configure and build PHP. configure with Apache 2 and MySQL support.
since apache was built from source, the steps below will match the path for apxs.
cd ../php-NN ./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=/usr/local/mysql
--with-mysqli=mysqlnd make
make test
make install
No comments:
Post a Comment