You are here: PHP/MySQL CentOS(RedHat) Installation Woes « PHP SQL « IT news, forums, messages
PHP/MySQL CentOS(RedHat) Installation Woes

Posted by news.prolog.net on 06/24/07 17:38

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация