Re: php/mysql

From: Date: Thu, 14 Dec 2000 19:30:23 +0000
Subject: Re: php/mysql
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-1218@lists.php.net to get a copy of this message
Thanks! hmmm... the configure script couldn't find apxs. I gave it the path, and it still isn't happy: ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs apxs really is there! Yet, when running the above command, it reports: Either you need to install Perl or you need to pass the absolute path of apxs by using --with-apxs=/absolute/path/to/apxs I know I have perl, and I know that's the path to apxs. -Neil Brian Janice wrote: > > Hi there! > > I got php4 running with mysql support on Mandrake 7.0 and 7.2 (very similar > to redhat) > > First thing is to get mysqld running. I installed from rpm. As for getting > it running at startup, do it any old way you like. Just reboot and make its > running with: > > 'ps -aux | grep mysqld' > > Now for getting php going with mysql support. That SHOULD be a little > easier. > > get the tarball from php.net, and untar somewhere. then do > > './configure --with-mysql --with-apxs' > > Lemme explain this, cuz noone explained it to me. --with-mysql will tell php > to complie with ITS OWN mysql libs. This is fine if this is the only thing > that will use mysql thru a webserver. If your not sure, than it IS the only > thing that will use mysql thru your webserver. Now im assuming your running > apache, right? good. --with-apxs tells php to compile as a dynamic module > for use with apache. The readme are confusing. If you complie > with --with-apache=/blah your gonna need to RECOMPILE apache. Real bummer. > Forget it, just use the module, it works fine anyway. > > You may need to install the apache-devel rpm (im pretty sure thats where > apxs lives). If it says 'Cant find apxs', find that rpm and install. > > You may also need a flex rpm. If is says 'bad output from lex'. Find the > flex rpm and install that too. > > I have yet to get configure to complete with --with-mysql=/path/to/mysql. I > installed the rpm, and source rpm, and even the plain 'ol tarball from > mysql.com. Thats why i ended up using the php mysql libs. Youll see a > warning after configure runs regarding the mysql libs. > > If/When make completes after configure, just do 'make install'. There might > be some path issues in your httpd.conf, but once you find the module, just > path it correctly and you should be ok. > > HTH! lemme know if i can be of further assistance! > > -----Original Message----- > From: Neil Curri [mailto:ncurri@fastcompany.com] > Sent: Thursday, December 14, 2000 10:49 AM > To: php-install@lists.php.net > Subject: [PHP-INST] php/mysql > > big newbie question, but hopefully simple. If there's a howto, just > point me to it and I'll come back to the list after I mess it up. I'm > running redhat 7 on intel: > > If I want to install PHP with support for MySQL, do I need to install > MySQL from source, or is RPM installation Ok?... I'm just thinking about > the php configure script and specifying the path to mysql (configure > --with-mysql=/path/to/mysql), and pointing the php configure script to > the right directory in an RPM MySQL install. I want to install from RPM > mainly because 1)it's easy and 2)it's easy - the rpm automates the > symlinks in the rc.x directories, so mysqld starts at system startup. > > If I have to install from source, how difficult is it to get mysqld to > start at system start... can I simply copy the mysqld binary in > /etc/rc.d/init.d, then use ntsysv or chkconfig to configure mysqld to > start at system startup? > > Thanks! > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > For additional commands, e-mail: php-install-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.install (#1218) next »