sawatdee
August 10th, 2008, 09:32 PM
I tried configuring php5 with the command
$ sudo ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-gd --with-mysql --with-mysqli --with-pdo-mysql --enable-soap --with-libxml-dir
but I kept getting a mysql error. It couldn't link with the mysql libraries because the packages installed binaries.
So I uninstalled the mysql packages, downloaded the mysql source, built mysql from scratch, and installed it manually. Then php5 configured okay, but I get an error when I try to start mysqld_safe and I can't follow the directions at http://dev.mysql.com/doc/refman/5.0/en/installing-binary.html because ubuntu has no root user. I don't really know how to get this version of mysql running, but I need the specific configuration of php5 shown above. I am sure I will also need to configure php again in the future.
I tried installing the ubuntu php package but I have no idea how to configure it as shown above. I have only ever built php5 manually and prefer to do it that way.
My other concern is that if I use this mysql source installation to build php5, but then install the ubuntu mysql package so that I can start it with the simple "sudo /etc/init.d/mysql start" command, then my version of php5 will not actually be built using the libraries from the version of mysql that I am using.
Does anyone know how I can either:
get this installation of mysql to run on ubuntu
configure (and reconfigure) php5 as shown above using the ubuntu mysql packages
$ sudo ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-gd --with-mysql --with-mysqli --with-pdo-mysql --enable-soap --with-libxml-dir
but I kept getting a mysql error. It couldn't link with the mysql libraries because the packages installed binaries.
So I uninstalled the mysql packages, downloaded the mysql source, built mysql from scratch, and installed it manually. Then php5 configured okay, but I get an error when I try to start mysqld_safe and I can't follow the directions at http://dev.mysql.com/doc/refman/5.0/en/installing-binary.html because ubuntu has no root user. I don't really know how to get this version of mysql running, but I need the specific configuration of php5 shown above. I am sure I will also need to configure php again in the future.
I tried installing the ubuntu php package but I have no idea how to configure it as shown above. I have only ever built php5 manually and prefer to do it that way.
My other concern is that if I use this mysql source installation to build php5, but then install the ubuntu mysql package so that I can start it with the simple "sudo /etc/init.d/mysql start" command, then my version of php5 will not actually be built using the libraries from the version of mysql that I am using.
Does anyone know how I can either:
get this installation of mysql to run on ubuntu
configure (and reconfigure) php5 as shown above using the ubuntu mysql packages