For Programmers: Free Programming Magazines  


Home > Archive > PHP SQL > August 2007 > PHP/MySQL CentOS(RedHat) Installation Woes









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PHP/MySQL CentOS(RedHat) Installation Woes
news.prolog.net

2007-06-24, 10:01 pm

Hi:
I am trying to set up a server with php and mysql (also apache).

The server is newly installed with centos (one of the 4. flavor, installed
by server provider).

A buddy and me configured the box and managed to get MySQL running (we had
to install MySQL server via yum, as only client had been installed) So far
have only been able to access MySQL via native UNIX fia ssh. We got ftp up
and running and have managed to get a phpinfo page out of the server via
remote http.

However when I began to run my code it seems as if php doesn't know about
MySQL. I found the following in the error log:

PHP Fatal error: Call to undefined function: mysql_connect() in
/home/websiteA/httpdocs/classes/class_DataFunctions.php on line 32

Here is the code generating the failure condition:

$this->dbhandle = mysql_connect($this->hostname, $this->user,
$this->password);

The variables are set and defined, the code has been tested on my local
windows machine. I have confirmed the variables have value on the RedHat
machine as well.

It just seems as if php does not know about MySQL

I am using PHP Version 4.3.9 and a 4. Something version of MySQL

PHPInfo reports in the configuration section '--with-mysql=shared,/usr' and
all of the settings in my httpd.conf and php.ini files seem to be OK, as far
as I can tell. In fact they seem to be almost identical to those running a
similar code set on a different server.

I really need to get this up and running so any help would be enormously
appreciated.

Thanx in advance!

Dan






charlespb69

2007-07-05, 7:02 pm

On Jun 24, 10:38 am, "news.prolog.net" <kone...@ptd.net> wrote:
> Hi:
> I am trying to set up a server with php and mysql (also apache).
>
> The server is newly installed with centos (one of the 4. flavor, installed
> by server provider).
>
> A buddy and me configured the box and managed to get MySQL running (we had
> to install MySQL server via yum, as only client had been installed) So far
> have only been able to access MySQL via native UNIX fia ssh. We got ftp up
> and running and have managed to get a phpinfo page out of the server via
> remote http.
>
> However when I began to run my code it seems as if php doesn't know about
> MySQL. I found the following in the error log:
>
> PHP Fatal error: Call to undefined function: mysql_connect() in
> /home/websiteA/httpdocs/classes/class_DataFunctions.php on line 32
>
> Here is the code generating the failure condition:
>
> $this->dbhandle = mysql_connect($this->hostname, $this->user,
> $this->password);
>
> The variables are set and defined, the code has been tested on my local
> windows machine. I have confirmed the variables have value on the RedHat
> machine as well.
>
> It just seems as if php does not know about MySQL
>
> I am using PHP Version 4.3.9 and a 4. Something version of MySQL
>
> PHPInfo reports in the configuration section '--with-mysql=shared,/usr' and
> all of the settings in my httpd.conf and php.ini files seem to be OK, as far
> as I can tell. In fact they seem to be almost identical to those running a
> similar code set on a different server.
>
> I really need to get this up and running so any help would be enormously
> appreciated.
>
> Thanx in advance!
>
> Dan


I am pretty new at this so I might be wrong. I looks like you are
trying to use MySQL Improved (mysqli) and it is not recognized by the
versions of php/mysql you are using.

J.O. Aho

2007-07-06, 4:01 am

news.prolog.net wrote:
> Hi:
> I am trying to set up a server with php and mysql (also apache).
>
> The server is newly installed with centos (one of the 4. flavor,
> installed by server provider).
>
> A buddy and me configured the box and managed to get MySQL running (we
> had to install MySQL server via yum, as only client had been installed)
> So far have only been able to access MySQL via native UNIX fia ssh. We
> got ftp up and running and have managed to get a phpinfo page out of the
> server via remote http.
>
> However when I began to run my code it seems as if php doesn't know
> about MySQL. I found the following in the error log:


yum install php-mysql


--

//Aho
Erjoup

2007-08-22, 9:57 am

Alyssa Milano and Hilary Duff Slobbering Each Other!
http://www.digitalalemedia.com/Wind...gi?movie=148803

Mariah Carey and Paula Abdul Doing Hot Bottle Insertion!
http://www.digitalalemedia.com/Player?watch=148803

Nikki Cox and Carmen Electra Go Lesbian!
http://www.digitalalemedia.com/Play...hp?watch=148803

Christina Applegate and Pamela Anderson , Lesbian Girl Sex!
http://www.digitalalemedia.com/WatchMovie?clip=148803

Hilary Swank and Catherine Z. Jones Doing Hot Bottle Insertion!
http://www.digitalalemedia.com/player.php?watch=148803
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com