Re: [PHP] Plz help quick - mysql/php/web server undefined function all of a sudden

2004-05-04 Thread Ludwig Pummer
Chip Wiegand wrote:

John,
Yep, looking at phpinfo.php shows no support for mysql. This is very 
strange. I know these things don't just happen by themselves. I also know 
there are only two people with the password to the server, myself and my 
boss (and he knows nothing about the server to begin with).
Anyway, looks like php needs to be configured to work with mysql. Now that 
it is the way it is, how do I go about that? According to pkg_info the 
version of php is 4.3.4_3. 
Being a port install how do I configure it to use mysql?
Thanks,
Chip
 

If you install it using the ports collection and not using any sort of 
automation tool like portupgrade, it should have a text-mode 
configurator which will give you the option of MySQL support if you 
enable the checkbox. You may need to 'make clean' in the port directory 
before running 'make' again to force it to give you the menu. It may 
fail to work if MySQL or Apache were not installed from the ports 
collection to start with, since the PHP port makes some assumptions 
about the paths to Apache and MySQL.

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]


Re: [PHP] Plz help quick - mysql/php/web server undefined function all of a sudden

2004-05-03 Thread Chip Wiegand
"John W. Holmes" <[EMAIL PROTECTED]> wrote on 05/03/2004 10:59:15 
AM:

> From: "Chip Wiegand" <[EMAIL PROTECTED]>
> 
> > I have a web server that uses mysql-4.1.0/apache-2.4.6/php-4.3.4 on
> > freebsd-5.1.
> > It has been working fine for the past few years, now all of a sudden 
today
> > I get an undefined function error. This is from httpd-error.log -
> >
> >  PHP Fatal error:  Call to undefined function:  mysql_connect() in
> > /...
> 
> I know you say that "nothing changed" but something obviously has. It 
looks
> like someone upgraded or reinstalled PHP but did not compile in MySQL
> support. Take a look at a phpinfo() page and see if there is a MySQL
> section.
> 
> ---John Holmes...

John,
Yep, looking at phpinfo.php shows no support for mysql. This is very 
strange. I know these things don't just happen by themselves. I also know 
there are only two people with the password to the server, myself and my 
boss (and he knows nothing about the server to begin with).
Anyway, looks like php needs to be configured to work with mysql. Now that 
it is the way it is, how do I go about that? According to pkg_info the 
version of php is 4.3.4_3. 
Being a port install how do I configure it to use mysql?
Thanks,
Chip

-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]