Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 2000051

Re: [PHP3] Installing PHP From: Richard Lynch (richard <email protected>)
Date: 05/15/00

In article <NDBBIPIJKLMIADAOBJOHKEPHCKAA.dihuei <email protected>>,
dihuei <email protected> ("David Loke") wrote:

> I've already installed both Apache and MySQL into my linux mandrake system.
> Apache is preinstalled with the distribution and MySQL is installed using
> RPM. Now I am trying to install PHP. My question is.. How do I know which
> directory to key in when I do a ./configure?

You'll need to install the "DEV" RPMs corresponding to Apache and MySQL first.

> cd ../php-3.0.x
> ./configure -with-mysql=<dir> -with-apache=<dir> -enable-track-vars
> make
> make install

PHP can usually find them, if the RPM put them in the usual places...
 
> How do I know which link should I place in <dir>? How do I know whether its
> an apache base directory and MySQL base directory? How do I find the base
> directories? Please help.

Basically, it works like this:

After you install the DEV RPMs, there will be a directory structure for
both Apache and MySQL where there will be something like this:

/whichever
  .
  .
  .
  /include
  .
  .
  .
  /lib
  .
  .
  .

The "whichever" directory above the "include" and "lib" directories is the
one you need to feed to PHP. PHP needs to find both the "include" and
"lib" directories, so the directory above those two is the one you want.

-- 
Richard Lynch                | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA        | http://www.L-I-E.com/artists.htm
http://www.zend.com          | (this has nothing to do with Zend, duh!)

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>