Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Error after moving SS to another server/hosting


Go to End


2 Posts   2355 Views

Avatar
Craneway

20 Posts

28 June 2008 at 2:49am

Edited: 28/06/2008 3:04am

Hi, I am moving SS installation to another server/hosting.
I imported the mysql dump into a new db, changed the server/user/db/password info in mysite/_config.php.
Now, opening the site I get this error:
Fatal error: Call to undefined function mysql_connect() in /home/MYHOME/MYSITENAME.com/docs/sapphire/core/model/MySQLDatabase.php on line 41

Using SS 2.2.2.
Cant figure out what the problem is.
A note: my hosting provider requires to use not 'localhost' but 'username.mysql' for a mysql server name.

Any ideas?

UPD: Solved. The problem was in php 5 default configuration (thanks to the hosting support).

Avatar
Sigurd

Forum Moderator, 628 Posts

28 June 2008 at 9:03am

One thing you can do when moving hosts is to put a new install there first, and see if the install checker shows any problems. Once that install checker shows green, you can overwrite it with your existing site.

That means you can be confident the correct versions of dependencies and so on, exist.