Index

Subject : Re: LUG: Question Ubuntu and mysql

From : Jamil Hassan Spain <spain@ncssm.[redacted]>

Date : Mon, 04 Sep 2006 11:11:14 -0400

Parent


Make a new php page and put the following syntax in the page:

<?php
phpinfo();
?>

give it a name.. and browse to the page.. you're looking for mysql to be
active as an extension.. It's probably not there, so you will need to
install the php extension of mysql via yum or yast or apt-get depending
on which distro you are using. .

If you can get to a graphical package manager, just search for php or
mysql ..

let me know if you have any more questions..

Ken Whichard wrote:
> Thanks to everyone who helped with this one!
>
> It turns out that I had to comment out the bind-address line to get it
> to work.
>
> Now, another question.
>
> I am trying to get a php script to run (a rather simple one) that uses
> the mysql_connect() function. When I run the script, I get the following:
>
> *Fatal error*: Call to undefined function: mysql_connect() in
> */var/www/apache2-default/whichard/hello.php* on line *7*
>
> Do I need to do something to make functions work?
>
> Using ver 5.0 xx of mysql
>
> TIA again
>
> Ken
>
>
> At 06:22 PM 9/1/2006, you wrote:
>
>> On 9/1/06, Ken Whichard <wwhichard@nc.rr.[redacted]> wrote:
>>> OK,
>>>
>>> I have done all of the suggested steps but still have the same
>>> problem - I
>>> have nosed around several forums and from some of the comments found, I
>>> have discovered the following in the my.cnf file:
>>>
>>> bind-address 127.0.0.1
>>
>> Change the bind-address to the external IP, or add a new one for the
>> external IP.
>>
>


Replies :