[TriLUG] Apache2 / PHP / MySQL Help?
Brian McCullough
bdmc at bdmcc-us.com
Tue Mar 25 09:01:00 EDT 2008
On Mon, Mar 24, 2008 at 08:13:34PM -0400, Mats Rynge wrote:
> Brian McCullough wrote:
> > Help!
> >
> >
> > I am working on a Debian Sarge system with Apache 2 ( 2.0.54 ) and PHP4
> > installed. PHPInfo works correctly, but I can't seem to get the MySQL
> > module recognized. I have put the path to the .so file into the php.ini
> > file, and that path is shown in the PHPInfo output, but MySQL is not
> > shown as a loaded module in the PHPInfo output.
>
> Not sure what you mean with the path, but on sarge systems you probably
> need:
>
> extension=mysql.so
>
> in your /etc/php4/apache2/php.ini file.
Thank you for your pointer, Mats. Unfortunately, it still doesn't seem
to work.
To further confuse things, I found an old Ubuntu 5.04 machine that also
had Apache 2 and PHP 4 installed, and checked its php.ini file. In it,
extension_dir is commented out, and so are all of the "extension="
lines. However, both GD and PGSQL are enabled and working, and the only
place that I see them is in the /usr/lib/php4/20020429 directory. ( them
being the .so files that provide those capabilities )
The PHP build configuration shows quite clearly "--without-pgsql", so
that shouldn't be related.
Incidentally, there are no .htaccess or php.ini files in the web
directory where I am getting the phpinfo information.
????
Brian
More information about the TriLUG
mailing list