Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal error: Call to undefined function: mysql_connect()


jpofhb

Recommended Posts

Hello,

 

I am a newbie and did a new install of PHP, MYSQL and OSCommerce on a RedHat linux machine. I followed the manual instructions listed at http://www.oscommerce.com/forums/viewtopic.php?t=26825.

 

I think the database name, username and password are correct within the /catalog/includes/configure.php file but I get the following message when I try to connect to http://localhost/catalog/default.php

 

Fatal error: Call to undefined function: mysql_connect() in /var/www/html/catalog/includes/functions/database.php on line 19

 

Thanks for any help.

Link to comment
Share on other sites

  • 4 weeks later...

Not sure if you already solved this problem. I bumped into this too. I found my problem was caused by following is missing in /etc/php.ini (RedHat 8.0)

 

extension=mysql.so;

 

After editing php.ini, restart your webserver.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...