Date: Mon, 4 Oct 1999 12:23:02 +0100 From: "Peter McGarvey" <Networks.Manager@rncm.ac.uk> To: <chris@tourneyland.com>, <freebsd-questions@freebsd.org> Subject: RE: Problem installing PHP + MySQL Message-ID: <NDBBJLAJELEHNLGABIJNEELOCLAA.Networks.Manager@rncm.ac.uk> In-Reply-To: <3.0.6.32.19991003215643.008e4e10@mail.9netave.net>
next in thread | previous in thread | raw e-mail | index | archive | help
I also had a problem getting PHP to work with MySQL. Eventually I discoved that it works if you do it this way: 1. Install MySQL via the package mechanism (I'm sure the ports will also work but I didn't have a burning desire wait for it to compile). 2. Download the sources for PHP and Apache. 3. Follow the QUICK INSTALL instructions from the file INSTALL that comes with PHP. I've included them below. This worked so well I'm planning on doing it this way when I install Apache/PHP on my Solaris machine tonite. --> QUICK INSTALL --> --> gunzip apache_1.3.x.tar.gz --> tar xvf apache_1.3.x.tar --> gunzip php-3.0.x.tar.gz --> tar xvf php-3.0.x.tar --> cd apache_1.3.x --> ./configure --prefix=/www --> cd ../php-3.0.x --> ./configure --with-mysql --with-apache=../apache_1.3.x --enable-track-vars --> make --> make install --> cd ../apache_1.3.x --> ./configure --prefix=/www --activate-module=src/modules/php3/libphp3.a --> (The above line is correct! Yes, we know libphp3.a does not exist at this --> stage. It isn't supposed to. It will be created.) --> make --> (you should now have an httpd binary which you can copy to your Apache bin dir) --> cd ../php-3.0.x --> cp php3.ini-dist /usr/local/lib/php3.ini --> You can edit /usr/local/lib/php3.ini file to set PHP options. --> Edit your httpd.conf or srm.conf file and add: --> AddType application/x-httpd-php3 .php3 TTFN, FNORD -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Peter McGarvey, Networks Manager | email: Networks.Manager@rncm.ac.uk Royal Northern College of Music | tel: +44 (0)161 907 5218 124 Oxford Road, Manchester, | fax: +44 (0)161 273 7611 England M13 9RD | mobile: +44 (0)7887 990564 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of > chris@tourneyland.com > Sent: 04 October 1999 03:57 > To: freebsd-questions@freebsd.org > Subject: Problem installing PHP + MySQL > > > I'm trying to get PHP and MySQL working with Apache 1.3.9. I've > been trying > to follow a HotWired tutorial mentioned on the PHP home page, as well as > info from the php and mysql sites themselves. So far, I have php working > just fine, except that it doesn't recognize MySQL. I checked this out by > making a little web page that calls phpinfo(), and the response page > doesn't say anything about MySQL under Extensions (which I read it should > if it recognizes MySQL). > > I've tried to install PHP a number of ways. First, I downloaded > the tarball > and followed the configure program, using the the --with-mysql= option to > specify my MySQL directory. That didn't work. After that I reinstalled > FreeBSD for another reason, and I tried again. This time I picked PHP and > MySQL from the 'ports to install' menu, so they got installed along with > the OS. That didn't work either. After that, I tried to find PHP on my > disk, but I couldn't find anything (including mod_php3.c) anyhere. I was > confused. So I grabbed PHP again form www.php.net, and tried again. This > time I used the setup script instead of configure, but that > didn't work. So > I tried configure again with the --with-mysql option, and that isn't > working. In fact, I'm getting 'unable to find mysql.h' errors, > even though > I'm using the right directory (and several variations). > > So what's my damn problem? And what can I do to fix it? The machine isn't > currently a production server, so it doesn't really matter what it takes, > as long as I can get things working. > > Thanks! > Chris > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBJLAJELEHNLGABIJNEELOCLAA.Networks.Manager>