On Tue, 14 Mar 2006, Matt G. wrote: > To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> From: Matt G. > <[EMAIL PROTECTED]> Subject: Re: [PHP-INSTALL] php > returning completely empty documents on new > apache install > > Oh, and at this point I'm working under the theory that my > php.ini is not being found correctly. I gave the path to > the directory containing the file on the ./configure > commandline like this: > > ./configure --with-apxs2=$MYDIR/bin/apxs > --with-mysql=$MYDIR --prefix=$MYDIR --without-pear > --with-libxml-dir=$MYDIR
Try compiling php5 with absolute pathnames, instead of the $MYDIR variable, such as: Do 'make clean' then try: #! /bin/sh # # Created by configure './configure' \ '--with-apxs2=/usr/local/apache-2.2.0/bin/apxs' \ '--prefix=/usr/local/php-5.1.2' \ "$@" Change the above paths to absolute paths to where you have put apache 2.0.55, and to the directory path you want php5 installed into. You can use the same installation path for php5, or a new path. If you choose to use the same php installation path, it may help to delete the existing php5 installation, rather than overwritting the old one. To keep things simple, don't bother about mysql or any other extension for now. This will give you an ample php5 module to play around with. If you can get phpinfo() working, then you will be able to see what is happening. phpinfo() is part of the php core, and works whether or not you have a php.ini file. HTH Keith