php/mysql setup issues

Drew Van Zandt drew.vanzandt at gmail.com
Tue Apr 5 14:40:01 EDT 2005


The phpinfo page basically says it can't load the mysql extension, and
provides a link to docs which do not help me solve the problem.  (They
suggest doing what I've already tried, e.. removing and reinstalling
the php4-mysql package).  I got this far before I asked, and t doesn't
seem to help.

--DTVZ

On Apr 5, 2005 2:34 PM, crschmidt at crschmidt.net <crschmidt at crschmidt.net> wrote:
> On Tue, Apr 05, 2005 at 02:28:06PM -0400, Drew Van Zandt wrote:
> > I'm being driven insane... the php/mysql installation on one of my
> > machines keeps getting broken, and I end up with the error:
> >
> > Fatal error: Call to undefined function: mysql_connect() in ........
> > (when I try to use a script that accesses mysql)
> >
> > Now, I have them both installed... there's a line in my
> > /etc/php4/apache/php.ini that says:
> > extension=mysql.so
> 
> First things first:
> 
> echo "<?phpinfo()?>" > phpinfo.php
> 
> Then visit the phpinfo.php file in your browser, and see if the mysql
> extension is installed. (If it is, you'll get a section all about
> mysql.) http://crschmidt.net/phpinfo.php is example phpinfo output.
> 
> I expect that you don't see that, and I expect that it's probably
> because your extensiondir is set to something that isn't where mysql.so
> is, but I'm not smart enough to know for sure. I'd start there and move
> on though.
> 
> If you can't figure it out, a link to the phpinfo() page may help.
> 
> 
> 


-- 
--Drew Van Zandt



More information about the gnhlug-discuss mailing list