OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Error on installation of ocs 1.1.7 in fedora core 6

Are you responsible for making OCS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

Error on installation of ocs 1.1.7 in fedora core 6

Postby ricardo » Thu Apr 26, 2007 12:10 pm

Hi,
I am getting the following error during the installation of ocs 1.1.7:
Fatal error: Call to undefined function mysql_create_db() in /var/www/html/ocs/include/db/db.mysql.inc.php on line 53
My system has apache 2.2.4-1, php 5.1.6-3.5 and mysql 5.0.27-1.
Any ideas of what is going wrong?
Thanks.

Ricardo
ricardo
 
Posts: 4
Joined: Thu Apr 26, 2007 11:59 am

Postby asmecher » Thu Apr 26, 2007 12:19 pm

Hi Ricardo,

It sounds to me like you don't have the PHP mysql module installed in your php.ini configuration file. Make sure the module is configured to load, restart your web server, and try again.

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Postby ricardo » Thu Apr 26, 2007 12:46 pm

Hi Alec,
Thanks for the quick answer.
I already have php-mysql installed in my machine (I'm running the OJS on it).
Should I have any special entry for php-mysql in the php.ini file?
Thanks.
ricardo
 
Posts: 4
Joined: Thu Apr 26, 2007 11:59 am

Postby asmecher » Thu Apr 26, 2007 1:20 pm

Hi Ricardo,

Yes, there should be something like:
Code: Select all
extension=mysql.so
This will depend on your OS; check the documentation that comes with php-mysql.

Regards,
Alec Smecher
Public Knowledge Project Team
---
Don't miss the First International PKP Scholarly Publishing Conference
July 11 - 13, 2007, Vancouver, BC, Canada
http://ocs.sfu.ca/pkp2007/
asmecher
 
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Postby ricardo » Thu Apr 26, 2007 2:21 pm

Hi Alec,
My extension was properly set.
I got the problem solved by the following modification in db.mysql.inc.php in line 53:
Replace the function mysql_create_db($db) by mysql_query('create database ocs').
Thanks.

Ricardo
ricardo
 
Posts: 4
Joined: Thu Apr 26, 2007 11:59 am


Return to OCS Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest